azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes Index | Files | Directories

package hybridkubernetes

import "github.com/Azure/azure-sdk-for-go/services/preview/hybridkubernetes/mgmt/2020-01-01-preview/hybridkubernetes"

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

Package Files

client.go connectedcluster.go enums.go models.go operations.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Hybridkubernetes
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AuthenticationDetails Uses

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 Uses

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

AuthenticationDetailsValue authentication token value.

type AzureEntityResource Uses

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.

type BaseClient Uses

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

BaseClient is the base client for Hybridkubernetes.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

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 Uses

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 Uses

func (cc ConnectedCluster) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConnectedCluster.

func (*ConnectedCluster) UnmarshalJSON Uses

func (cc *ConnectedCluster) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ConnectedCluster struct.

type ConnectedClusterAADProfile Uses

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 Uses

type ConnectedClusterClient struct {
    BaseClient
}

ConnectedClusterClient is the azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster

func NewConnectedClusterClient Uses

func NewConnectedClusterClient(subscriptionID string) ConnectedClusterClient

NewConnectedClusterClient creates an instance of the ConnectedClusterClient client.

func NewConnectedClusterClientWithBaseURI Uses

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 Uses

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 Uses

func (client ConnectedClusterClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, connectedCluster ConnectedCluster) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ConnectedClusterClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

func (client ConnectedClusterClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ConnectedClusterClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

func (client ConnectedClusterClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ConnectedClusterClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (client ConnectedClusterClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ConnectedClusterClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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 Uses

func (client ConnectedClusterClient) ListBySubscriptionComplete(ctx context.Context) (result ConnectedClusterListIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (ConnectedClusterClient) ListBySubscriptionPreparer Uses

func (client ConnectedClusterClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ConnectedClusterClient) ListBySubscriptionResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (client ConnectedClusterClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, connectedClusterPatch ConnectedClusterPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ConnectedClusterClient) UpdateResponder Uses

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 Uses

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 Uses

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.

type ConnectedClusterDeleteFuture Uses

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.

type ConnectedClusterIdentity Uses

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 Uses

func (cci ConnectedClusterIdentity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConnectedClusterIdentity.

type ConnectedClusterList Uses

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 Uses

func (ccl ConnectedClusterList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ConnectedClusterListIterator Uses

type ConnectedClusterListIterator struct {
    // contains filtered or unexported fields
}

ConnectedClusterListIterator provides access to a complete listing of ConnectedCluster values.

func NewConnectedClusterListIterator Uses

func NewConnectedClusterListIterator(page ConnectedClusterListPage) ConnectedClusterListIterator

Creates a new instance of the ConnectedClusterListIterator type.

func (*ConnectedClusterListIterator) Next Uses

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 Uses

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 Uses

func (iter ConnectedClusterListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ConnectedClusterListIterator) Response Uses

func (iter ConnectedClusterListIterator) Response() ConnectedClusterList

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

func (ConnectedClusterListIterator) Value Uses

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 Uses

type ConnectedClusterListPage struct {
    // contains filtered or unexported fields
}

ConnectedClusterListPage contains a page of ConnectedCluster values.

func NewConnectedClusterListPage Uses

func NewConnectedClusterListPage(cur ConnectedClusterList, getNextPage func(context.Context, ConnectedClusterList) (ConnectedClusterList, error)) ConnectedClusterListPage

Creates a new instance of the ConnectedClusterListPage type.

func (*ConnectedClusterListPage) Next Uses

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 Uses

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 Uses

func (page ConnectedClusterListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ConnectedClusterListPage) Response Uses

func (page ConnectedClusterListPage) Response() ConnectedClusterList

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

func (ConnectedClusterListPage) Values Uses

func (page ConnectedClusterListPage) Values() []ConnectedCluster

Values returns the slice of values for the current page or nil if there are no values.

type ConnectedClusterPatch Uses

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 Uses

func (ccp ConnectedClusterPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConnectedClusterPatch.

func (*ConnectedClusterPatch) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ConnectedClusterPatch struct.

type ConnectedClusterPatchProperties Uses

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 Uses

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 Uses

func (ccp ConnectedClusterProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConnectedClusterProperties.

type ConnectivityStatus Uses

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 Uses

func PossibleConnectivityStatusValues() []ConnectivityStatus

PossibleConnectivityStatusValues returns an array of possible values for the ConnectivityStatus const type.

type CredentialResult Uses

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.

type CredentialResults Uses

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.

type ErrorAdditionalInfo Uses

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.

type ErrorDetail Uses

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.

type ErrorResponse Uses

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 Uses

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.

type Operation Uses

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

type OperationDisplay Uses

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 Uses

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 Uses

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (OperationList) MarshalJSON Uses

func (ol OperationList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationList.

type OperationListIterator Uses

type OperationListIterator struct {
    // contains filtered or unexported fields
}

OperationListIterator provides access to a complete listing of Operation values.

func NewOperationListIterator Uses

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListIterator) Response Uses

func (iter OperationListIterator) Response() OperationList

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

func (OperationListIterator) Value Uses

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 Uses

type OperationListPage struct {
    // contains filtered or unexported fields
}

OperationListPage contains a page of Operation values.

func NewOperationListPage Uses

func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next Uses

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 Uses

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 Uses

func (page OperationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListPage) Response Uses

func (page OperationListPage) Response() OperationList

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

func (OperationListPage) Values Uses

func (page OperationListPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

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 Uses

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 Uses

func (client OperationsClient) GetComplete(ctx context.Context) (result OperationListIterator, err error)

GetComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (OperationsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProxyResource Uses

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

type Resource Uses

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

type ResourceIdentityType Uses

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
    // None ...
    None ResourceIdentityType = "None"
    // SystemAssigned ...
    SystemAssigned ResourceIdentityType = "SystemAssigned"
)

func PossibleResourceIdentityTypeValues Uses

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type TrackedResource Uses

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 Uses

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

MarshalJSON is the custom marshaler for TrackedResource.

Directories

PathSynopsis
hybridkubernetesapi

Package hybridkubernetes imports 10 packages (graph) and is imported by 1 packages. Updated 2021-01-26. Refresh now. Tools for package owners.