Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultAzureDevOpsURL is the default URL for Azure DevOps organizations. DefaultAzureDevOpsURL string = "https://dev.azure.com" )
Functions ¶
func EnsureValidURL ¶
EnsureValidURL normalizes an Azure DevOps organization URL.
func PullRequestURL ¶
PullRequestURL returns the Azure DevOps web URL for a pull request.
Types ¶
type Client ¶
type Client struct {
Spec Spec
// contains filtered or unexported fields
}
func (Client) GetRepository ¶
func (Client) NewCoreClient ¶
type Spec ¶
type Spec struct {
// Organization defines the Azure DevOps organization URL to interact with.
Organization string `yaml:",omitempty"`
// "url" defines the Azure DevOps organization URL to interact with.
URL string `yaml:",omitempty"`
// "project" defines the Azure DevOps project containing the repository.
Project string `yaml:",omitempty" jsonschema:"required"`
// "repository" defines the Azure DevOps repository name.
Repository string `yaml:",omitempty" jsonschema:"required"`
// "username" defines the username used for git authentication.
Username string `yaml:",omitempty"`
// "token" specifies the personal access token used to authenticate with Azure DevOps.
Token string `yaml:",omitempty"`
}
Spec defines a specification for an Azure DevOps resource parsed from an updatecli manifest file.
Click to show internal directories.
Click to hide internal directories.