Class CoreOperationsExtensions
Extension methods for Kubernetes.
Inherited Members
Namespace: k8s
Assembly: KubernetesClient.dll
Syntax
public static class CoreOperationsExtensions
Methods
View SourceGetAPIVersions(ICoreOperations)
get available API versions
Declaration
public static V1APIVersions GetAPIVersions(this ICoreOperations operations)
Parameters
| Type | Name | Description |
|---|---|---|
| ICoreOperations | operations | The operations group for this extension method. |
Returns
| Type | Description |
|---|---|
| V1APIVersions |
GetAPIVersionsAsync(ICoreOperations, CancellationToken)
get available API versions
Declaration
public static Task<V1APIVersions> GetAPIVersionsAsync(this ICoreOperations operations, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ICoreOperations | operations | The operations group for this extension method. |
| CancellationToken | cancellationToken | A CancellationToken which can be used to cancel the asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<V1APIVersions> |