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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the request, used for cancellation and deadlines. |
| key | client.ObjectKey | The key that uniquely identifies the Kubernetes object to retrieve, typically containing its name and namespace. |
| obj | client.Object | A pointer to the Kubernetes object where the retrieved data will be stored. This object's type determines the kind of resource to fetch. |
| opts | client.GetOption | Optional parameters for the get operation, such as specifying a resource version. |
Returns
| Type | Description |
|---|---|
error | An 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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the request, used for cancellation and deadlines. |
| list | client.ObjectList | A 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. |
| opts | client.ListOption | Optional parameters for the list operation, such as label selectors, field selectors, or pagination options. |
Returns
| Type | Description |
|---|---|
error | An error if the list operation failed, otherwise nil. |