Skip to main content

NodeExecutionK8sReader

No overview available.

Methods


Get()

@classmethod
def Get(
ctx: context.Context,
key: client.ObjectKey,
obj: client.Object,
opts: client.GetOption
) - > error

Retrieves a single Kubernetes object from the API server. Callers use this to fetch a specific resource identified by its key.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the request, used for cancellation and deadlines.
keyclient.ObjectKeyThe key that uniquely identifies the Kubernetes object to retrieve, typically containing its name and namespace.
objclient.ObjectA pointer to the Kubernetes object where the retrieved data will be stored. This object's type determines the kind of resource to fetch.
optsclient.GetOptionOptional parameters for the get operation, such as specifying a resource version.

Returns

TypeDescription
errorAn error if the object could not be retrieved, otherwise nil.

List()

@classmethod
def List(
ctx: context.Context,
list: client.ObjectList,
opts: client.ListOption
) - > error

Lists multiple Kubernetes objects of a specific type from the API server. Callers use this to retrieve collections of resources that match certain criteria.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the request, used for cancellation and deadlines.
listclient.ObjectListA pointer to a Kubernetes list object where the retrieved collection of resources will be stored. The type of this object determines the kind of resources to list.
optsclient.ListOptionOptional parameters for the list operation, such as label selectors, field selectors, or pagination options.

Returns

TypeDescription
errorAn error if the list operation failed, otherwise nil.