Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub
modulepackage
0.6.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Devhub Module for Go

PkgGoDev

The armdevhub module provides operations for working with Azure Devhub.

Source code

Getting started

Prerequisites

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Devhub module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Devhub. 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 Devhub 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 := armdevhub.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 := armdevhub.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.NewDeveloperHubServiceClient()

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 Devhub 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.
NewDeveloperHubServiceClient creates a new instance of DeveloperHubServiceClient with the specified values.
NewIacProfilesClient creates a new instance of IacProfilesClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewWorkflowClient creates a new instance of WorkflowClient with the specified values.
PossibleActionTypeValues returns the possible values for the ActionType const type.
PossibleAuthorizationStatusValues returns the possible values for the AuthorizationStatus const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleDockerfileGenerationModeValues returns the possible values for the DockerfileGenerationMode const type.
PossibleGenerationLanguageValues returns the possible values for the GenerationLanguage const type.
PossibleGenerationManifestTypeValues returns the possible values for the GenerationManifestType const type.
PossibleManifestGenerationModeValues returns the possible values for the ManifestGenerationMode const type.
PossibleManifestTypeValues returns the possible values for the ManifestType const type.
PossibleOriginValues returns the possible values for the Origin const type.
PossiblePullRequestStatusValues returns the possible values for the PullRequestStatus const type.
PossibleQuickStartTemplateTypeValues returns the possible values for the QuickStartTemplateType const type.
PossibleWorkflowRunStatusValues returns the possible values for the WorkflowRunStatus const type.

# Constants

No description provided by the author
AuthorizationStatusAuthorized - Requests authorized successfully.
AuthorizationStatusError - Requests returned other error response.
AuthorizationStatusNotFound - Requests returned NotFound response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DockerfileGenerationModeDisabled - Dockerfiles will not be generated.
DockerfileGenerationModeEnabled - Dockerfiles will be generated.
GenerationLanguageClojure - clojure language.
GenerationLanguageCsharp - csharp language.
GenerationLanguageErlang - erlang language.
GenerationLanguageGo - go language.
GenerationLanguageGomodule - gomodule language.
GenerationLanguageGradle - gradle language.
GenerationLanguageJava - java language.
GenerationLanguageJavascript - javascript language.
GenerationLanguagePhp - php language.
GenerationLanguagePython - python language.
GenerationLanguageRuby - ruby language.
GenerationLanguageRust - rust language.
GenerationLanguageSwift - swift language.
GenerationManifestTypeHelm - Helm manifests.
GenerationManifestTypeKube - Kubernetes manifests.
ManifestGenerationModeDisabled - Manifests will not be generated.
ManifestGenerationModeEnabled - Manifests will be generated.
ManifestTypeHelm - Repositories using helm.
ManifestTypeKube - Repositories using kubernetes manifests.
No description provided by the author
No description provided by the author
No description provided by the author
PullRequestStatusMerged - Pull Request merged into repository.
PullRequestStatusRemoved - Workflow no longer found within repository.
PullRequestStatusSubmitted - Pull Request submitted to repository.
PullRequestStatusUnknown - Pull Request state unknown.
QuickStartTemplateTypeALL - The template use quick start template of All supported products.
QuickStartTemplateTypeHCI - The template use quick start template of HCI.
QuickStartTemplateTypeHCIAKS - The template use quick start template of HCI and AKS.
QuickStartTemplateTypeHCIARCVM - The template use quick start template of HCI and ArcVM.
QuickStartTemplateTypeNone - The template has not use quick start template.
WorkflowRunStatusCompleted - Workflow run is completed.
WorkflowRunStatusInprogress - Workflow run is inprogress.
WorkflowRunStatusQueued - Workflow run is queued.

# Structs

