Documentation
ΒΆ
Overview ΒΆ
Package hybridkubernetes implements the Azure ARM Hybridkubernetes service API version 2021-10-01.
Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster
Index ΒΆ
- Constants
- func UserAgent() string
- func Version() string
- type AuthenticationMethod
- 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) ListClusterUserCredential(ctx context.Context, resourceGroupName string, clusterName string, ...) (result CredentialResults, err error)
- func (client ConnectedClusterClient) ListClusterUserCredentialPreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ConnectedClusterClient) ListClusterUserCredentialResponder(resp *http.Response) (result CredentialResults, err error)
- func (client ConnectedClusterClient) ListClusterUserCredentialSender(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 CredentialResult
- type CredentialResults
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type HybridConnectionConfig
- type LastModifiedByType
- type ListClusterUserCredentialProperties
- 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 AuthenticationMethod ΒΆ
type AuthenticationMethod string
AuthenticationMethod enumerates the values for authentication method.
const ( // AuthenticationMethodAAD ... AuthenticationMethodAAD AuthenticationMethod = "AAD" // AuthenticationMethodToken ... AuthenticationMethodToken AuthenticationMethod = "Token" )
func PossibleAuthenticationMethodValues ΒΆ
func PossibleAuthenticationMethodValues() []AuthenticationMethod
PossibleAuthenticationMethodValues returns an array of possible values for the AuthenticationMethod const type.
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) ListClusterUserCredential ΒΆ
func (client ConnectedClusterClient) ListClusterUserCredential(ctx context.Context, resourceGroupName string, clusterName string, properties ListClusterUserCredentialProperties) (result CredentialResults, err error)
ListClusterUserCredential gets cluster user credentials of the connected cluster with a specified resource group and name. 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. properties - listClusterUserCredential properties
func (ConnectedClusterClient) ListClusterUserCredentialPreparer ΒΆ
func (client ConnectedClusterClient) ListClusterUserCredentialPreparer(ctx context.Context, resourceGroupName string, clusterName string, properties ListClusterUserCredentialProperties) (*http.Request, error)
ListClusterUserCredentialPreparer prepares the ListClusterUserCredential request.
func (ConnectedClusterClient) ListClusterUserCredentialResponder ΒΆ
func (client ConnectedClusterClient) ListClusterUserCredentialResponder(resp *http.Response) (result CredentialResults, err error)
ListClusterUserCredentialResponder handles the response to the ListClusterUserCredential request. The method always closes the http.Response Body.
func (ConnectedClusterClient) ListClusterUserCredentialSender ΒΆ
func (client ConnectedClusterClient) ListClusterUserCredentialSender(req *http.Request) (*http.Response, error)
ListClusterUserCredentialSender sends the ListClusterUserCredential 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: 'ResourceIdentityTypeNone', 'ResourceIdentityTypeSystemAssigned'
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: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateProvisioning', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateAccepted'
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: 'ConnectivityStatusConnecting', 'ConnectivityStatusConnected', 'ConnectivityStatusOffline', 'ConnectivityStatusExpired'
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 ( // ConnectivityStatusConnected ... ConnectivityStatusConnected ConnectivityStatus = "Connected" // ConnectivityStatusConnecting ... ConnectivityStatusConnecting ConnectivityStatus = "Connecting" // ConnectivityStatusExpired ... ConnectivityStatusExpired ConnectivityStatus = "Expired" // ConnectivityStatusOffline ... ConnectivityStatusOffline 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 ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ΒΆ
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
type CredentialResult ΒΆ
type CredentialResult struct {
// Name - READ-ONLY; The name of the credential.
Name *string `json:"name,omitempty"`
// Value - READ-ONLY; Base64-encoded Kubernetes configuration file.
Value *[]byte `json:"value,omitempty"`
}
CredentialResult the credential result response.
func (CredentialResult) MarshalJSON ΒΆ
func (cr CredentialResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CredentialResult.
type CredentialResults ΒΆ
type CredentialResults struct {
autorest.Response `json:"-"`
// HybridConnectionConfig - READ-ONLY; Contains the REP (rendezvous endpoint) and βSenderβ access token.
HybridConnectionConfig *HybridConnectionConfig `json:"hybridConnectionConfig,omitempty"`
// Kubeconfigs - READ-ONLY; Base64-encoded Kubernetes configuration file.
Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"`
}
CredentialResults the list of credential result response.
func (CredentialResults) MarshalJSON ΒΆ
func (cr CredentialResults) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CredentialResults.
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 HybridConnectionConfig ΒΆ
type HybridConnectionConfig struct {
// ExpirationTime - READ-ONLY; Timestamp when this token will be expired.
ExpirationTime *int64 `json:"expirationTime,omitempty"`
// HybridConnectionName - READ-ONLY; Name of the connection
HybridConnectionName *string `json:"hybridConnectionName,omitempty"`
// Relay - READ-ONLY; Name of the relay.
Relay *string `json:"relay,omitempty"`
// Token - READ-ONLY; Sender access token
Token *string `json:"token,omitempty"`
}
HybridConnectionConfig contains the REP (rendezvous endpoint) and βSenderβ access token.
func (HybridConnectionConfig) MarshalJSON ΒΆ
func (hcc HybridConnectionConfig) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for HybridConnectionConfig.
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 ListClusterUserCredentialProperties ΒΆ
type ListClusterUserCredentialProperties struct {
// AuthenticationMethod - The mode of client authentication. Possible values include: 'AuthenticationMethodToken', 'AuthenticationMethodAAD'
AuthenticationMethod AuthenticationMethod `json:"authenticationMethod,omitempty"`
// ClientProxy - Boolean value to indicate whether the request is for client side proxy or not
ClientProxy *bool `json:"clientProxy,omitempty"`
}
ListClusterUserCredentialProperties ...
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 ( // ProvisioningStateAccepted ... ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled ... ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateDeleting ... ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateProvisioning ... ProvisioningStateProvisioning ProvisioningState = "Provisioning" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating ... ProvisioningStateUpdating 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 ( // ResourceIdentityTypeNone ... ResourceIdentityTypeNone ResourceIdentityType = "None" // ResourceIdentityTypeSystemAssigned ... ResourceIdentityTypeSystemAssigned 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: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
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.