Documentation ¶
Overview ¶
Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
Package hybridkubernetes implements the Azure ARM Hybridkubernetes service API version 2021-03-01.
Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AzureEntityResource
- type BaseClient
- type ConnectedCluster
- type ConnectedClusterClient
- func (client ConnectedClusterClient) Create(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ConnectedClusterCreateFuture, err error)
- func (client ConnectedClusterClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ConnectedClusterClient) CreateResponder(resp *http.Response) (result ConnectedCluster, err error)
- func (client ConnectedClusterClient) CreateSender(req *http.Request) (future ConnectedClusterCreateFuture, err error)
- func (client ConnectedClusterClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result ConnectedClusterDeleteFuture, err error)
- func (client ConnectedClusterClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
- func (client ConnectedClusterClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ConnectedClusterClient) DeleteSender(req *http.Request) (future ConnectedClusterDeleteFuture, err error)
- func (client ConnectedClusterClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result ConnectedCluster, err error)
- func (client ConnectedClusterClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
- func (client ConnectedClusterClient) GetResponder(resp *http.Response) (result ConnectedCluster, err error)
- func (client ConnectedClusterClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ConnectedClusterClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ConnectedClusterListPage, err error)
- func (client ConnectedClusterClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ConnectedClusterListIterator, err error)
- func (client ConnectedClusterClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client ConnectedClusterClient) ListByResourceGroupResponder(resp *http.Response) (result ConnectedClusterList, err error)
- func (client ConnectedClusterClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ConnectedClusterClient) ListBySubscription(ctx context.Context) (result ConnectedClusterListPage, err error)
- func (client ConnectedClusterClient) ListBySubscriptionComplete(ctx context.Context) (result ConnectedClusterListIterator, err error)
- func (client ConnectedClusterClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
- func (client ConnectedClusterClient) ListBySubscriptionResponder(resp *http.Response) (result ConnectedClusterList, err error)
- func (client ConnectedClusterClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client ConnectedClusterClient) Update(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ConnectedCluster, err error)
- func (client ConnectedClusterClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ConnectedClusterClient) UpdateResponder(resp *http.Response) (result ConnectedCluster, err error)
- func (client ConnectedClusterClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ConnectedClusterCreateFuture
- type ConnectedClusterDeleteFuture
- type ConnectedClusterIdentity
- type ConnectedClusterList
- type ConnectedClusterListIterator
- func (iter *ConnectedClusterListIterator) Next() error
- func (iter *ConnectedClusterListIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ConnectedClusterListIterator) NotDone() bool
- func (iter ConnectedClusterListIterator) Response() ConnectedClusterList
- func (iter ConnectedClusterListIterator) Value() ConnectedCluster
- type ConnectedClusterListPage
- func (page *ConnectedClusterListPage) Next() error
- func (page *ConnectedClusterListPage) NextWithContext(ctx context.Context) (err error)
- func (page ConnectedClusterListPage) NotDone() bool
- func (page ConnectedClusterListPage) Response() ConnectedClusterList
- func (page ConnectedClusterListPage) Values() []ConnectedCluster
- type ConnectedClusterPatch
- type ConnectedClusterProperties
- type ConnectivityStatus
- type CreatedByType
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type LastModifiedByType
- type Operation
- type OperationDisplay
- type OperationList
- type OperationListIterator
- type OperationListPage
- type OperationsClient
- func (client OperationsClient) Get(ctx context.Context) (result OperationListPage, err error)
- func (client OperationsClient) GetComplete(ctx context.Context) (result OperationListIterator, err error)
- func (client OperationsClient) GetPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) GetResponder(resp *http.Response) (result OperationList, err error)
- func (client OperationsClient) GetSender(req *http.Request) (*http.Response, error)
- type ProvisioningState
- type ProxyResource
- type Resource
- type ResourceIdentityType
- type SystemData
- type TrackedResource
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Hybridkubernetes
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AzureEntityResource ¶
type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.
func (AzureEntityResource) MarshalJSON ¶
func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureEntityResource.
type BaseClient ¶
BaseClient is the base client for Hybridkubernetes.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type ConnectedCluster ¶
type ConnectedCluster struct { autorest.Response `json:"-"` // Identity - The identity of the connected cluster. Identity *ConnectedClusterIdentity `json:"identity,omitempty"` // ConnectedClusterProperties - Describes the connected cluster resource properties. *ConnectedClusterProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource SystemData *SystemData `json:"systemData,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
ConnectedCluster represents a connected cluster.
func (ConnectedCluster) MarshalJSON ¶
func (cc ConnectedCluster) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectedCluster.
func (*ConnectedCluster) UnmarshalJSON ¶
func (cc *ConnectedCluster) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConnectedCluster struct.
type ConnectedClusterClient ¶
type ConnectedClusterClient struct {
BaseClient
}
ConnectedClusterClient is the azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster
func NewConnectedClusterClient ¶
func NewConnectedClusterClient(subscriptionID string) ConnectedClusterClient
NewConnectedClusterClient creates an instance of the ConnectedClusterClient client.
func NewConnectedClusterClientWithBaseURI ¶
func NewConnectedClusterClientWithBaseURI(baseURI string, subscriptionID string) ConnectedClusterClient
NewConnectedClusterClientWithBaseURI creates an instance of the ConnectedClusterClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ConnectedClusterClient) Create ¶
func (client ConnectedClusterClient) Create(ctx context.Context, resourceGroupName string, clusterName string, connectedCluster ConnectedCluster) (result ConnectedClusterCreateFuture, err error)
Create API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager (ARM). Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the Kubernetes cluster on which get is called. connectedCluster - parameters supplied to Create a Connected Cluster.
func (ConnectedClusterClient) CreatePreparer ¶
func (client ConnectedClusterClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, connectedCluster ConnectedCluster) (*http.Request, error)
CreatePreparer prepares the Create request.
func (ConnectedClusterClient) CreateResponder ¶
func (client ConnectedClusterClient) CreateResponder(resp *http.Response) (result ConnectedCluster, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (ConnectedClusterClient) CreateSender ¶
func (client ConnectedClusterClient) CreateSender(req *http.Request) (future ConnectedClusterCreateFuture, err error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (ConnectedClusterClient) Delete ¶
func (client ConnectedClusterClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result ConnectedClusterDeleteFuture, err error)
Delete delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM). Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the Kubernetes cluster on which get is called.
func (ConnectedClusterClient) DeletePreparer ¶
func (client ConnectedClusterClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ConnectedClusterClient) DeleteResponder ¶
func (client ConnectedClusterClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ConnectedClusterClient) DeleteSender ¶
func (client ConnectedClusterClient) DeleteSender(req *http.Request) (future ConnectedClusterDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ConnectedClusterClient) Get ¶
func (client ConnectedClusterClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result ConnectedCluster, err error)
Get returns the properties of the specified connected cluster, including name, identity, properties, and additional cluster details. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the Kubernetes cluster on which get is called.
func (ConnectedClusterClient) GetPreparer ¶
func (client ConnectedClusterClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ConnectedClusterClient) GetResponder ¶
func (client ConnectedClusterClient) GetResponder(resp *http.Response) (result ConnectedCluster, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ConnectedClusterClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ConnectedClusterClient) ListByResourceGroup ¶
func (client ConnectedClusterClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ConnectedClusterListPage, err error)
ListByResourceGroup API to enumerate registered connected K8s clusters under a Resource Group Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (ConnectedClusterClient) ListByResourceGroupComplete ¶
func (client ConnectedClusterClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ConnectedClusterListIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (ConnectedClusterClient) ListByResourceGroupPreparer ¶
func (client ConnectedClusterClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ConnectedClusterClient) ListByResourceGroupResponder ¶
func (client ConnectedClusterClient) ListByResourceGroupResponder(resp *http.Response) (result ConnectedClusterList, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ConnectedClusterClient) ListByResourceGroupSender ¶
func (client ConnectedClusterClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ConnectedClusterClient) ListBySubscription ¶
func (client ConnectedClusterClient) ListBySubscription(ctx context.Context) (result ConnectedClusterListPage, err error)
ListBySubscription API to enumerate registered connected K8s clusters under a Subscription
func (ConnectedClusterClient) ListBySubscriptionComplete ¶
func (client ConnectedClusterClient) ListBySubscriptionComplete(ctx context.Context) (result ConnectedClusterListIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (ConnectedClusterClient) ListBySubscriptionPreparer ¶
func (client ConnectedClusterClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (ConnectedClusterClient) ListBySubscriptionResponder ¶
func (client ConnectedClusterClient) ListBySubscriptionResponder(resp *http.Response) (result ConnectedClusterList, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (ConnectedClusterClient) ListBySubscriptionSender ¶
func (client ConnectedClusterClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (ConnectedClusterClient) Update ¶
func (client ConnectedClusterClient) Update(ctx context.Context, resourceGroupName string, clusterName string, connectedClusterPatch ConnectedClusterPatch) (result ConnectedCluster, err error)
Update API to update certain properties of the connected cluster resource Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the Kubernetes cluster on which get is called. connectedClusterPatch - parameters supplied to update Connected Cluster.
func (ConnectedClusterClient) UpdatePreparer ¶
func (client ConnectedClusterClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, connectedClusterPatch ConnectedClusterPatch) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ConnectedClusterClient) UpdateResponder ¶
func (client ConnectedClusterClient) UpdateResponder(resp *http.Response) (result ConnectedCluster, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ConnectedClusterClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ConnectedClusterCreateFuture ¶
type ConnectedClusterCreateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ConnectedClusterClient) (ConnectedCluster, error) }
ConnectedClusterCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ConnectedClusterCreateFuture) UnmarshalJSON ¶
func (future *ConnectedClusterCreateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ConnectedClusterDeleteFuture ¶
type ConnectedClusterDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ConnectedClusterClient) (autorest.Response, error) }
ConnectedClusterDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ConnectedClusterDeleteFuture) UnmarshalJSON ¶
func (future *ConnectedClusterDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ConnectedClusterIdentity ¶
type ConnectedClusterIdentity struct { // PrincipalID - READ-ONLY; The principal id of connected cluster identity. This property will only be provided for a system assigned identity. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty"` // Type - The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster. Possible values include: 'None', 'SystemAssigned' Type ResourceIdentityType `json:"type,omitempty"` }
ConnectedClusterIdentity identity for the connected cluster.
func (ConnectedClusterIdentity) MarshalJSON ¶
func (cci ConnectedClusterIdentity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectedClusterIdentity.
type ConnectedClusterList ¶
type ConnectedClusterList struct { autorest.Response `json:"-"` // Value - The list of connected clusters Value *[]ConnectedCluster `json:"value,omitempty"` // NextLink - The link to fetch the next page of connected cluster NextLink *string `json:"nextLink,omitempty"` }
ConnectedClusterList the paginated list of connected Clusters
func (ConnectedClusterList) IsEmpty ¶
func (ccl ConnectedClusterList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ConnectedClusterListIterator ¶
type ConnectedClusterListIterator struct {
// contains filtered or unexported fields
}
ConnectedClusterListIterator provides access to a complete listing of ConnectedCluster values.
func NewConnectedClusterListIterator ¶
func NewConnectedClusterListIterator(page ConnectedClusterListPage) ConnectedClusterListIterator
Creates a new instance of the ConnectedClusterListIterator type.
func (*ConnectedClusterListIterator) Next ¶
func (iter *ConnectedClusterListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ConnectedClusterListIterator) NextWithContext ¶
func (iter *ConnectedClusterListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ConnectedClusterListIterator) NotDone ¶
func (iter ConnectedClusterListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ConnectedClusterListIterator) Response ¶
func (iter ConnectedClusterListIterator) Response() ConnectedClusterList
Response returns the raw server response from the last page request.
func (ConnectedClusterListIterator) Value ¶
func (iter ConnectedClusterListIterator) Value() ConnectedCluster
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ConnectedClusterListPage ¶
type ConnectedClusterListPage struct {
// contains filtered or unexported fields
}
ConnectedClusterListPage contains a page of ConnectedCluster values.
func NewConnectedClusterListPage ¶
func NewConnectedClusterListPage(cur ConnectedClusterList, getNextPage func(context.Context, ConnectedClusterList) (ConnectedClusterList, error)) ConnectedClusterListPage
Creates a new instance of the ConnectedClusterListPage type.
func (*ConnectedClusterListPage) Next ¶
func (page *ConnectedClusterListPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ConnectedClusterListPage) NextWithContext ¶
func (page *ConnectedClusterListPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ConnectedClusterListPage) NotDone ¶
func (page ConnectedClusterListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ConnectedClusterListPage) Response ¶
func (page ConnectedClusterListPage) Response() ConnectedClusterList
Response returns the raw server response from the last page request.
func (ConnectedClusterListPage) Values ¶
func (page ConnectedClusterListPage) Values() []ConnectedCluster
Values returns the slice of values for the current page or nil if there are no values.
type ConnectedClusterPatch ¶
type ConnectedClusterPatch struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Properties - Describes the connected cluster resource properties that can be updated during PATCH operation. Properties interface{} `json:"properties,omitempty"` }
ConnectedClusterPatch object containing updates for patch operations.
func (ConnectedClusterPatch) MarshalJSON ¶
func (ccp ConnectedClusterPatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectedClusterPatch.
type ConnectedClusterProperties ¶
type ConnectedClusterProperties struct { // AgentPublicKeyCertificate - Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. AgentPublicKeyCertificate *string `json:"agentPublicKeyCertificate,omitempty"` // KubernetesVersion - READ-ONLY; The Kubernetes version of the connected cluster resource KubernetesVersion *string `json:"kubernetesVersion,omitempty"` // TotalNodeCount - READ-ONLY; Number of nodes present in the connected cluster resource TotalNodeCount *int32 `json:"totalNodeCount,omitempty"` // TotalCoreCount - READ-ONLY; Number of CPU cores present in the connected cluster resource TotalCoreCount *int32 `json:"totalCoreCount,omitempty"` // AgentVersion - READ-ONLY; Version of the agent running on the connected cluster resource AgentVersion *string `json:"agentVersion,omitempty"` // ProvisioningState - Provisioning state of the connected cluster resource. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Updating', 'Deleting', 'Accepted' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Distribution - The Kubernetes distribution running on this connected cluster. Distribution *string `json:"distribution,omitempty"` // Infrastructure - The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. Infrastructure *string `json:"infrastructure,omitempty"` // Offering - READ-ONLY; Connected cluster offering Offering *string `json:"offering,omitempty"` // ManagedIdentityCertificateExpirationTime - READ-ONLY; Expiration time of the managed identity certificate ManagedIdentityCertificateExpirationTime *date.Time `json:"managedIdentityCertificateExpirationTime,omitempty"` // LastConnectivityTime - READ-ONLY; Time representing the last instance when heart beat was received from the cluster LastConnectivityTime *date.Time `json:"lastConnectivityTime,omitempty"` // ConnectivityStatus - READ-ONLY; Represents the connectivity status of the connected cluster. Possible values include: 'Connecting', 'Connected', 'Offline', 'Expired' ConnectivityStatus ConnectivityStatus `json:"connectivityStatus,omitempty"` }
ConnectedClusterProperties properties of the connected cluster.
func (ConnectedClusterProperties) MarshalJSON ¶
func (ccp ConnectedClusterProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectedClusterProperties.
type ConnectivityStatus ¶
type ConnectivityStatus string
ConnectivityStatus enumerates the values for connectivity status.
const ( // Connected ... Connected ConnectivityStatus = "Connected" // Connecting ... Connecting ConnectivityStatus = "Connecting" // Expired ... Expired ConnectivityStatus = "Expired" // Offline ... Offline ConnectivityStatus = "Offline" )
func PossibleConnectivityStatusValues ¶
func PossibleConnectivityStatusValues() []ConnectivityStatus
PossibleConnectivityStatusValues returns an array of possible values for the ConnectivityStatus const type.
type CreatedByType ¶
type CreatedByType string
CreatedByType enumerates the values for created by type.
const ( // Application ... Application CreatedByType = "Application" // Key ... Key CreatedByType = "Key" // ManagedIdentity ... ManagedIdentity CreatedByType = "ManagedIdentity" // User ... User CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
ErrorAdditionalInfo the resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
type ErrorDetail ¶
type ErrorDetail struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorDetail `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
ErrorDetail the error detail.
func (ErrorDetail) MarshalJSON ¶
func (ed ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct { // Error - The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type LastModifiedByType ¶
type LastModifiedByType string
LastModifiedByType enumerates the values for last modified by type.
const ( // LastModifiedByTypeApplication ... LastModifiedByTypeApplication LastModifiedByType = "Application" // LastModifiedByTypeKey ... LastModifiedByTypeKey LastModifiedByType = "Key" // LastModifiedByTypeManagedIdentity ... LastModifiedByTypeManagedIdentity LastModifiedByType = "ManagedIdentity" // LastModifiedByTypeUser ... LastModifiedByTypeUser LastModifiedByType = "User" )
func PossibleLastModifiedByTypeValues ¶
func PossibleLastModifiedByTypeValues() []LastModifiedByType
PossibleLastModifiedByTypeValues returns an array of possible values for the LastModifiedByType const type.
type Operation ¶
type Operation struct { // Name - READ-ONLY; Operation name: {Microsoft.Kubernetes}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - READ-ONLY; The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` }
Operation the Connected cluster API operation
func (Operation) MarshalJSON ¶
MarshalJSON is the custom marshaler for Operation.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - Service provider: Microsoft.connectedClusters Provider *string `json:"provider,omitempty"` // Resource - Connected Cluster Resource on which the operation is performed Resource *string `json:"resource,omitempty"` // Operation - Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` // Description - Description of the operation. Description *string `json:"description,omitempty"` }
OperationDisplay the object that represents the operation.
type OperationList ¶
type OperationList struct { autorest.Response `json:"-"` // Value - READ-ONLY; The list of connected cluster API operations. Value *[]Operation `json:"value,omitempty"` // NextLink - The link to fetch the next page of connected cluster API operations. NextLink *string `json:"nextLink,omitempty"` }
OperationList the paginated list of connected cluster API operations.
func (OperationList) IsEmpty ¶
func (ol OperationList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (OperationList) MarshalJSON ¶
func (ol OperationList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationList.
type OperationListIterator ¶
type OperationListIterator struct {
// contains filtered or unexported fields
}
OperationListIterator provides access to a complete listing of Operation values.
func NewOperationListIterator ¶
func NewOperationListIterator(page OperationListPage) OperationListIterator
Creates a new instance of the OperationListIterator type.
func (*OperationListIterator) Next ¶
func (iter *OperationListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListIterator) NextWithContext ¶
func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (OperationListIterator) NotDone ¶
func (iter OperationListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListIterator) Response ¶
func (iter OperationListIterator) Response() OperationList
Response returns the raw server response from the last page request.
func (OperationListIterator) Value ¶
func (iter OperationListIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListPage ¶
type OperationListPage struct {
// contains filtered or unexported fields
}
OperationListPage contains a page of Operation values.
func NewOperationListPage ¶
func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage
Creates a new instance of the OperationListPage type.
func (*OperationListPage) Next ¶
func (page *OperationListPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListPage) NextWithContext ¶
func (page *OperationListPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (OperationListPage) NotDone ¶
func (page OperationListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListPage) Response ¶
func (page OperationListPage) Response() OperationList
Response returns the raw server response from the last page request.
func (OperationListPage) Values ¶
func (page OperationListPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (OperationsClient) Get ¶
func (client OperationsClient) Get(ctx context.Context) (result OperationListPage, err error)
Get lists all of the available API operations for Connected Cluster resource.
func (OperationsClient) GetComplete ¶
func (client OperationsClient) GetComplete(ctx context.Context) (result OperationListIterator, err error)
GetComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationsClient) GetPreparer ¶
GetPreparer prepares the Get request.
func (OperationsClient) GetResponder ¶
func (client OperationsClient) GetResponder(resp *http.Response) (result OperationList, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // Accepted ... Accepted ProvisioningState = "Accepted" // Canceled ... Canceled ProvisioningState = "Canceled" // Deleting ... Deleting ProvisioningState = "Deleting" // Failed ... Failed ProvisioningState = "Failed" // Provisioning ... Provisioning ProvisioningState = "Provisioning" // Succeeded ... Succeeded ProvisioningState = "Succeeded" // Updating ... Updating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type ProxyResource ¶
type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
func (ProxyResource) MarshalJSON ¶
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
type Resource ¶
type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
Resource common fields that are returned in the response for all Azure Resource Manager resources
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType enumerates the values for resource identity type.
const ( // None ... None ResourceIdentityType = "None" // SystemAssigned ... SystemAssigned ResourceIdentityType = "SystemAssigned" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
type SystemData ¶
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'LastModifiedByTypeUser', 'LastModifiedByTypeApplication', 'LastModifiedByTypeManagedIdentity', 'LastModifiedByTypeKey' LastModifiedByType LastModifiedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource modification (UTC). LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
SystemData metadata pertaining to creation and last modification of the resource.
type TrackedResource ¶
type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.