containerregistry

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package containerregistry implements the Azure ARM Containerregistry service API version 2018-02-01-preview.

Index

Constants

View Source
const (
	// GrantTypeAccessRefreshToken is the keyword used by the azure API that we are
	// authenticating using a refresh token.
	GrantTypeAccessRefreshToken = "access_token_refresh_token"
	// DockerTokenLoginUsernameGUID is the username for `docker login` when using
	// Azure Container Registry with a refresh token.
	DockerTokenLoginUsernameGUID = "00000000-0000-0000-0000-000000000000"
)
View Source
const (
	// DefaultBaseURI is the default URI used for the service Containerregistry
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func PerformTokenExchange

func PerformTokenExchange(
	serverAddress string,
	directive *AuthDirective,
	tenant string,
	accessToken string) (string, error)

PerformTokenExchange makes a request against an Azure Container Registry to send the auth challenge, returning an auth token. This is used in conjunction with ReceiveChallengeFromLoginServer to authenticate against an Azure Container Registry instance.

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 AuthDirective

type AuthDirective struct {
	Service string
	Realm   string
}

AuthDirective is the auth challenge returned from an Azure Container Registry.

func ReceiveChallengeFromLoginServer

func ReceiveChallengeFromLoginServer(serverAddress string) (*AuthDirective, error)

ReceiveChallengeFromLoginServer makes a request against an Azure Container Registry to retrieve the auth challenge. This is used in conjunction with PerformTokenExchange to authenticate against an Azure Container Registry instance.

type AuthResponse

type AuthResponse struct {
	RefreshToken string `json:"refresh_token"`
}

AuthResponse is the auth response returned from an Azure Container Registry.

type BaseClient

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

BaseClient is the base client for Containerregistry.

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.

type BaseImageDependency

type BaseImageDependency struct {
	// Type - The type of the base image dependency. Possible values include: 'BuildTime', 'RunTime'
	Type BaseImageDependencyType `json:"type,omitempty"`
	// IsAutoTriggerEnabled - The value of this flag indicates if build has to be auto triggered when this image is updated.
	IsAutoTriggerEnabled *bool `json:"isAutoTriggerEnabled,omitempty"`
	// RepositoryName - Name of the repository.
	RepositoryName *string `json:"repositoryName,omitempty"`
	// Tag - The tag name.
	Tag *string `json:"tag,omitempty"`
	// Digest - The image digest. Example: SHA256 based digest.
	Digest *string `json:"digest,omitempty"`
}

BaseImageDependency properties that describe a base image dependency.

type BaseImageDependencyType

type BaseImageDependencyType string

BaseImageDependencyType enumerates the values for base image dependency type.

const (
	// BuildTime ...
	BuildTime BaseImageDependencyType = "BuildTime"
	// RunTime ...
	RunTime BaseImageDependencyType = "RunTime"
)

func PossibleBaseImageDependencyTypeValues

func PossibleBaseImageDependencyTypeValues() []BaseImageDependencyType

PossibleBaseImageDependencyTypeValues returns an array of possible values for the BaseImageDependencyType const type.

type BaseImageTriggerType

type BaseImageTriggerType string

BaseImageTriggerType enumerates the values for base image trigger type.

const (
	// None ...
	None BaseImageTriggerType = "None"
	// Runtime ...
	Runtime BaseImageTriggerType = "Runtime"
)

func PossibleBaseImageTriggerTypeValues

func PossibleBaseImageTriggerTypeValues() []BaseImageTriggerType

PossibleBaseImageTriggerTypeValues returns an array of possible values for the BaseImageTriggerType const type.

type BasicBuildStepProperties

type BasicBuildStepProperties interface {
	AsDockerBuildStep() (*DockerBuildStep, bool)
	AsBuildStepProperties() (*BuildStepProperties, bool)
}

BasicBuildStepProperties base properties for any build step.

type BasicBuildStepPropertiesUpdateParameters

type BasicBuildStepPropertiesUpdateParameters interface {
	AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)
	AsBuildStepPropertiesUpdateParameters() (*BuildStepPropertiesUpdateParameters, bool)
}

BasicBuildStepPropertiesUpdateParameters the properties for updating a build step.

type BasicQueueBuildRequest

type BasicQueueBuildRequest interface {
	AsBuildTaskBuildRequest() (*BuildTaskBuildRequest, bool)
	AsQuickBuildRequest() (*QuickBuildRequest, bool)
	AsQueueBuildRequest() (*QueueBuildRequest, bool)
}

BasicQueueBuildRequest the queue build request parameters.

type Build

type Build struct {
	autorest.Response `json:"-"`
	// BuildProperties - The properties of a build.
	*BuildProperties `json:"properties,omitempty"`
	// ID - The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource.
	Type *string `json:"type,omitempty"`
}

Build build resource properties

func (Build) MarshalJSON

func (b Build) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Build.

func (*Build) UnmarshalJSON

func (b *Build) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Build struct.

type BuildArgument

type BuildArgument struct {
	// Type - The type of the argument.
	Type *string `json:"type,omitempty"`
	// Name - The name of the argument.
	Name *string `json:"name,omitempty"`
	// Value - The value of the argument.
	Value *string `json:"value,omitempty"`
	// IsSecret - Flag to indicate whether the argument represents a secret and want to be removed from build logs.
	IsSecret *bool `json:"isSecret,omitempty"`
}

BuildArgument properties of a build argument.

type BuildArgumentList

type BuildArgumentList struct {
	autorest.Response `json:"-"`
	// Value - The collection value.
	Value *[]BuildArgument `json:"value,omitempty"`
	// NextLink - The URI that can be used to request the next set of paged results.
	NextLink *string `json:"nextLink,omitempty"`
}

BuildArgumentList ...

func (BuildArgumentList) IsEmpty

