Skip to main content

Function: apiFactory()

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

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).

Defined in

src/lib/k8s/api/v1/factories.ts:267