Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration/v2
modulepackage
2.2.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Kubernetes Configuration Module for Go

PkgGoDev

The armkubernetesconfiguration module provides operations for working with Azure Kubernetes Configuration.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Kubernetes Configuration module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Kubernetes Configuration. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Kubernetes Configuration module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armkubernetesconfiguration.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armkubernetesconfiguration.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewSourceControlConfigurationsClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Kubernetes Configuration label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

# Packages

No description provided by the author

# Functions

NewClientFactory creates a new instance of ClientFactory with the specified values.
NewExtensionsClient creates a new instance of ExtensionsClient with the specified values.
NewFluxConfigOperationStatusClient creates a new instance of FluxConfigOperationStatusClient with the specified values.
NewFluxConfigurationsClient creates a new instance of FluxConfigurationsClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewOperationStatusClient creates a new instance of OperationStatusClient with the specified values.
NewSourceControlConfigurationsClient creates a new instance of SourceControlConfigurationsClient with the specified values.
PossibleAKSIdentityTypeValues returns the possible values for the AKSIdentityType const type.
PossibleComplianceStateTypeValues returns the possible values for the ComplianceStateType const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleFluxComplianceStateValues returns the possible values for the FluxComplianceState const type.
PossibleKustomizationValidationTypeValues returns the possible values for the KustomizationValidationType const type.
PossibleLevelTypeValues returns the possible values for the LevelType const type.
PossibleMessageLevelTypeValues returns the possible values for the MessageLevelType const type.
PossibleOperatorScopeTypeValues returns the possible values for the OperatorScopeType const type.
PossibleOperatorTypeValues returns the possible values for the OperatorType const type.
PossibleProvisioningStateTypeValues returns the possible values for the ProvisioningStateType const type.
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
PossibleScopeTypeValues returns the possible values for the ScopeType const type.
PossibleSourceKindTypeValues returns the possible values for the SourceKindType const type.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AzureBlobDefinition - Parameters to reconcile to the AzureBlob source kind type.
AzureBlobPatchDefinition - Parameters to reconcile to the AzureBlob source kind type.
BucketDefinition - Parameters to reconcile to the Bucket source kind type.
BucketPatchDefinition - Parameters to reconcile to the Bucket source kind type.
ClientFactory is a client factory used to create any client in this module.
ComplianceStatus - Compliance Status details.
ErrorAdditionalInfo - The resource management error additional info.
ErrorDetail - The error detail.
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations.
Extension - The Extension object.
ExtensionProperties - Properties of an Extension resource.
ExtensionPropertiesAksAssignedIdentity - Identity of the Extension resource in an AKS cluster.
ExtensionsClient contains the methods for the Extensions group.
ExtensionsClientBeginCreateOptions contains the optional parameters for the ExtensionsClient.BeginCreate method.
ExtensionsClientBeginDeleteOptions contains the optional parameters for the ExtensionsClient.BeginDelete method.
ExtensionsClientBeginUpdateOptions contains the optional parameters for the ExtensionsClient.BeginUpdate method.
ExtensionsClientCreateResponse contains the response from method ExtensionsClient.BeginCreate.
ExtensionsClientDeleteResponse contains the response from method ExtensionsClient.BeginDelete.
ExtensionsClientGetOptions contains the optional parameters for the ExtensionsClient.Get method.
ExtensionsClientGetResponse contains the response from method ExtensionsClient.Get.
ExtensionsClientListOptions contains the optional parameters for the ExtensionsClient.NewListPager method.
ExtensionsClientListResponse contains the response from method ExtensionsClient.NewListPager.
ExtensionsClientUpdateResponse contains the response from method ExtensionsClient.BeginUpdate.
ExtensionsList - Result of the request to list Extensions.
ExtensionStatus - Status from the extension.
FluxConfigOperationStatusClient contains the methods for the FluxConfigOperationStatus group.
FluxConfigOperationStatusClientGetOptions contains the optional parameters for the FluxConfigOperationStatusClient.Get method.
FluxConfigOperationStatusClientGetResponse contains the response from method FluxConfigOperationStatusClient.Get.
FluxConfiguration - The Flux Configuration object returned in Get & Put response.
FluxConfigurationPatch - The Flux Configuration Patch Request object.
FluxConfigurationPatchProperties - Updatable properties of an Flux Configuration Patch Request.
FluxConfigurationProperties - Properties to create a Flux Configuration resource.
FluxConfigurationsClient contains the methods for the FluxConfigurations group.
FluxConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the FluxConfigurationsClient.BeginCreateOrUpdate method.
FluxConfigurationsClientBeginDeleteOptions contains the optional parameters for the FluxConfigurationsClient.BeginDelete method.
FluxConfigurationsClientBeginUpdateOptions contains the optional parameters for the FluxConfigurationsClient.BeginUpdate method.
FluxConfigurationsClientCreateOrUpdateResponse contains the response from method FluxConfigurationsClient.BeginCreateOrUpdate.
FluxConfigurationsClientDeleteResponse contains the response from method FluxConfigurationsClient.BeginDelete.
FluxConfigurationsClientGetOptions contains the optional parameters for the FluxConfigurationsClient.Get method.
FluxConfigurationsClientGetResponse contains the response from method FluxConfigurationsClient.Get.
FluxConfigurationsClientListOptions contains the optional parameters for the FluxConfigurationsClient.NewListPager method.
FluxConfigurationsClientListResponse contains the response from method FluxConfigurationsClient.NewListPager.
FluxConfigurationsClientUpdateResponse contains the response from method FluxConfigurationsClient.BeginUpdate.
FluxConfigurationsList - Result of the request to list Flux Configurations.
GitRepositoryDefinition - Parameters to reconcile to the GitRepository source kind type.
GitRepositoryPatchDefinition - Parameters to reconcile to the GitRepository source kind type.
HelmOperatorProperties - Properties for Helm operator.
HelmReleasePropertiesDefinition - Properties for HelmRelease objects.
Identity for the resource.
KustomizationDefinition - The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster.
KustomizationPatchDefinition - The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster.
ManagedIdentityDefinition - Parameters to authenticate using a Managed Identity.
ManagedIdentityPatchDefinition - Parameters to authenticate using a Managed Identity.
ObjectReferenceDefinition - Object reference to a Kubernetes object on a cluster.
ObjectStatusConditionDefinition - Status condition of Kubernetes object.
ObjectStatusDefinition - Statuses of objects deployed by the user-specified kustomizations from the git repository.
OperationsClient contains the methods for the Operations group.
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
OperationStatusClient contains the methods for the OperationStatus group.
OperationStatusClientGetOptions contains the optional parameters for the OperationStatusClient.Get method.
OperationStatusClientGetResponse contains the response from method OperationStatusClient.Get.
OperationStatusClientListOptions contains the optional parameters for the OperationStatusClient.NewListPager method.
OperationStatusClientListResponse contains the response from method OperationStatusClient.NewListPager.
OperationStatusList - The async operations in progress, in the cluster.
OperationStatusResult - The current status of an async operation.
PatchExtension - The Extension Patch Request object.
PatchExtensionProperties - Updatable properties of an Extension Patch Request.
Plan for the resource.
PostBuildDefinition - The postBuild definitions defining variable substitutions for this Kustomization after kustomize build.
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource.
RepositoryRefDefinition - The source reference for the GitRepository object.
Resource - Common fields that are returned in the response for all Azure Resource Manager resources.
ResourceProviderOperation - Supported operation of this resource provider.
ResourceProviderOperationDisplay - Display metadata associated with the operation.
ResourceProviderOperationList - Result of the request to list operations.
Scope of the extension.
ScopeCluster - Specifies that the scope of the extension is Cluster.
ScopeNamespace - Specifies that the scope of the extension is Namespace.
ServicePrincipalDefinition - Parameters to authenticate using Service Principal.
ServicePrincipalPatchDefinition - Parameters to authenticate using Service Principal.
SourceControlConfiguration - The SourceControl Configuration object returned in Get & Put response.
SourceControlConfigurationList - Result of the request to list Source Control Configurations.
SourceControlConfigurationProperties - Properties to create a Source Control Configuration resource.
SourceControlConfigurationsClient contains the methods for the SourceControlConfigurations group.
SourceControlConfigurationsClientBeginDeleteOptions contains the optional parameters for the SourceControlConfigurationsClient.BeginDelete method.
SourceControlConfigurationsClientCreateOrUpdateOptions contains the optional parameters for the SourceControlConfigurationsClient.CreateOrUpdate method.
SourceControlConfigurationsClientCreateOrUpdateResponse contains the response from method SourceControlConfigurationsClient.CreateOrUpdate.
SourceControlConfigurationsClientDeleteResponse contains the response from method SourceControlConfigurationsClient.BeginDelete.
SourceControlConfigurationsClientGetOptions contains the optional parameters for the SourceControlConfigurationsClient.Get method.
SourceControlConfigurationsClientGetResponse contains the response from method SourceControlConfigurationsClient.Get.
SourceControlConfigurationsClientListOptions contains the optional parameters for the SourceControlConfigurationsClient.NewListPager method.
SourceControlConfigurationsClientListResponse contains the response from method SourceControlConfigurationsClient.NewListPager.
SubstituteFromDefinition - Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.
SystemData - Metadata pertaining to creation and last modification of the resource.

# Type aliases

AKSIdentityType - The identity type.
ComplianceStateType - The compliance state of the configuration.
CreatedByType - The type of identity that created the resource.
FluxComplianceState - Compliance state of the cluster object.
KustomizationValidationType - Specify whether to validate the Kubernetes objects referenced in the Kustomization before applying them to the cluster.
LevelType - Level of the status.
MessageLevelType - Level of the message.
OperatorScopeType - Scope at which the operator will be installed.
OperatorType - Type of the operator.
ProvisioningState - The provisioning state of the resource.
ProvisioningStateType - The provisioning state of the resource provider.
ScopeType - Scope at which the configuration will be installed.
SourceKindType - Source Kind to pull the configuration data from.