hybridkubernetes

package
v58.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package hybridkubernetes implements the Azure ARM Hybridkubernetes service API version 2020-01-01-preview.

Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster

Index

Constants

View Source
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 AuthenticationDetails

type AuthenticationDetails struct {
	// AuthenticationMethod - The mode of client authentication.
	AuthenticationMethod *string `json:"authenticationMethod,omitempty"`
	// Value - Authentication token value.
	Value *AuthenticationDetailsValue `json:"value,omitempty"`
}

AuthenticationDetails authentication details of the user

type AuthenticationDetailsValue

type AuthenticationDetailsValue struct {
	// Token - Authentication token.
	Token *string `json:"token,omitempty"`
}

AuthenticationDetailsValue authentication token value.

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

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

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"`
	// 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 ConnectedClusterAADProfile

type ConnectedClusterAADProfile struct {
	// TenantID - The aad tenant id which is configured on target K8s cluster
	TenantID *string `json:"tenantId,omitempty"`
	// ClientAppID - The client app id configured on target K8 cluster
	ClientAppID *string `json:"clientAppId,omitempty"`
	// ServerAppID - The server app id to access AD server
	ServerAppID *string `json:"serverAppId,omitempty"`
}

ConnectedClusterAADProfile AAD profile of the connected cluster

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

func (client ConnectedClusterClient) GetSender(req *http.Request) (*http.Response, error)

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) ListClusterUserCredentials

func (client ConnectedClusterClient) ListClusterUserCredentials(ctx context.Context, resourceGroupName string, clusterName string, clientProxy *bool, clientAuthenticationDetails *AuthenticationDetails) (result CredentialResults, err error)

ListClusterUserCredentials 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. clientProxy - parameter to indicate whether the request is for client side proxy or not clientAuthenticationDetails - authentication parameters supplied by the user to fetch credentials for accessing the cluster.

func (ConnectedClusterClient) ListClusterUserCredentialsPreparer

func (client ConnectedClusterClient) ListClusterUserCredentialsPreparer(ctx context.Context, resourceGroupName string, clusterName string, clientProxy *bool, clientAuthenticationDetails *AuthenticationDetails) (*http.Request, error)

ListClusterUserCredentialsPreparer prepares the ListClusterUserCredentials request.

func (ConnectedClusterClient) ListClusterUserCredentialsResponder

func (client ConnectedClusterClient) ListClusterUserCredentialsResponder(resp *http.Response) (result CredentialResults, err error)

ListClusterUserCredentialsResponder handles the response to the ListClusterUserCredentials request. The method always closes the http.Response Body.

func (ConnectedClusterClient) ListClusterUserCredentialsSender

func (client ConnectedClusterClient) ListClusterUserCredentialsSender(req *http.Request) (*http.Response, error)

ListClusterUserCredentialsSender sends the ListClusterUserCredentials 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

func (client ConnectedClusterClient) UpdateSender(req *http.Request) (*http.Response, error)

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

Response returns the raw server response from the last page request.

func (ConnectedClusterListIterator) Value

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

Response returns the raw server response from the last page request.

func (ConnectedClusterListPage) Values

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"`
	// ConnectedClusterPatchProperties - Describes the connected cluster resource properties that can be updated during PATCH operation.
	*ConnectedClusterPatchProperties `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.

func (*ConnectedClusterPatch) UnmarshalJSON

func (ccp *ConnectedClusterPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ConnectedClusterPatch struct.

type ConnectedClusterPatchProperties

type ConnectedClusterPatchProperties 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"`
}

ConnectedClusterPatchProperties properties which can be patched on the connected cluster resource.

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"`
	// AadProfile - AAD profile of the connected cluster.
	AadProfile *ConnectedClusterAADProfile `json:"aadProfile,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 - 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 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 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

func (o Operation) MarshalJSON() ([]byte, error)

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

func (client OperationsClient) GetPreparer(ctx context.Context) (*http.Request, error)

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.

func (OperationsClient) GetSender

func (client OperationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

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 an Azure Resource Manager proxy resource. It will have everything other than required location and tags

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

func (r Resource) MarshalJSON() ([]byte, error)

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 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

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL