Class: Service
Extends
any
Constructors
new Service()
new Service(json: KubeService): Service
Parameters
Parameter | Type |
---|---|
json | KubeService |
Returns
Inherited from
makeKubeObject<KubeService>('service').constructor
Defined in
Properties
Property | Modifier | Type | Inherited from | Defined in |
---|---|---|---|---|
apiEndpoint | static | ApiWithNamespaceClient <KubeObjectInterface > | - | src/lib/k8s/service.ts:43 |
apiList | static | (onList : (arg : any []) => void , onError ?: (err : ApiError ) => void , opts ?: ApiListSingleNamespaceOptions ) => any | makeKubeObject<KubeService>('service').apiList | src/lib/k8s/cluster.ts:311 |
className | static | string | makeKubeObject<KubeService>('service').className | src/lib/k8s/cluster.ts:338 |
getAuthorization? | static | (arg : string , resourceAttrs ?: AuthRequestResourceAttrs ) => any | makeKubeObject<KubeService>('service').getAuthorization | src/lib/k8s/cluster.ts:340 |
getErrorMessage | static | (err ?: null | ApiError ) => null | string | makeKubeObject<KubeService>('service').getErrorMessage | src/lib/k8s/cluster.ts:336 |
useApiGet | static | (onGet : (...args : any ) => void , name : string , namespace ?: string , onError ?: (err : ApiError ) => void ) => void | makeKubeObject<KubeService>('service').useApiGet | src/lib/k8s/cluster.ts:321 |
useApiList | static | (onList : (arg : any []) => void , onError ?: (err : ApiError ) => void , opts ?: ApiListOptions ) => any | makeKubeObject<KubeService>('service').useApiList | src/lib/k8s/cluster.ts:316 |
useGet | static | (name : string , namespace ?: string , opts ?: object ) => [any , null | ApiError ] & QueryResponse <any , ApiError > | makeKubeObject<KubeService>('service').useGet | src/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
status
get status(): any
Returns
any
Defined in
Methods
getExternalAddresses()
getExternalAddresses(): string
Returns
string
Defined in
getPorts()
getPorts(): undefined | number[]
Returns
undefined
| number
[]
Defined in
getSelector()
getSelector(): string[]
Returns
string
[]
Defined in
useList()
static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>
Parameters
Parameter | Type |
---|---|
options ? | ApiListOptions |
Returns
[null
| any
[], null
| ApiError
] & QueryListResponse
<KubeList
<any
>, any
, ApiError
>
Inherited from
makeKubeObject<KubeService>('service').useList