ACR - Information on the azure container registry.
ArtifactGenerationProperties - Properties used for generating artifacts such as Dockerfiles and manifests.
ClientFactory is a client factory used to create any client in this module.
DeleteWorkflowResponse - delete response if content must be provided on delete operation.
No description provided by the author
DeveloperHubServiceClient contains the methods for the DeveloperHubServiceClient group.
DeveloperHubServiceClientGeneratePreviewArtifactsOptions contains the optional parameters for the DeveloperHubServiceClient.GeneratePreviewArtifacts method.
DeveloperHubServiceClientGeneratePreviewArtifactsResponse contains the response from method DeveloperHubServiceClient.GeneratePreviewArtifacts.
DeveloperHubServiceClientGitHubOAuthCallbackOptions contains the optional parameters for the DeveloperHubServiceClient.GitHubOAuthCallback method.
DeveloperHubServiceClientGitHubOAuthCallbackResponse contains the response from method DeveloperHubServiceClient.GitHubOAuthCallback.
DeveloperHubServiceClientGitHubOAuthOptions contains the optional parameters for the DeveloperHubServiceClient.GitHubOAuth method.
DeveloperHubServiceClientGitHubOAuthResponse contains the response from method DeveloperHubServiceClient.GitHubOAuth.
DeveloperHubServiceClientListGitHubOAuthOptions contains the optional parameters for the DeveloperHubServiceClient.ListGitHubOAuth method.
DeveloperHubServiceClientListGitHubOAuthResponse contains the response from method DeveloperHubServiceClient.ListGitHubOAuth.
No description provided by the author
GitHubOAuthCallRequest - GitHubOAuth request object.
GitHubOAuthInfoResponse - URL used to authorize the Developer Hub GitHub App.
GitHubOAuthListResponse - The response from List GitHubOAuth operation.
GitHubOAuthProperties - The response from List GitHubOAuth operation.
GitHubOAuthResponse - Singleton response of GitHubOAuth containing.
GitHubWorkflowProfile - GitHub Workflow Profile.
GitHubWorkflowProfileOidcCredentials - The fields needed for OIDC with GitHub.
IacGitHubProfile - GitHub Profile of a IacProfile.
IacProfile - Resource representation of a IacProfile.
No description provided by the author
IacProfileProperties - Properties of a IacProfile.
IacProfilesClient contains the methods for the IacProfiles group.
IacProfilesClientCreateOrUpdateOptions contains the optional parameters for the IacProfilesClient.CreateOrUpdate method.
IacProfilesClientCreateOrUpdateResponse contains the response from method IacProfilesClient.CreateOrUpdate.
IacProfilesClientDeleteOptions contains the optional parameters for the IacProfilesClient.Delete method.
IacProfilesClientDeleteResponse contains the response from method IacProfilesClient.Delete.
IacProfilesClientExportOptions contains the optional parameters for the IacProfilesClient.Export method.
IacProfilesClientExportResponse contains the response from method IacProfilesClient.Export.
IacProfilesClientGetOptions contains the optional parameters for the IacProfilesClient.Get method.
IacProfilesClientGetResponse contains the response from method IacProfilesClient.Get.
IacProfilesClientListByResourceGroupOptions contains the optional parameters for the IacProfilesClient.NewListByResourceGroupPager method.
IacProfilesClientListByResourceGroupResponse contains the response from method IacProfilesClient.NewListByResourceGroupPager.
IacProfilesClientListOptions contains the optional parameters for the IacProfilesClient.NewListPager method.
IacProfilesClientListResponse contains the response from method IacProfilesClient.NewListPager.
IacProfilesClientScaleOptions contains the optional parameters for the IacProfilesClient.Scale method.
IacProfilesClientScaleResponse contains the response from method IacProfilesClient.Scale.
IacProfilesClientSyncOptions contains the optional parameters for the IacProfilesClient.Sync method.
IacProfilesClientSyncResponse contains the response from method IacProfilesClient.Sync.
IacProfilesClientUpdateTagsOptions contains the optional parameters for the IacProfilesClient.UpdateTags method.
IacProfilesClientUpdateTagsResponse contains the response from method IacProfilesClient.UpdateTags.
No description provided by the author
IacTemplateProperties - Properties of a IacTemplate.
Operation - Details of a REST API operation, returned from the Resource Provider Operations API.
OperationDisplay - Localized display information for this particular operation.
OperationListResult - A list of REST API operations supported by an Azure Resource Provider.
OperationsClient contains the methods for the Operations group.
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
OperationsClientListResponse contains the response from method OperationsClient.List.
No description provided by the author
No description provided by the author
No description provided by the author
StageProperties - Properties of a Stage.
SystemData - Metadata pertaining to creation and last modification of the resource.
TagsObject - Resource tags.
TerraformProfile - Terraform backend profile.
Workflow - Resource representation of a workflow.
WorkflowClient contains the methods for the Workflow group.
WorkflowClientCreateOrUpdateOptions contains the optional parameters for the WorkflowClient.CreateOrUpdate method.
WorkflowClientCreateOrUpdateResponse contains the response from method WorkflowClient.CreateOrUpdate.
WorkflowClientDeleteOptions contains the optional parameters for the WorkflowClient.Delete method.
WorkflowClientDeleteResponse contains the response from method WorkflowClient.Delete.
WorkflowClientGetOptions contains the optional parameters for the WorkflowClient.Get method.
WorkflowClientGetResponse contains the response from method WorkflowClient.Get.
WorkflowClientListByResourceGroupOptions contains the optional parameters for the WorkflowClient.NewListByResourceGroupPager method.
WorkflowClientListByResourceGroupResponse contains the response from method WorkflowClient.NewListByResourceGroupPager.
WorkflowClientListOptions contains the optional parameters for the WorkflowClient.NewListPager method.
WorkflowClientListResponse contains the response from method WorkflowClient.NewListPager.
WorkflowClientUpdateTagsOptions contains the optional parameters for the WorkflowClient.UpdateTags method.
WorkflowClientUpdateTagsResponse contains the response from method WorkflowClient.UpdateTags.
WorkflowListResult - The response from List Workflows operation.
WorkflowProperties - Workflow properties.
No description provided by the author

# Type aliases

ActionType - Enum.
AuthorizationStatus - Determines the authorization status of requests.
CreatedByType - The type of identity that created the resource.
DockerfileGenerationMode - The mode of generation to be used for generating Dockerfiles.
GenerationLanguage - The programming language used.
GenerationManifestType - Determines the type of manifests to be generated.
ManifestGenerationMode - The mode of generation to be used for generating Manifest.
ManifestType - Determines the type of manifests within the repository.
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX.
PullRequestStatus - The status of the Pull Request submitted against the users repository.
QuickStartTemplateType - Determines the authorization status of requests.
WorkflowRunStatus - Describes the status of the workflow run.