UNPKG

kubernetes-models

Version:
39 lines (38 loc) 2.15 kB
import { IIoK8sApimachineryPkgApisMetaV1ObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta"; import { IIoK8sApiCoreV1ServiceSpec } from "./ServiceSpec"; import { IIoK8sApiCoreV1ServiceStatus } from "./ServiceStatus"; import { ModelData, TypeMeta, Model } from "@kubernetes-models/base"; /** * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. */ export interface IService extends TypeMeta { "apiVersion": "v1"; "kind": "Service"; /** * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */ "metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta; /** * Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */ "spec"?: IIoK8sApiCoreV1ServiceSpec; /** * Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */ "status"?: IIoK8sApiCoreV1ServiceStatus; } /** * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. */ export declare class Service extends Model<IService> implements IService { "apiVersion": IService["apiVersion"]; "kind": IService["kind"]; "metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta; "spec"?: IIoK8sApiCoreV1ServiceSpec; "status"?: IIoK8sApiCoreV1ServiceStatus; static apiVersion: IService["apiVersion"]; static kind: IService["kind"]; static is: import("@kubernetes-models/base").TypeMetaGuard<IService>; constructor(data?: ModelData<IService>); } export { IService as IIoK8sApiCoreV1Service, Service as IoK8sApiCoreV1Service };