Skip to main content

Function: apiFactory()

function apiFactory<ResourceType>(...args: ApiFactoryArguments): ApiClient<ResourceType>;

Defined in: lib/k8s/api/v1/factories.ts:297

Creates an API client for a single or multiple Kubernetes resources.

Type Parameters​

Type ParameterDefault type
ResourceType extends KubeObjectInterfaceKubeObjectInterface

Parameters​

ParameterTypeDescription
...argsApiFactoryArgumentsThe arguments to pass to either singleApiFactory or multipleApiFactory.

Returns​

ApiClient<ResourceType>

An API client for the specified Kubernetes resource(s).