Class VersionOperationsExtensions
Extension methods for Kubernetes.
Inherited Members
Namespace: k8s
Assembly: KubernetesClient.dll
Syntax
public static class VersionOperationsExtensions
Methods
View SourceGetCode(IVersionOperations)
get the version information for this server
Declaration
public static VersionInfo GetCode(this IVersionOperations operations)
Parameters
| Type | Name | Description |
|---|---|---|
| IVersionOperations | operations | The operations group for this extension method. |
Returns
| Type | Description |
|---|---|
| VersionInfo |
GetCodeAsync(IVersionOperations, CancellationToken)
get the version information for this server
Declaration
public static Task<VersionInfo> GetCodeAsync(this IVersionOperations operations, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IVersionOperations | 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<VersionInfo> |