func (bal BuildArgumentList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BuildArgumentListIterator

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

BuildArgumentListIterator provides access to a complete listing of BuildArgument values.

func (*BuildArgumentListIterator) Next

func (iter *BuildArgumentListIterator) 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.

func (BuildArgumentListIterator) NotDone

func (iter BuildArgumentListIterator) NotDone() bool

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

func (BuildArgumentListIterator) Response

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

func (BuildArgumentListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type BuildArgumentListPage

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

BuildArgumentListPage contains a page of BuildArgument values.

func (*BuildArgumentListPage) Next

func (page *BuildArgumentListPage) 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.

func (BuildArgumentListPage) NotDone

func (page BuildArgumentListPage) NotDone() bool

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

func (BuildArgumentListPage) Response

func (page BuildArgumentListPage) Response() BuildArgumentList

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

func (BuildArgumentListPage) Values

func (page BuildArgumentListPage) Values() []BuildArgument

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

type BuildFilter

type BuildFilter struct {
	// BuildID - The unique identifier for the build.
	BuildID *string `json:"buildId,omitempty"`
	// BuildType - The type of build. Possible values include: 'AutoBuild', 'QuickBuild'
	BuildType BuildType `json:"buildType,omitempty"`
	// Status - The current status of the build. Possible values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', 'Canceled', 'AbandonedAsSystemError', 'Timeout'
	Status BuildStatus `json:"status,omitempty"`
	// CreateTime - The create time for a build.
	CreateTime *date.Time `json:"createTime,omitempty"`
	// FinishTime - The time the build finished.
	FinishTime *date.Time `json:"finishTime,omitempty"`
	// OutputImageNames - The list of all images that were generated from the build.
	OutputImageNames *[]string `json:"outputImageNames,omitempty"`
	// IsArchiveEnabled - The value that indicates whether archiving is enabled or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
	// BuildTaskName - The name of the build task that the build corresponds to.
	BuildTaskName *string `json:"buildTaskName,omitempty"`
}

BuildFilter properties that are enabled for Odata querying.

type BuildGetLogResult

type BuildGetLogResult struct {
	autorest.Response `json:"-"`
	// LogLink - The link to logs for a azure container registry build.
	LogLink *string `json:"logLink,omitempty"`
}

BuildGetLogResult the result of get log link operation.

type BuildListResult

type BuildListResult struct {
	autorest.Response `json:"-"`
	// Value - The collection value.
	Value *[]Build `json:"value,omitempty"`
	// NextLink - The URI that can be used to request the next set of paged results.
	NextLink *string `json:"nextLink,omitempty"`
}

BuildListResult collection of builds.

func (BuildListResult) IsEmpty

func (blr BuildListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BuildListResultIterator

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

BuildListResultIterator provides access to a complete listing of Build values.

func (*BuildListResultIterator) Next

func (iter *BuildListResultIterator) 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.

func (BuildListResultIterator) NotDone

func (iter BuildListResultIterator) NotDone() bool

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

func (BuildListResultIterator) Response

func (iter BuildListResultIterator) Response() BuildListResult

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

func (BuildListResultIterator) Value

func (iter BuildListResultIterator) Value() Build

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type BuildListResultPage

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

BuildListResultPage contains a page of Build values.

func (*BuildListResultPage) Next

func (page *BuildListResultPage) 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.

func (BuildListResultPage) NotDone

func (page BuildListResultPage) NotDone() bool

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

func (BuildListResultPage) Response

func (page BuildListResultPage) Response() BuildListResult

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

func (BuildListResultPage) Values

func (page BuildListResultPage) Values() []Build

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

type BuildProperties

type BuildProperties struct {
	// BuildID - The unique identifier for the build.
	BuildID *string `json:"buildId,omitempty"`
	// Status - The current status of the build. Possible values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', 'Canceled', 'AbandonedAsSystemError', 'Timeout'
	Status BuildStatus `json:"status,omitempty"`
	// LastUpdatedTime - The last updated time for the build.
	LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
	// BuildType - The type of build. Possible values include: 'AutoBuild', 'QuickBuild'
	BuildType BuildType `json:"buildType,omitempty"`
	// CreateTime - The time the build was created.
	CreateTime *date.Time `json:"createTime,omitempty"`
	// StartTime - The time the build started.
	StartTime *date.Time `json:"startTime,omitempty"`
	// FinishTime - The time the build finished.
	FinishTime *date.Time `json:"finishTime,omitempty"`
	// OutputImages - The list of all images that were generated from the build.
	OutputImages *[]ImageDescriptor `json:"outputImages,omitempty"`
	// BuildTask - All the properties of the build task with which the build was started.
	BuildTask *string `json:"buildTask,omitempty"`
	// Trigger - The trigger that caused the build.
	Trigger *string `json:"trigger,omitempty"`
	// IsArchiveEnabled - The value that indicates whether archiving is enabled or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
	// Platform - The platform properties against which the build will happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// ProvisioningState - The provisioning state of a build. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

BuildProperties the properties for a build.

type BuildStatus

type BuildStatus string

BuildStatus enumerates the values for build status.

const (
	// AbandonedAsSystemError ...
	AbandonedAsSystemError BuildStatus = "AbandonedAsSystemError"
	// Canceled ...
	Canceled BuildStatus = "Canceled"
	// Failed ...
	Failed BuildStatus = "Failed"
	// Queued ...
	Queued BuildStatus = "Queued"
	// Running ...
	Running BuildStatus = "Running"
	// Started ...
	Started BuildStatus = "Started"
	// Succeeded ...
	Succeeded BuildStatus = "Succeeded"
	// Timeout ...
	Timeout BuildStatus = "Timeout"
)

func PossibleBuildStatusValues

func PossibleBuildStatusValues() []BuildStatus

PossibleBuildStatusValues returns an array of possible values for the BuildStatus const type.

type BuildStep

type BuildStep struct {
	autorest.Response `json:"-"`
	// BasicBuildStepProperties - The properties of a build step.
	BasicBuildStepProperties `json:"properties,omitempty"`
	// ID - The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource.
	Type *string `json:"type,omitempty"`
}

BuildStep build step resource properties

func (BuildStep) MarshalJSON

func (bs BuildStep) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BuildStep.

func (*BuildStep) UnmarshalJSON

func (bs *BuildStep) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BuildStep struct.

type BuildStepList

type BuildStepList struct {
	autorest.Response `json:"-"`
	// Value - The collection value.
	Value *[]BuildStep `json:"value,omitempty"`
	// NextLink - The URI that can be used to request the next set of paged results.
	NextLink *string `json:"nextLink,omitempty"`
}

BuildStepList the collection of build items.

func (BuildStepList) IsEmpty

func (bsl BuildStepList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BuildStepListIterator

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

BuildStepListIterator provides access to a complete listing of BuildStep values.

func (*BuildStepListIterator) Next

func (iter *BuildStepListIterator) 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.

func (BuildStepListIterator) NotDone

func (iter BuildStepListIterator) NotDone() bool

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

func (BuildStepListIterator) Response

func (iter BuildStepListIterator) Response() BuildStepList

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

func (BuildStepListIterator) Value

func (iter BuildStepListIterator) Value() BuildStep

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type BuildStepListPage

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

BuildStepListPage contains a page of BuildStep values.

func (*BuildStepListPage) Next

func (page *BuildStepListPage) 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.

func (BuildStepListPage) NotDone

func (page BuildStepListPage) NotDone() bool

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

func (BuildStepListPage) Response

func (page BuildStepListPage) Response() BuildStepList

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

func (BuildStepListPage) Values

func (page BuildStepListPage) Values() []BuildStep

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

type BuildStepProperties

type BuildStepProperties struct {
	// ProvisioningState - The provisioning state of the build step. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// Type - Possible values include: 'TypeBuildStepProperties', 'TypeDocker'
	Type Type `json:"type,omitempty"`
}

BuildStepProperties base properties for any build step.

func (BuildStepProperties) AsBasicBuildStepProperties

func (bsp BuildStepProperties) AsBasicBuildStepProperties() (BasicBuildStepProperties, bool)

AsBasicBuildStepProperties is the BasicBuildStepProperties implementation for BuildStepProperties.

func (BuildStepProperties) AsBuildStepProperties

func (bsp BuildStepProperties) AsBuildStepProperties() (*BuildStepProperties, bool)

AsBuildStepProperties is the BasicBuildStepProperties implementation for BuildStepProperties.

func (BuildStepProperties) AsDockerBuildStep

func (bsp BuildStepProperties) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicBuildStepProperties implementation for BuildStepProperties.

func (BuildStepProperties) MarshalJSON

func (bsp BuildStepProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BuildStepProperties.

type BuildStepPropertiesUpdateParameters

type BuildStepPropertiesUpdateParameters struct {
	// Type - Possible values include: 'TypeBasicBuildStepPropertiesUpdateParametersTypeBuildStepPropertiesUpdateParameters', 'TypeBasicBuildStepPropertiesUpdateParametersTypeDocker'
	Type TypeBasicBuildStepPropertiesUpdateParameters `json:"type,omitempty"`
}

BuildStepPropertiesUpdateParameters the properties for updating a build step.

func (BuildStepPropertiesUpdateParameters) AsBasicBuildStepPropertiesUpdateParameters

func (bspup BuildStepPropertiesUpdateParameters) AsBasicBuildStepPropertiesUpdateParameters() (BasicBuildStepPropertiesUpdateParameters, bool)

AsBasicBuildStepPropertiesUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for BuildStepPropertiesUpdateParameters.

func (BuildStepPropertiesUpdateParameters) AsBuildStepPropertiesUpdateParameters

func (bspup BuildStepPropertiesUpdateParameters) AsBuildStepPropertiesUpdateParameters() (*BuildStepPropertiesUpdateParameters, bool)

AsBuildStepPropertiesUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for BuildStepPropertiesUpdateParameters.

func (BuildStepPropertiesUpdateParameters) AsDockerBuildStepUpdateParameters

func (bspup BuildStepPropertiesUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for BuildStepPropertiesUpdateParameters.

func (BuildStepPropertiesUpdateParameters) MarshalJSON

func (bspup BuildStepPropertiesUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BuildStepPropertiesUpdateParameters.

type BuildStepUpdateParameters

type BuildStepUpdateParameters struct {
	// BasicBuildStepPropertiesUpdateParameters - The properties for updating a build step.
	BasicBuildStepPropertiesUpdateParameters `json:"properties,omitempty"`
	// Tags - The ARM resource tags.
	Tags map[string]*string `json:"tags"`
}

BuildStepUpdateParameters the parameters for updating a build step.

func (BuildStepUpdateParameters) MarshalJSON

func (bsup BuildStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BuildStepUpdateParameters.

func (*BuildStepUpdateParameters) UnmarshalJSON

func (bsup *BuildStepUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BuildStepUpdateParameters struct.

type BuildStepsClient

type BuildStepsClient struct {
	BaseClient
}

BuildStepsClient is the client for the BuildSteps methods of the Containerregistry service.

func NewBuildStepsClient

func NewBuildStepsClient(subscriptionID string) BuildStepsClient

NewBuildStepsClient creates an instance of the BuildStepsClient client.

func NewBuildStepsClientWithBaseURI

func NewBuildStepsClientWithBaseURI(baseURI string, subscriptionID string) BuildStepsClient

NewBuildStepsClientWithBaseURI creates an instance of the BuildStepsClient client.

func (BuildStepsClient) Create

func (client BuildStepsClient) Create(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string, buildStepCreateParameters BuildStep) (result BuildStepsCreateFuture, err error)

Create sends the create request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task. stepName is the name of a build step for a container registry build task. buildStepCreateParameters is the parameters for creating a build step.

func (BuildStepsClient) CreatePreparer

func (client BuildStepsClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string, buildStepCreateParameters BuildStep) (*http.Request, error)

CreatePreparer prepares the Create request.

func (BuildStepsClient) CreateResponder

func (client BuildStepsClient) CreateResponder(resp *http.Response) (result BuildStep, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (BuildStepsClient) CreateSender

func (client BuildStepsClient) CreateSender(req *http.Request) (future BuildStepsCreateFuture, err error)

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

func (BuildStepsClient) Delete

func (client BuildStepsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string) (result BuildStepsDeleteFuture, err error)

Delete sends the delete request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task. stepName is the name of a build step for a container registry build task.

func (BuildStepsClient) DeletePreparer

func (client BuildStepsClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (BuildStepsClient) DeleteResponder

func (client BuildStepsClient) 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 (BuildStepsClient) DeleteSender

func (client BuildStepsClient) DeleteSender(req *http.Request) (future BuildStepsDeleteFuture, err error)

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

func (BuildStepsClient) Get

func (client BuildStepsClient) Get(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string) (result BuildStep, err error)

Get sends the get request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task. stepName is the name of a build step for a container registry build task.

func (BuildStepsClient) GetPreparer

func (client BuildStepsClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (BuildStepsClient) GetResponder

func (client BuildStepsClient) GetResponder(resp *http.Response) (result BuildStep, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (BuildStepsClient) GetSender

func (client BuildStepsClient) 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 (BuildStepsClient) List

func (client BuildStepsClient) List(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (result BuildStepListPage, err error)

List sends the list request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task.

func (BuildStepsClient) ListBuildArguments

func (client BuildStepsClient) ListBuildArguments(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string) (result BuildArgumentListPage, err error)

ListBuildArguments sends the list build arguments request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task. stepName is the name of a build step for a container registry build task.

func (BuildStepsClient) ListBuildArgumentsComplete

func (client BuildStepsClient) ListBuildArgumentsComplete(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string) (result BuildArgumentListIterator, err error)

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

func (BuildStepsClient) ListBuildArgumentsPreparer

func (client BuildStepsClient) ListBuildArgumentsPreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string) (*http.Request, error)

ListBuildArgumentsPreparer prepares the ListBuildArguments request.

func (BuildStepsClient) ListBuildArgumentsResponder

func (client BuildStepsClient) ListBuildArgumentsResponder(resp *http.Response) (result BuildArgumentList, err error)

ListBuildArgumentsResponder handles the response to the ListBuildArguments request. The method always closes the http.Response Body.

func (BuildStepsClient) ListBuildArgumentsSender

func (client BuildStepsClient) ListBuildArgumentsSender(req *http.Request) (*http.Response, error)

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

func (BuildStepsClient) ListComplete

func (client BuildStepsClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (result BuildStepListIterator, err error)

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

func (BuildStepsClient) ListPreparer

func (client BuildStepsClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (*http.Request, error)

ListPreparer prepares the List request.

func (BuildStepsClient) ListResponder

func (client BuildStepsClient) ListResponder(resp *http.Response) (result BuildStepList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (BuildStepsClient) ListSender

func (client BuildStepsClient) ListSender(req *http.Request) (*http.Response, error)

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

func (BuildStepsClient) Update

func (client BuildStepsClient) Update(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string, buildStepUpdateParameters BuildStepUpdateParameters) (result BuildStepsUpdateFuture, err error)

Update sends the update request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task. stepName is the name of a build step for a container registry build task. buildStepUpdateParameters is the parameters for updating a build step.

func (BuildStepsClient) UpdatePreparer

func (client BuildStepsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, stepName string, buildStepUpdateParameters BuildStepUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (BuildStepsClient) UpdateResponder

func (client BuildStepsClient) UpdateResponder(resp *http.Response) (result BuildStep, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (BuildStepsClient) UpdateSender

func (client BuildStepsClient) UpdateSender(req *http.Request) (future BuildStepsUpdateFuture, err error)

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

type BuildStepsCreateFuture

type BuildStepsCreateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

BuildStepsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (BuildStepsCreateFuture) Result

func (future BuildStepsCreateFuture) Result(client BuildStepsClient) (bs BuildStep, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BuildStepsDeleteFuture

type BuildStepsDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

BuildStepsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (BuildStepsDeleteFuture) Result

func (future BuildStepsDeleteFuture) Result(client BuildStepsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BuildStepsUpdateFuture

type BuildStepsUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

BuildStepsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (BuildStepsUpdateFuture) Result

func (future BuildStepsUpdateFuture) Result(client BuildStepsClient) (bs BuildStep, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BuildTask

type BuildTask struct {
	autorest.Response `json:"-"`
	// BuildTaskProperties - The properties of a build task.
	*BuildTaskProperties `json:"properties,omitempty"`
	// ID - The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource. This cannot be changed after the resource is created.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

BuildTask the build task that has the resource properties and all build items. The build task will have all information to schedule a build against it.

func (BuildTask) MarshalJSON

func (bt BuildTask) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BuildTask.

func (*BuildTask) UnmarshalJSON

func (bt *BuildTask) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BuildTask struct.

type BuildTaskBuildRequest

type BuildTaskBuildRequest struct {
	// BuildTaskName - The name of build task against which build has to be queued.
	BuildTaskName *string `json:"buildTaskName,omitempty"`
	// Type - Possible values include: 'TypeQueueBuildRequest', 'TypeBuildTask', 'TypeQuickBuild'
	Type TypeBasicQueueBuildRequest `json:"type,omitempty"`
}

BuildTaskBuildRequest the queue build parameters based on a build task.

func (BuildTaskBuildRequest) AsBasicQueueBuildRequest

func (btbr BuildTaskBuildRequest) AsBasicQueueBuildRequest() (BasicQueueBuildRequest, bool)

AsBasicQueueBuildRequest is the BasicQueueBuildRequest implementation for BuildTaskBuildRequest.

func (BuildTaskBuildRequest) AsBuildTaskBuildRequest

func (btbr BuildTaskBuildRequest) AsBuildTaskBuildRequest() (*BuildTaskBuildRequest, bool)

AsBuildTaskBuildRequest is the BasicQueueBuildRequest implementation for BuildTaskBuildRequest.

func (BuildTaskBuildRequest) AsQueueBuildRequest

func (btbr BuildTaskBuildRequest) AsQueueBuildRequest() (*QueueBuildRequest, bool)

AsQueueBuildRequest is the BasicQueueBuildRequest implementation for BuildTaskBuildRequest.

func (BuildTaskBuildRequest) AsQuickBuildRequest

func (btbr BuildTaskBuildRequest) AsQuickBuildRequest() (*QuickBuildRequest, bool)

AsQuickBuildRequest is the BasicQueueBuildRequest implementation for BuildTaskBuildRequest.

func (BuildTaskBuildRequest) MarshalJSON

func (btbr BuildTaskBuildRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BuildTaskBuildRequest.

type BuildTaskFilter

type BuildTaskFilter struct {
	// Alias - The alternative name for build task.
	Alias *string `json:"alias,omitempty"`
}

BuildTaskFilter the filter that can be used for listing build tasks.

type BuildTaskListResult

type BuildTaskListResult struct {
	autorest.Response `json:"-"`
	// Value - The collection value.
	Value *[]BuildTask `json:"value,omitempty"`
	// NextLink - The URI that can be used to request the next set of paged results.
	NextLink *string `json:"nextLink,omitempty"`
}

BuildTaskListResult the collection of build tasks.

func (BuildTaskListResult) IsEmpty

func (btlr BuildTaskListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BuildTaskListResultIterator

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

BuildTaskListResultIterator provides access to a complete listing of BuildTask values.

func (*BuildTaskListResultIterator) Next

func (iter *BuildTaskListResultIterator) 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.

func (BuildTaskListResultIterator) NotDone

func (iter BuildTaskListResultIterator) NotDone() bool

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

func (BuildTaskListResultIterator) Response

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

func (BuildTaskListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type BuildTaskListResultPage

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

BuildTaskListResultPage contains a page of BuildTask values.

func (*BuildTaskListResultPage) Next

func (page *BuildTaskListResultPage) 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.

func (BuildTaskListResultPage) NotDone

func (page BuildTaskListResultPage) NotDone() bool

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

func (BuildTaskListResultPage) Response

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

func (BuildTaskListResultPage) Values

func (page BuildTaskListResultPage) Values() []BuildTask

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

type BuildTaskProperties

type BuildTaskProperties struct {
	// ProvisioningState - The provisioning state of the build task. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationDate - The creation date of build task.
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// Alias - The alternative updatable name for a build task.
	Alias *string `json:"alias,omitempty"`
	// Status - The current status of build task. Possible values include: 'Disabled', 'Enabled'
	Status BuildTaskStatus `json:"status,omitempty"`
	// SourceRepository - The properties that describes the source(code) for the build task.
	SourceRepository *SourceRepositoryProperties `json:"sourceRepository,omitempty"`
	// Platform - The platform properties against which the build has to happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// Timeout - Build timeout in seconds.
	Timeout *int32 `json:"timeout,omitempty"`
}

BuildTaskProperties the properties of a build task.

type BuildTaskPropertiesUpdateParameters

type BuildTaskPropertiesUpdateParameters struct {
	// Alias - The alternative updatable name for a build task.
	Alias *string `json:"alias,omitempty"`
	// Status - The current status of build task. Possible values include: 'Disabled', 'Enabled'
	Status BuildTaskStatus `json:"status,omitempty"`
	// Platform - The platform properties against which the build has to happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// Timeout - Build timeout in seconds.
	Timeout *int32 `json:"timeout,omitempty"`
	// SourceRepository - The properties that describes the source(code) for the build task.
	SourceRepository *SourceRepositoryUpdateParameters `json:"sourceRepository,omitempty"`
}

BuildTaskPropertiesUpdateParameters the properties for updating a build task.

type BuildTaskStatus

type BuildTaskStatus string

BuildTaskStatus enumerates the values for build task status.

const (
	// Disabled ...
	Disabled BuildTaskStatus = "Disabled"
	// Enabled ...
	Enabled BuildTaskStatus = "Enabled"
)

func PossibleBuildTaskStatusValues

func PossibleBuildTaskStatusValues() []BuildTaskStatus

PossibleBuildTaskStatusValues returns an array of possible values for the BuildTaskStatus const type.

type BuildTaskUpdateParameters

type BuildTaskUpdateParameters struct {
	// BuildTaskPropertiesUpdateParameters - The properties for updating a build task.
	*BuildTaskPropertiesUpdateParameters `json:"properties,omitempty"`
	// Tags - The ARM resource tags.
	Tags map[string]*string `json:"tags"`
}

BuildTaskUpdateParameters the parameters for updating a build task.

func (BuildTaskUpdateParameters) MarshalJSON

func (btup BuildTaskUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BuildTaskUpdateParameters.

func (*BuildTaskUpdateParameters) UnmarshalJSON

func (btup *BuildTaskUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BuildTaskUpdateParameters struct.

type BuildTasksClient

type BuildTasksClient struct {
	BaseClient
}

BuildTasksClient is the client for the BuildTasks methods of the Containerregistry service.

func NewBuildTasksClient

func NewBuildTasksClient(subscriptionID string) BuildTasksClient

NewBuildTasksClient creates an instance of the BuildTasksClient client.

func NewBuildTasksClientWithBaseURI

func NewBuildTasksClientWithBaseURI(baseURI string, subscriptionID string) BuildTasksClient

NewBuildTasksClientWithBaseURI creates an instance of the BuildTasksClient client.

func (BuildTasksClient) Create

func (client BuildTasksClient) Create(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, buildTaskCreateParameters BuildTask) (result BuildTasksCreateFuture, err error)

Create sends the create request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task. buildTaskCreateParameters is the parameters for creating a build task.

func (BuildTasksClient) CreatePreparer

func (client BuildTasksClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, buildTaskCreateParameters BuildTask) (*http.Request, error)

CreatePreparer prepares the Create request.

func (BuildTasksClient) CreateResponder

func (client BuildTasksClient) CreateResponder(resp *http.Response) (result BuildTask, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (BuildTasksClient) CreateSender

func (client BuildTasksClient) CreateSender(req *http.Request) (future BuildTasksCreateFuture, err error)

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

func (BuildTasksClient) Delete

func (client BuildTasksClient) Delete(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (result BuildTasksDeleteFuture, err error)

Delete sends the delete request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task.

func (BuildTasksClient) DeletePreparer

func (client BuildTasksClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (BuildTasksClient) DeleteResponder

func (client BuildTasksClient) 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 (BuildTasksClient) DeleteSender

func (client BuildTasksClient) DeleteSender(req *http.Request) (future BuildTasksDeleteFuture, err error)

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

func (BuildTasksClient) Get

func (client BuildTasksClient) Get(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (result BuildTask, err error)

Get sends the get request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task.

func (BuildTasksClient) GetPreparer

func (client BuildTasksClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (BuildTasksClient) GetResponder

func (client BuildTasksClient) GetResponder(resp *http.Response) (result BuildTask, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (BuildTasksClient) GetSender

func (client BuildTasksClient) 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 (BuildTasksClient) List

func (client BuildTasksClient) List(ctx context.Context, resourceGroupName string, registryName string, filter string, skipToken string) (result BuildTaskListResultPage, err error)

List sends the list request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. filter is the build task filter to apply on the operation. skipToken is $skipToken is supported on get list of build tasks, which provides the next page in the list of tasks.

func (BuildTasksClient) ListComplete

func (client BuildTasksClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string, filter string, skipToken string) (result BuildTaskListResultIterator, err error)

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

func (BuildTasksClient) ListPreparer

func (client BuildTasksClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string, filter string, skipToken string) (*http.Request, error)

ListPreparer prepares the List request.

func (BuildTasksClient) ListResponder

func (client BuildTasksClient) ListResponder(resp *http.Response) (result BuildTaskListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (BuildTasksClient) ListSender

func (client BuildTasksClient) ListSender(req *http.Request) (*http.Response, error)

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

func (BuildTasksClient) ListSourceRepositoryProperties

func (client BuildTasksClient) ListSourceRepositoryProperties(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (result SourceRepositoryProperties, err error)

ListSourceRepositoryProperties sends the list source repository properties request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task.

func (BuildTasksClient) ListSourceRepositoryPropertiesPreparer

func (client BuildTasksClient) ListSourceRepositoryPropertiesPreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string) (*http.Request, error)

ListSourceRepositoryPropertiesPreparer prepares the ListSourceRepositoryProperties request.

func (BuildTasksClient) ListSourceRepositoryPropertiesResponder

func (client BuildTasksClient) ListSourceRepositoryPropertiesResponder(resp *http.Response) (result SourceRepositoryProperties, err error)

ListSourceRepositoryPropertiesResponder handles the response to the ListSourceRepositoryProperties request. The method always closes the http.Response Body.

func (BuildTasksClient) ListSourceRepositoryPropertiesSender

func (client BuildTasksClient) ListSourceRepositoryPropertiesSender(req *http.Request) (*http.Response, error)

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

func (BuildTasksClient) Update

func (client BuildTasksClient) Update(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, buildTaskUpdateParameters BuildTaskUpdateParameters) (result BuildTasksUpdateFuture, err error)

Update sends the update request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildTaskName is the name of the container registry build task. buildTaskUpdateParameters is the parameters for updating a build task.

func (BuildTasksClient) UpdatePreparer

func (client BuildTasksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, buildTaskName string, buildTaskUpdateParameters BuildTaskUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (BuildTasksClient) UpdateResponder

func (client BuildTasksClient) UpdateResponder(resp *http.Response) (result BuildTask, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (BuildTasksClient) UpdateSender

func (client BuildTasksClient) UpdateSender(req *http.Request) (future BuildTasksUpdateFuture, err error)

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

type BuildTasksCreateFuture

type BuildTasksCreateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

BuildTasksCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (BuildTasksCreateFuture) Result

func (future BuildTasksCreateFuture) Result(client BuildTasksClient) (bt BuildTask, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BuildTasksDeleteFuture

type BuildTasksDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

BuildTasksDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (BuildTasksDeleteFuture) Result

func (future BuildTasksDeleteFuture) Result(client BuildTasksClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BuildTasksUpdateFuture

type BuildTasksUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

BuildTasksUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (BuildTasksUpdateFuture) Result

func (future BuildTasksUpdateFuture) Result(client BuildTasksClient) (bt BuildTask, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BuildType

type BuildType string

BuildType enumerates the values for build type.

const (
	// AutoBuild ...
	AutoBuild BuildType = "AutoBuild"
	// QuickBuild ...
	QuickBuild BuildType = "QuickBuild"
)

func PossibleBuildTypeValues

func PossibleBuildTypeValues() []BuildType

PossibleBuildTypeValues returns an array of possible values for the BuildType const type.

type BuildUpdateParameters

type BuildUpdateParameters struct {
	// IsArchiveEnabled - The value that indicates whether archiving is enabled or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
}

BuildUpdateParameters the set of build properties that can be updated.

type BuildsCancelFuture

type BuildsCancelFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

BuildsCancelFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (BuildsCancelFuture) Result

func (future BuildsCancelFuture) Result(client BuildsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BuildsClient

type BuildsClient struct {
	BaseClient
}

BuildsClient is the client for the Builds methods of the Containerregistry service.

func NewBuildsClient

func NewBuildsClient(subscriptionID string) BuildsClient

NewBuildsClient creates an instance of the BuildsClient client.

func NewBuildsClientWithBaseURI

func NewBuildsClientWithBaseURI(baseURI string, subscriptionID string) BuildsClient

NewBuildsClientWithBaseURI creates an instance of the BuildsClient client.

func (BuildsClient) Cancel

func (client BuildsClient) Cancel(ctx context.Context, resourceGroupName string, registryName string, buildID string) (result BuildsCancelFuture, err error)

Cancel sends the cancel request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildID is the build ID.

func (BuildsClient) CancelPreparer

func (client BuildsClient) CancelPreparer(ctx context.Context, resourceGroupName string, registryName string, buildID string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (BuildsClient) CancelResponder

func (client BuildsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (BuildsClient) CancelSender

func (client BuildsClient) CancelSender(req *http.Request) (future BuildsCancelFuture, err error)

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

func (BuildsClient) Get

func (client BuildsClient) Get(ctx context.Context, resourceGroupName string, registryName string, buildID string) (result Build, err error)

Get sends the get request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildID is the build ID.

func (client BuildsClient) GetLogLink(ctx context.Context, resourceGroupName string, registryName string, buildID string) (result BuildGetLogResult, err error)

GetLogLink sends the get log link request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildID is the build ID.

func (BuildsClient) GetLogLinkPreparer

func (client BuildsClient) GetLogLinkPreparer(ctx context.Context, resourceGroupName string, registryName string, buildID string) (*http.Request, error)

GetLogLinkPreparer prepares the GetLogLink request.

func (BuildsClient) GetLogLinkResponder

func (client BuildsClient) GetLogLinkResponder(resp *http.Response) (result BuildGetLogResult, err error)

GetLogLinkResponder handles the response to the GetLogLink request. The method always closes the http.Response Body.

func (BuildsClient) GetLogLinkSender

func (client BuildsClient) GetLogLinkSender(req *http.Request) (*http.Response, error)

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

func (BuildsClient) GetPreparer

func (client BuildsClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, buildID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (BuildsClient) GetResponder

func (client BuildsClient) GetResponder(resp *http.Response) (result Build, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (BuildsClient) GetSender

func (client BuildsClient) 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 (BuildsClient) List

func (client BuildsClient) List(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32, skipToken string) (result BuildListResultPage, err error)

List sends the list request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. filter is the builds filter to apply on the operation. top is $top is supported for get list of builds, which limits the maximum number of builds to return. skipToken is $skipToken is supported on get list of builds, which provides the next page in the list of builds.

func (BuildsClient) ListComplete

func (client BuildsClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32, skipToken string) (result BuildListResultIterator, err error)

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

func (BuildsClient) ListPreparer

func (client BuildsClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32, skipToken string) (*http.Request, error)

ListPreparer prepares the List request.

func (BuildsClient) ListResponder

func (client BuildsClient) ListResponder(resp *http.Response) (result BuildListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (BuildsClient) ListSender

func (client BuildsClient) ListSender(req *http.Request) (*http.Response, error)

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

func (BuildsClient) Update

func (client BuildsClient) Update(ctx context.Context, resourceGroupName string, registryName string, buildID string, buildUpdateParameters BuildUpdateParameters) (result BuildsUpdateFuture, err error)

Update sends the update request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildID is the build ID. buildUpdateParameters is the build update properties.

func (BuildsClient) UpdatePreparer

func (client BuildsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, buildID string, buildUpdateParameters BuildUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (BuildsClient) UpdateResponder

func (client BuildsClient) UpdateResponder(resp *http.Response) (result Build, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (BuildsClient) UpdateSender

func (client BuildsClient) UpdateSender(req *http.Request) (future BuildsUpdateFuture, err error)

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

type BuildsUpdateFuture

type BuildsUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

BuildsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (BuildsUpdateFuture) Result

func (future BuildsUpdateFuture) Result(client BuildsClient) (b Build, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DockerBuildStep

type DockerBuildStep struct {
	// Branch - The repository branch name.
	Branch *string `json:"branch,omitempty"`
	// ImageName - The full qualified names of the image including the repository and tag.
	ImageNames *[]string `json:"imageNames,omitempty"`
	// IsPushEnabled - The value of this property indicate whether the image built should be pushed to the registry or not.
	IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
	// DockerFilePath - The Docker file path relative to the source control root.
	DockerFilePath *string `json:"dockerFilePath,omitempty"`
	// ContextPath - The relative context path for a docker build in the source.
	ContextPath *string `json:"contextPath,omitempty"`
	// BuildArguments - The custom arguments for building this build step.
	BuildArguments *[]BuildArgument `json:"buildArguments,omitempty"`
	// BaseImageDependencies - List of base image dependencies for a step.
	BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
	// BaseImageTrigger - The type of the auto trigger for base image dependency updates. Possible values include: 'Runtime', 'None'
	BaseImageTrigger BaseImageTriggerType `json:"baseImageTrigger,omitempty"`
	// ProvisioningState - The provisioning state of the build step. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// Type - Possible values include: 'TypeBuildStepProperties', 'TypeDocker'
	Type Type `json:"type,omitempty"`
}

DockerBuildStep the Docker build step.

func (DockerBuildStep) AsBasicBuildStepProperties

func (dbs DockerBuildStep) AsBasicBuildStepProperties() (BasicBuildStepProperties, bool)

AsBasicBuildStepProperties is the BasicBuildStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsBuildStepProperties

func (dbs DockerBuildStep) AsBuildStepProperties() (*BuildStepProperties, bool)

AsBuildStepProperties is the BasicBuildStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsDockerBuildStep

func (dbs DockerBuildStep) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicBuildStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) MarshalJSON

func (dbs DockerBuildStep) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DockerBuildStep.

type DockerBuildStepUpdateParameters

type DockerBuildStepUpdateParameters struct {
	// Branch - The repository branch name.
	Branch *string `json:"branch,omitempty"`
	// ImageName - The full qualified name of the image including the repository and tag.
	ImageName *string `json:"imageName,omitempty"`
	// IsPushEnabled - The value of this property indicate whether the image built should be pushed to the registry or not.
	IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
	// DockerFilePath - The Docker file path relative to the source control root.
	DockerFilePath *string `json:"dockerFilePath,omitempty"`
	// ContextPath - The relative context path for a docker build in the source.
	ContextPath *string `json:"contextPath,omitempty"`
	// BuildArguments - The custom arguments for building this build step.
	BuildArguments *[]BuildArgument `json:"buildArguments,omitempty"`
	// BaseImageTrigger - The type of the auto trigger for base image dependency updates. Possible values include: 'Runtime', 'None'
	BaseImageTrigger BaseImageTriggerType `json:"baseImageTrigger,omitempty"`
	// Type - Possible values include: 'TypeBasicBuildStepPropertiesUpdateParametersTypeBuildStepPropertiesUpdateParameters', 'TypeBasicBuildStepPropertiesUpdateParametersTypeDocker'
	Type TypeBasicBuildStepPropertiesUpdateParameters `json:"type,omitempty"`
}

DockerBuildStepUpdateParameters the properties for updating a docker build step.

func (DockerBuildStepUpdateParameters) AsBasicBuildStepPropertiesUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsBasicBuildStepPropertiesUpdateParameters() (BasicBuildStepPropertiesUpdateParameters, bool)

AsBasicBuildStepPropertiesUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsBuildStepPropertiesUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsBuildStepPropertiesUpdateParameters() (*BuildStepPropertiesUpdateParameters, bool)

AsBuildStepPropertiesUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsDockerBuildStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) MarshalJSON

func (dbsup DockerBuildStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DockerBuildStepUpdateParameters.

type Error

type Error struct {
	// Properties - Azure container registry build API error body.
	Properties *ErrorBody `json:"properties,omitempty"`
}

Error azure container registry build API error object.

type ErrorBody

type ErrorBody struct {
	// Properties - Azure container registry build API error body.
	Properties *ErrorBodyProperties `json:"properties,omitempty"`
}

ErrorBody azure container registry build API error body.

type ErrorBodyProperties

type ErrorBodyProperties struct {
	// Code - error code.
	Code *string `json:"code,omitempty"`
	// Message - error message.
	Message *string `json:"message,omitempty"`
}

ErrorBodyProperties azure container registry build API error body.

type ImageDescriptor

type ImageDescriptor struct {
	// RepositoryName - Name of the repository.
	RepositoryName *string `json:"repositoryName,omitempty"`
	// Tag - The tag name.
	Tag *string `json:"tag,omitempty"`
	// Digest - The image digest. Example: SHA256 based digest.
	Digest *string `json:"digest,omitempty"`
}

ImageDescriptor properties that describes a Docker image.

type OsType

type OsType string

OsType enumerates the values for os type.

const (
	// Linux ...
	Linux OsType = "Linux"
	// Windows ...
	Windows OsType = "Windows"
)

func PossibleOsTypeValues

func PossibleOsTypeValues() []OsType

PossibleOsTypeValues returns an array of possible values for the OsType const type.

type PlatformProperties

type PlatformProperties struct {
	// OsType - The operating system type required for the build. Possible values include: 'Windows', 'Linux'
	OsType OsType `json:"osType,omitempty"`
	// CPU - The CPU configuration in terms of number of cores required for the build.
	CPU *int32 `json:"cpu,omitempty"`
}

PlatformProperties the platform properties against which the build has to happen.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// ProvisioningStateCanceled ...
	ProvisioningStateCanceled ProvisioningState = "Canceled"
	// ProvisioningStateCreating ...
	ProvisioningStateCreating ProvisioningState = "Creating"
	// ProvisioningStateDeleting ...
	ProvisioningStateDeleting ProvisioningState = "Deleting"
	// ProvisioningStateFailed ...
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStateSucceeded ...
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	// ProvisioningStateUpdating ...
	ProvisioningStateUpdating 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 - The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource.
	Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags.

type QueueBuildRequest

type QueueBuildRequest struct {
	// Type - Possible values include: 'TypeQueueBuildRequest', 'TypeBuildTask', 'TypeQuickBuild'
	Type TypeBasicQueueBuildRequest `json:"type,omitempty"`
}

QueueBuildRequest the queue build request parameters.

func (QueueBuildRequest) AsBasicQueueBuildRequest

func (qbr QueueBuildRequest) AsBasicQueueBuildRequest() (BasicQueueBuildRequest, bool)

AsBasicQueueBuildRequest is the BasicQueueBuildRequest implementation for QueueBuildRequest.

func (QueueBuildRequest) AsBuildTaskBuildRequest

func (qbr QueueBuildRequest) AsBuildTaskBuildRequest() (*BuildTaskBuildRequest, bool)

AsBuildTaskBuildRequest is the BasicQueueBuildRequest implementation for QueueBuildRequest.

func (QueueBuildRequest) AsQueueBuildRequest

func (qbr QueueBuildRequest) AsQueueBuildRequest() (*QueueBuildRequest, bool)

AsQueueBuildRequest is the BasicQueueBuildRequest implementation for QueueBuildRequest.

func (QueueBuildRequest) AsQuickBuildRequest

func (qbr QueueBuildRequest) AsQuickBuildRequest() (*QuickBuildRequest, bool)

AsQuickBuildRequest is the BasicQueueBuildRequest implementation for QueueBuildRequest.

func (QueueBuildRequest) MarshalJSON

func (qbr QueueBuildRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QueueBuildRequest.

type QuickBuildRequest

type QuickBuildRequest struct {
	// ImageName - The fully qualified image names with the tag that the build tags it.
	ImageNames *[]string `json:"imageNames,omitempty"`
	// SourceLocation - The URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repository as supported by Docker.
	// If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API.
	SourceLocation *string `json:"sourceLocation,omitempty"`
	// BuildArguments - The collection of build arguments to be used.
	BuildArguments *[]BuildArgument `json:"buildArguments,omitempty"`
	// IsPushEnabled - The value of this property indicate whether the image built should be pushed to the registry or not.
	IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
	// Timeout - Build timeout in seconds.
	Timeout *int32 `json:"timeout,omitempty"`
	// Platform - The platform properties against which the build will happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// DockerFilePath - The Docker file path relative to the source location.
	DockerFilePath *string `json:"dockerFilePath,omitempty"`
	// Type - Possible values include: 'TypeQueueBuildRequest', 'TypeBuildTask', 'TypeQuickBuild'
	Type TypeBasicQueueBuildRequest `json:"type,omitempty"`
}

QuickBuildRequest the queue build request parameters for a quick build.

func (QuickBuildRequest) AsBasicQueueBuildRequest

func (qbr QuickBuildRequest) AsBasicQueueBuildRequest() (BasicQueueBuildRequest, bool)

AsBasicQueueBuildRequest is the BasicQueueBuildRequest implementation for QuickBuildRequest.

func (QuickBuildRequest) AsBuildTaskBuildRequest

func (qbr QuickBuildRequest) AsBuildTaskBuildRequest() (*BuildTaskBuildRequest, bool)

AsBuildTaskBuildRequest is the BasicQueueBuildRequest implementation for QuickBuildRequest.

func (QuickBuildRequest) AsQueueBuildRequest

func (qbr QuickBuildRequest) AsQueueBuildRequest() (*QueueBuildRequest, bool)

AsQueueBuildRequest is the BasicQueueBuildRequest implementation for QuickBuildRequest.

func (QuickBuildRequest) AsQuickBuildRequest

func (qbr QuickBuildRequest) AsQuickBuildRequest() (*QuickBuildRequest, bool)

AsQuickBuildRequest is the BasicQueueBuildRequest implementation for QuickBuildRequest.

func (QuickBuildRequest) MarshalJSON

func (qbr QuickBuildRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QuickBuildRequest.

type RegistriesClient

type RegistriesClient struct {
	BaseClient
}

RegistriesClient is the client for the Registries methods of the Containerregistry service.

func NewRegistriesClient

func NewRegistriesClient(subscriptionID string) RegistriesClient

NewRegistriesClient creates an instance of the RegistriesClient client.

func NewRegistriesClientWithBaseURI

func NewRegistriesClientWithBaseURI(baseURI string, subscriptionID string) RegistriesClient

NewRegistriesClientWithBaseURI creates an instance of the RegistriesClient client.

func (RegistriesClient) GetBuildSourceUploadURL

func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, resourceGroupName string, registryName string) (result SourceUploadDefinition, err error)

GetBuildSourceUploadURL sends the get build source upload url request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry.

func (RegistriesClient) GetBuildSourceUploadURLPreparer

func (client RegistriesClient) GetBuildSourceUploadURLPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

GetBuildSourceUploadURLPreparer prepares the GetBuildSourceUploadURL request.

func (RegistriesClient) GetBuildSourceUploadURLResponder

func (client RegistriesClient) GetBuildSourceUploadURLResponder(resp *http.Response) (result SourceUploadDefinition, err error)

GetBuildSourceUploadURLResponder handles the response to the GetBuildSourceUploadURL request. The method always closes the http.Response Body.

func (RegistriesClient) GetBuildSourceUploadURLSender

func (client RegistriesClient) GetBuildSourceUploadURLSender(req *http.Request) (*http.Response, error)

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

func (RegistriesClient) QueueBuild

func (client RegistriesClient) QueueBuild(ctx context.Context, resourceGroupName string, registryName string, buildRequest BasicQueueBuildRequest) (result RegistriesQueueBuildFuture, err error)

QueueBuild sends the queue build request.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. buildRequest is the parameters of a build that needs to queued.

func (RegistriesClient) QueueBuildPreparer

func (client RegistriesClient) QueueBuildPreparer(ctx context.Context, resourceGroupName string, registryName string, buildRequest BasicQueueBuildRequest) (*http.Request, error)

QueueBuildPreparer prepares the QueueBuild request.

func (RegistriesClient) QueueBuildResponder

func (client RegistriesClient) QueueBuildResponder(resp *http.Response) (result Build, err error)

QueueBuildResponder handles the response to the QueueBuild request. The method always closes the http.Response Body.

func (RegistriesClient) QueueBuildSender

func (client RegistriesClient) QueueBuildSender(req *http.Request) (future RegistriesQueueBuildFuture, err error)

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

type RegistriesQueueBuildFuture

type RegistriesQueueBuildFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

RegistriesQueueBuildFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (RegistriesQueueBuildFuture) Result

func (future RegistriesQueueBuildFuture) Result(client RegistriesClient) (b Build, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Resource

type Resource struct {
	// ID - The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource. This cannot be changed after the resource is created.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

Resource an Azure resource.

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type SourceControlAuthInfo

type SourceControlAuthInfo struct {
	// TokenType - The type of Auth token. Possible values include: 'PAT', 'OAuth'
	TokenType TokenType `json:"tokenType,omitempty"`
	// Token - The access token used to access the source control provider.
	Token *string `json:"token,omitempty"`
	// RefreshToken - The refresh token used to refresh the access token.
	RefreshToken *string `json:"refreshToken,omitempty"`
	// Scope - The scope of the access token.
	Scope *string `json:"scope,omitempty"`
	// ExpiresIn - Time in seconds that the token remains valid
	ExpiresIn *int32 `json:"expiresIn,omitempty"`
}

SourceControlAuthInfo the authorization properties for accessing the source code repository.

type SourceControlType

type SourceControlType string

SourceControlType enumerates the values for source control type.

const (
	// Github ...
	Github SourceControlType = "Github"
	// VisualStudioTeamService ...
	VisualStudioTeamService SourceControlType = "VisualStudioTeamService"
)

func PossibleSourceControlTypeValues

func PossibleSourceControlTypeValues() []SourceControlType

PossibleSourceControlTypeValues returns an array of possible values for the SourceControlType const type.

type SourceRepositoryProperties

type SourceRepositoryProperties struct {
	autorest.Response `json:"-"`
	// SourceControlType - The type of source control service. Possible values include: 'Github', 'VisualStudioTeamService'
	SourceControlType SourceControlType `json:"sourceControlType,omitempty"`
	// RepositoryURL - The full URL to the source code repository
	RepositoryURL *string `json:"repositoryUrl,omitempty"`
	// IsCommitTriggerEnabled - The value of this property indicates whether the source control commit trigger is enabled or not.
	IsCommitTriggerEnabled *bool `json:"isCommitTriggerEnabled,omitempty"`
	// SourceControlAuthProperties - The authorization properties for accessing the source code repository.
	SourceControlAuthProperties *SourceControlAuthInfo `json:"sourceControlAuthProperties,omitempty"`
}

SourceRepositoryProperties the properties of the source code repository.

type SourceRepositoryUpdateParameters

type SourceRepositoryUpdateParameters struct {
	// SourceControlAuthProperties - The authorization properties for accessing the source code repository.
	SourceControlAuthProperties *SourceControlAuthInfo `json:"sourceControlAuthProperties,omitempty"`
	// IsCommitTriggerEnabled - The value of this property indicates whether the source control commit trigger is enabled or not.
	IsCommitTriggerEnabled *bool `json:"isCommitTriggerEnabled,omitempty"`
}

SourceRepositoryUpdateParameters the properties for updating the source code repository configuration.

type SourceUploadDefinition

type SourceUploadDefinition struct {
	autorest.Response `json:"-"`
	// UploadURL - The URL where the client can upload the source.
	UploadURL *string `json:"uploadUrl,omitempty"`
	// RelativePath - The relative path to the source. This is used to submit the subsequent queue build request.
	RelativePath *string `json:"relativePath,omitempty"`
}

SourceUploadDefinition the properties of a response to source upload request.

type TokenType

type TokenType string

TokenType enumerates the values for token type.

const (
	// OAuth ...
	OAuth TokenType = "OAuth"
	// PAT ...
	PAT TokenType = "PAT"
)

func PossibleTokenTypeValues

func PossibleTokenTypeValues() []TokenType

PossibleTokenTypeValues returns an array of possible values for the TokenType const type.

type Type

type Type string

Type enumerates the values for type.

const (
	// TypeBuildStepProperties ...
	TypeBuildStepProperties Type = "BuildStepProperties"
	// TypeDocker ...
	TypeDocker Type = "Docker"
)

func PossibleTypeValues

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type TypeBasicBuildStepPropertiesUpdateParameters

type TypeBasicBuildStepPropertiesUpdateParameters string

TypeBasicBuildStepPropertiesUpdateParameters enumerates the values for type basic build step properties update parameters.

const (
	// TypeBasicBuildStepPropertiesUpdateParametersTypeBuildStepPropertiesUpdateParameters ...
	TypeBasicBuildStepPropertiesUpdateParametersTypeBuildStepPropertiesUpdateParameters TypeBasicBuildStepPropertiesUpdateParameters = "BuildStepPropertiesUpdateParameters"
	// TypeBasicBuildStepPropertiesUpdateParametersTypeDocker ...
	TypeBasicBuildStepPropertiesUpdateParametersTypeDocker TypeBasicBuildStepPropertiesUpdateParameters = "Docker"
)

func PossibleTypeBasicBuildStepPropertiesUpdateParametersValues

func PossibleTypeBasicBuildStepPropertiesUpdateParametersValues() []TypeBasicBuildStepPropertiesUpdateParameters

PossibleTypeBasicBuildStepPropertiesUpdateParametersValues returns an array of possible values for the TypeBasicBuildStepPropertiesUpdateParameters const type.

type TypeBasicQueueBuildRequest

type TypeBasicQueueBuildRequest string

TypeBasicQueueBuildRequest enumerates the values for type basic queue build request.

const (
	// TypeBuildTask ...
	TypeBuildTask TypeBasicQueueBuildRequest = "BuildTask"
	// TypeQueueBuildRequest ...
	TypeQueueBuildRequest TypeBasicQueueBuildRequest = "QueueBuildRequest"
	// TypeQuickBuild ...
	TypeQuickBuild TypeBasicQueueBuildRequest = "QuickBuild"
)

func PossibleTypeBasicQueueBuildRequestValues

func PossibleTypeBasicQueueBuildRequestValues() []TypeBasicQueueBuildRequest

PossibleTypeBasicQueueBuildRequestValues returns an array of possible values for the TypeBasicQueueBuildRequest const type.

Jump to

Keyboard shortcuts

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