Skip to main content

Class: Service

Extends

  • any

Constructors

new Service()

new Service(json: KubeService): Service

Parameters

ParameterType
jsonKubeService

Returns

Service

Inherited from

makeKubeObject<KubeService>('service').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

PropertyModifierTypeInherited fromDefined in
apiEndpointstaticApiWithNamespaceClient<KubeObjectInterface>-src/lib/k8s/service.ts:43
apiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListSingleNamespaceOptions) => anymakeKubeObject<KubeService>('service').apiListsrc/lib/k8s/cluster.ts:311
classNamestaticstringmakeKubeObject<KubeService>('service').classNamesrc/lib/k8s/cluster.ts:338
getAuthorization?static(arg: string, resourceAttrs?: AuthRequestResourceAttrs) => anymakeKubeObject<KubeService>('service').getAuthorizationsrc/lib/k8s/cluster.ts:340
getErrorMessagestatic(err?: null | ApiError) => null | stringmakeKubeObject<KubeService>('service').getErrorMessagesrc/lib/k8s/cluster.ts:336
useApiGetstatic(onGet: (...args: any) => void, name: string, namespace?: string, onError?: (err: ApiError) => void) => voidmakeKubeObject<KubeService>('service').useApiGetsrc/lib/k8s/cluster.ts:321
useApiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListOptions) => anymakeKubeObject<KubeService>('service').useApiListsrc/lib/k8s/cluster.ts:316
useGetstatic(name: string, namespace?: string, opts?: object) => [any, null | ApiError] & QueryResponse<any, ApiError>makeKubeObject<KubeService>('service').useGetsrc/lib/k8s/cluster.ts:328

Accessors

spec

get spec(): object

Returns

object

clusterIP
clusterIP: string;
externalIPs
externalIPs: string[];
ports?
optional ports: object[];
selector
selector: object;
Index Signature

[key: string]: string

type
type: string;

Defined in

src/lib/k8s/service.ts:45


status

get status(): any

Returns

any

Defined in

src/lib/k8s/service.ts:49

Methods

getExternalAddresses()

getExternalAddresses(): string

Returns

string

Defined in

src/lib/k8s/service.ts:53


getPorts()

getPorts(): undefined | number[]

Returns

undefined | number[]

Defined in

src/lib/k8s/service.ts:63


getSelector()

getSelector(): string[]

Returns

string[]

Defined in

src/lib/k8s/service.ts:67


useList()

static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Parameters

ParameterType
options?ApiListOptions

Returns

[null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Inherited from

makeKubeObject<KubeService>('service').useList

Defined in

src/lib/k8s/cluster.ts:327