azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2018-02-01/containerregistry Index | Files | Directories

package containerregistry

import "github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2018-02-01/containerregistry"

Package containerregistry implements the Azure ARM Containerregistry service API version .

Index

Package Files

builds.go buildsteps.go buildtasks.go client.go models.go operations.go registries.go replications.go version.go webhooks.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type Action Uses

type Action string

Action enumerates the values for action.

const (
    // Allow ...
    Allow Action = "Allow"
)

func PossibleActionValues Uses

func PossibleActionValues() []Action

PossibleActionValues returns an array of possible values for the Action const type.

type Actor Uses

type Actor struct {
    // Name - The subject or username associated with the request context that generated the event.
    Name *string `json:"name,omitempty"`
}

Actor the agent that initiated the event. For most situations, this could be from the authorization context of the request.

type BaseClient Uses

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

BaseClient is the base client for Containerregistry.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BaseImageDependency Uses

type BaseImageDependency struct {
    // Type - The type of the base image dependency. Possible values include: 'BuildTime', 'RunTime'
    Type BaseImageDependencyType `json:"type,omitempty"`
    // Registry - The registry login server.
    Registry *string `json:"registry,omitempty"`
    // Repository - The repository name.
    Repository *string `json:"repository,omitempty"`
    // Tag - The tag name.
    Tag *string `json:"tag,omitempty"`
    // Digest - The sha256-based digest of the image manifest.
    Digest *string `json:"digest,omitempty"`
}

BaseImageDependency properties that describe a base image dependency.

type BaseImageDependencyType Uses

type BaseImageDependencyType string

BaseImageDependencyType enumerates the values for base image dependency type.

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

func PossibleBaseImageDependencyTypeValues Uses

func PossibleBaseImageDependencyTypeValues() []BaseImageDependencyType

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

type BaseImageTriggerType Uses

type BaseImageTriggerType string

BaseImageTriggerType enumerates the values for base image trigger type.

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

func PossibleBaseImageTriggerTypeValues Uses

func PossibleBaseImageTriggerTypeValues() []BaseImageTriggerType

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

type BasicBuildStepProperties Uses

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

BasicBuildStepProperties base properties for any build step.

type BasicBuildStepPropertiesUpdateParameters Uses

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

BasicBuildStepPropertiesUpdateParameters the properties for updating a build step.

type BasicQueueBuildRequest Uses

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

BasicQueueBuildRequest the queue build request parameters.

type Build Uses

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

Build build resource properties

func (Build) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Build.

func (*Build) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Build struct.

type BuildArgument Uses

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 Uses

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 the list of build arguments for a build step.

func (BuildArgumentList) IsEmpty Uses

func (bal BuildArgumentList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BuildArgumentListIterator Uses

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

BuildArgumentListIterator provides access to a complete listing of BuildArgument values.

func NewBuildArgumentListIterator Uses

func NewBuildArgumentListIterator(page BuildArgumentListPage) BuildArgumentListIterator

Creates a new instance of the BuildArgumentListIterator type.

func (*BuildArgumentListIterator) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*BuildArgumentListIterator) NextWithContext Uses

func (iter *BuildArgumentListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (BuildArgumentListIterator) NotDone Uses

func (iter BuildArgumentListIterator) NotDone() bool

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

func (BuildArgumentListIterator) Response Uses

func (iter BuildArgumentListIterator) Response() BuildArgumentList

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

func (BuildArgumentListIterator) Value Uses

func (iter BuildArgumentListIterator) Value() BuildArgument

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

type BuildArgumentListPage Uses

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

BuildArgumentListPage contains a page of BuildArgument values.

func NewBuildArgumentListPage Uses

func NewBuildArgumentListPage(getNextPage func(context.Context, BuildArgumentList) (BuildArgumentList, error)) BuildArgumentListPage

Creates a new instance of the BuildArgumentListPage type.

func (*BuildArgumentListPage) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*BuildArgumentListPage) NextWithContext Uses

func (page *BuildArgumentListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (BuildArgumentListPage) NotDone Uses

func (page BuildArgumentListPage) NotDone() bool

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

func (BuildArgumentListPage) Response Uses

func (page BuildArgumentListPage) Response() BuildArgumentList

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

func (BuildArgumentListPage) Values Uses

func (page BuildArgumentListPage) Values() []BuildArgument

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

type BuildFilter Uses

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', 'Error', '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"`
    // OutputImageManifests - The list of comma-separated image manifests that were generated from the build.
    OutputImageManifests *string `json:"outputImageManifests,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 Uses

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 Uses

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 Uses

func (blr BuildListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BuildListResultIterator Uses

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

BuildListResultIterator provides access to a complete listing of Build values.

func NewBuildListResultIterator Uses

func NewBuildListResultIterator(page BuildListResultPage) BuildListResultIterator

Creates a new instance of the BuildListResultIterator type.

func (*BuildListResultIterator) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*BuildListResultIterator) NextWithContext Uses

func (iter *BuildListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (BuildListResultIterator) NotDone Uses

func (iter BuildListResultIterator) NotDone() bool

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

func (BuildListResultIterator) Response Uses

func (iter BuildListResultIterator) Response() BuildListResult

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

func (BuildListResultIterator) Value Uses

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 Uses

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

BuildListResultPage contains a page of Build values.

func NewBuildListResultPage Uses

func NewBuildListResultPage(getNextPage func(context.Context, BuildListResult) (BuildListResult, error)) BuildListResultPage

Creates a new instance of the BuildListResultPage type.

func (*BuildListResultPage) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*BuildListResultPage) NextWithContext Uses

func (page *BuildListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (BuildListResultPage) NotDone Uses

func (page BuildListResultPage) NotDone() bool

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

func (BuildListResultPage) Response Uses

func (page BuildListResultPage) Response() BuildListResult

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

func (BuildListResultPage) Values Uses

func (page BuildListResultPage) Values() []Build

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

type BuildProperties Uses

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', 'Error', '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 - The build task with which the build was started.
    BuildTask *string `json:"buildTask,omitempty"`
    // ImageUpdateTrigger - The image update trigger that caused the build.
    ImageUpdateTrigger *ImageUpdateTrigger `json:"imageUpdateTrigger,omitempty"`
    // GitCommitTrigger - The git commit trigger that caused the build.
    GitCommitTrigger *GitCommitTrigger `json:"gitCommitTrigger,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 Uses

type BuildStatus string

BuildStatus enumerates the values for build status.

const (
    // Canceled ...
    Canceled BuildStatus = "Canceled"
    // Error ...
    Error BuildStatus = "Error"
    // 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 Uses

func PossibleBuildStatusValues() []BuildStatus

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

type BuildStep Uses

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

BuildStep build step resource properties

func (*BuildStep) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for BuildStep struct.

type BuildStepList Uses

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 Uses

func (bsl BuildStepList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BuildStepListIterator Uses

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

BuildStepListIterator provides access to a complete listing of BuildStep values.

func NewBuildStepListIterator Uses

func NewBuildStepListIterator(page BuildStepListPage) BuildStepListIterator

Creates a new instance of the BuildStepListIterator type.

func (*BuildStepListIterator) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*BuildStepListIterator) NextWithContext Uses

func (iter *BuildStepListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (BuildStepListIterator) NotDone Uses

func (iter BuildStepListIterator) NotDone() bool

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

func (BuildStepListIterator) Response Uses

func (iter BuildStepListIterator) Response() BuildStepList

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

func (BuildStepListIterator) Value Uses

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 Uses

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

BuildStepListPage contains a page of BuildStep values.

func NewBuildStepListPage Uses

func NewBuildStepListPage(getNextPage func(context.Context, BuildStepList) (BuildStepList, error)) BuildStepListPage

Creates a new instance of the BuildStepListPage type.

func (*BuildStepListPage) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*BuildStepListPage) NextWithContext Uses

func (page *BuildStepListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (BuildStepListPage) NotDone Uses

func (page BuildStepListPage) NotDone() bool

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

func (BuildStepListPage) Response Uses

func (page BuildStepListPage) Response() BuildStepList

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

func (BuildStepListPage) Values Uses

func (page BuildStepListPage) Values() []BuildStep

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

type BuildStepProperties Uses

type BuildStepProperties struct {
    // ProvisioningState - READ-ONLY; 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 Uses

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

AsBasicBuildStepProperties is the BasicBuildStepProperties implementation for BuildStepProperties.

func (BuildStepProperties) AsBuildStepProperties Uses

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

AsBuildStepProperties is the BasicBuildStepProperties implementation for BuildStepProperties.

func (BuildStepProperties) AsDockerBuildStep Uses

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

AsDockerBuildStep is the BasicBuildStepProperties implementation for BuildStepProperties.

func (BuildStepProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for BuildStepProperties.

type BuildStepPropertiesUpdateParameters Uses

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 Uses

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

AsBasicBuildStepPropertiesUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for BuildStepPropertiesUpdateParameters.

func (BuildStepPropertiesUpdateParameters) AsBuildStepPropertiesUpdateParameters Uses

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

AsBuildStepPropertiesUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for BuildStepPropertiesUpdateParameters.

func (BuildStepPropertiesUpdateParameters) AsDockerBuildStepUpdateParameters Uses

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

AsDockerBuildStepUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for BuildStepPropertiesUpdateParameters.

func (BuildStepPropertiesUpdateParameters) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for BuildStepPropertiesUpdateParameters.

type BuildStepUpdateParameters Uses

type BuildStepUpdateParameters struct {
    // Properties - The properties for updating a build step.
    Properties 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 Uses

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

MarshalJSON is the custom marshaler for BuildStepUpdateParameters.

func (*BuildStepUpdateParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for BuildStepUpdateParameters struct.

type BuildStepsClient Uses

type BuildStepsClient struct {
    BaseClient
}

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

func NewBuildStepsClient Uses

func NewBuildStepsClient(subscriptionID string) BuildStepsClient

NewBuildStepsClient creates an instance of the BuildStepsClient client.

func NewBuildStepsClientWithBaseURI Uses

func NewBuildStepsClientWithBaseURI(baseURI string, subscriptionID string) BuildStepsClient

NewBuildStepsClientWithBaseURI creates an instance of the BuildStepsClient client.

func (BuildStepsClient) Create Uses

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

Create creates a build step for a build task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task. stepName - the name of a build step for a container registry build task. buildStepCreateParameters - the parameters for creating a build step.

func (BuildStepsClient) CreatePreparer Uses

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 Uses

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 Uses

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 Uses

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

Delete deletes a build step from the build task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task. stepName - the name of a build step for a container registry build task.

func (BuildStepsClient) DeletePreparer Uses

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 Uses

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 Uses

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 Uses

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

Get gets the build step for a build task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task. stepName - the name of a build step for a container registry build task.

func (BuildStepsClient) GetPreparer Uses

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 Uses

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 Uses

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 Uses

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

List list all the build steps for a given build task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task.

func (BuildStepsClient) ListBuildArguments Uses

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

ListBuildArguments list the build arguments for a step including the secret arguments. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task. stepName - the name of a build step for a container registry build task.

func (BuildStepsClient) ListBuildArgumentsComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (BuildStepsClient) ListResponder Uses

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 Uses

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 Uses

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

Update updates a build step in a build task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task. stepName - the name of a build step for a container registry build task. buildStepUpdateParameters - the parameters for updating a build step.

func (BuildStepsClient) UpdatePreparer Uses

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 Uses

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 Uses

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 Uses

type BuildStepsCreateFuture struct {
    azure.Future
}

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

func (*BuildStepsCreateFuture) Result Uses

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 Uses

type BuildStepsDeleteFuture struct {
    azure.Future
}

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

func (*BuildStepsDeleteFuture) Result Uses

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 Uses

type BuildStepsUpdateFuture struct {
    azure.Future
}

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

func (*BuildStepsUpdateFuture) Result Uses

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 Uses

type BuildTask struct {
    autorest.Response `json:"-"`
    // BuildTaskProperties - The properties of a build task.
    *BuildTaskProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    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 Uses

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

MarshalJSON is the custom marshaler for BuildTask.

func (*BuildTask) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for BuildTask struct.

type BuildTaskBuildRequest Uses

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 Uses

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

AsBasicQueueBuildRequest is the BasicQueueBuildRequest implementation for BuildTaskBuildRequest.

func (BuildTaskBuildRequest) AsBuildTaskBuildRequest Uses

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

AsBuildTaskBuildRequest is the BasicQueueBuildRequest implementation for BuildTaskBuildRequest.

func (BuildTaskBuildRequest) AsQueueBuildRequest Uses

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

AsQueueBuildRequest is the BasicQueueBuildRequest implementation for BuildTaskBuildRequest.

func (BuildTaskBuildRequest) AsQuickBuildRequest Uses

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

AsQuickBuildRequest is the BasicQueueBuildRequest implementation for BuildTaskBuildRequest.

func (BuildTaskBuildRequest) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for BuildTaskBuildRequest.

type BuildTaskFilter Uses

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 Uses

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 Uses

func (btlr BuildTaskListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BuildTaskListResultIterator Uses

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

BuildTaskListResultIterator provides access to a complete listing of BuildTask values.

func NewBuildTaskListResultIterator Uses

func NewBuildTaskListResultIterator(page BuildTaskListResultPage) BuildTaskListResultIterator

Creates a new instance of the BuildTaskListResultIterator type.

func (*BuildTaskListResultIterator) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*BuildTaskListResultIterator) NextWithContext Uses

func (iter *BuildTaskListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (BuildTaskListResultIterator) NotDone Uses

func (iter BuildTaskListResultIterator) NotDone() bool

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

func (BuildTaskListResultIterator) Response Uses

func (iter BuildTaskListResultIterator) Response() BuildTaskListResult

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

func (BuildTaskListResultIterator) Value Uses

func (iter BuildTaskListResultIterator) Value() BuildTask

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

type BuildTaskListResultPage Uses

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

BuildTaskListResultPage contains a page of BuildTask values.

func NewBuildTaskListResultPage Uses

func NewBuildTaskListResultPage(getNextPage func(context.Context, BuildTaskListResult) (BuildTaskListResult, error)) BuildTaskListResultPage

Creates a new instance of the BuildTaskListResultPage type.

func (*BuildTaskListResultPage) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*BuildTaskListResultPage) NextWithContext Uses

func (page *BuildTaskListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (BuildTaskListResultPage) NotDone Uses

func (page BuildTaskListResultPage) NotDone() bool

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

func (BuildTaskListResultPage) Response Uses

func (page BuildTaskListResultPage) Response() BuildTaskListResult

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

func (BuildTaskListResultPage) Values Uses

func (page BuildTaskListResultPage) Values() []BuildTask

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

type BuildTaskProperties Uses

type BuildTaskProperties struct {
    // ProvisioningState - READ-ONLY; The provisioning state of the build task. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // CreationDate - READ-ONLY; 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 Uses

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 Uses

type BuildTaskStatus string

BuildTaskStatus enumerates the values for build task status.

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

func PossibleBuildTaskStatusValues Uses

func PossibleBuildTaskStatusValues() []BuildTaskStatus

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

type BuildTaskUpdateParameters Uses

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 Uses

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

MarshalJSON is the custom marshaler for BuildTaskUpdateParameters.

func (*BuildTaskUpdateParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for BuildTaskUpdateParameters struct.

type BuildTasksClient Uses

type BuildTasksClient struct {
    BaseClient
}

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

func NewBuildTasksClient Uses

func NewBuildTasksClient(subscriptionID string) BuildTasksClient

NewBuildTasksClient creates an instance of the BuildTasksClient client.

func NewBuildTasksClientWithBaseURI Uses

func NewBuildTasksClientWithBaseURI(baseURI string, subscriptionID string) BuildTasksClient

NewBuildTasksClientWithBaseURI creates an instance of the BuildTasksClient client.

func (BuildTasksClient) Create Uses

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

Create creates a build task for a container registry with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task. buildTaskCreateParameters - the parameters for creating a build task.

func (BuildTasksClient) CreatePreparer Uses

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 Uses

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 Uses

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 Uses

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

Delete deletes a specified build task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task.

func (BuildTasksClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (BuildTasksClient) DeleteResponder Uses

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 Uses

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 Uses

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

Get get the properties of a specified build task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task.

func (BuildTasksClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (BuildTasksClient) GetResponder Uses

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 Uses

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 Uses

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

List lists all the build tasks for a specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. filter - the build task filter to apply on the operation. skipToken - $skipToken is supported on get list of build tasks, which provides the next page in the list of tasks.

func (BuildTasksClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListSourceRepositoryProperties get the source control properties for a build task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task.

func (BuildTasksClient) ListSourceRepositoryPropertiesPreparer Uses

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

ListSourceRepositoryPropertiesPreparer prepares the ListSourceRepositoryProperties request.

func (BuildTasksClient) ListSourceRepositoryPropertiesResponder Uses

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 Uses

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 Uses

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

Update updates a build task with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildTaskName - the name of the container registry build task. buildTaskUpdateParameters - the parameters for updating a build task.

func (BuildTasksClient) UpdatePreparer Uses

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 Uses

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 Uses

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 Uses

type BuildTasksCreateFuture struct {
    azure.Future
}

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

func (*BuildTasksCreateFuture) Result Uses

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 Uses

type BuildTasksDeleteFuture struct {
    azure.Future
}

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

func (*BuildTasksDeleteFuture) Result Uses

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 Uses

type BuildTasksUpdateFuture struct {
    azure.Future
}

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

func (*BuildTasksUpdateFuture) Result Uses

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 Uses

type BuildType string

BuildType enumerates the values for build type.

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

func PossibleBuildTypeValues Uses

func PossibleBuildTypeValues() []BuildType

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

type BuildUpdateParameters Uses

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 Uses

type BuildsCancelFuture struct {
    azure.Future
}

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

func (*BuildsCancelFuture) Result Uses

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 Uses

type BuildsClient struct {
    BaseClient
}

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

func NewBuildsClient Uses

func NewBuildsClient(subscriptionID string) BuildsClient

NewBuildsClient creates an instance of the BuildsClient client.

func NewBuildsClientWithBaseURI Uses

func NewBuildsClientWithBaseURI(baseURI string, subscriptionID string) BuildsClient

NewBuildsClientWithBaseURI creates an instance of the BuildsClient client.

func (BuildsClient) Cancel Uses

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

Cancel cancel an existing build. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildID - the build ID.

func (BuildsClient) CancelPreparer Uses

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

CancelPreparer prepares the Cancel request.

func (BuildsClient) CancelResponder Uses

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 Uses

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 Uses

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

Get gets the detailed information for a given build. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildID - the build ID.

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

GetLogLink gets a link to download the build logs. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildID - the build ID.

func (BuildsClient) GetLogLinkPreparer Uses

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

GetLogLinkPreparer prepares the GetLogLink request.

func (BuildsClient) GetLogLinkResponder Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (BuildsClient) GetResponder Uses

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 Uses

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 Uses

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

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

func (BuildsClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

Update patch the build properties. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildID - the build ID. buildUpdateParameters - the build update properties.

func (BuildsClient) UpdatePreparer Uses

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 Uses

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 Uses

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 Uses

type BuildsUpdateFuture struct {
    azure.Future
}

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

func (*BuildsUpdateFuture) Result Uses

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 CallbackConfig Uses

type CallbackConfig struct {
    autorest.Response `json:"-"`
    // ServiceURI - The service URI for the webhook to post notifications.
    ServiceURI *string `json:"serviceUri,omitempty"`
    // CustomHeaders - Custom headers that will be added to the webhook notifications.
    CustomHeaders map[string]*string `json:"customHeaders"`
}

CallbackConfig the configuration of service URI and custom headers for the webhook.

func (CallbackConfig) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CallbackConfig.

type DefaultAction Uses

type DefaultAction string

DefaultAction enumerates the values for default action.

const (
    // DefaultActionAllow ...
    DefaultActionAllow DefaultAction = "Allow"
    // DefaultActionDeny ...
    DefaultActionDeny DefaultAction = "Deny"
)

func PossibleDefaultActionValues Uses

func PossibleDefaultActionValues() []DefaultAction

PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type.

type DockerBuildStep Uses

type DockerBuildStep struct {
    // Branch - The repository branch name.
    Branch *string `json:"branch,omitempty"`
    // ImageNames - The fully qualified image names including the repository and tag.
    ImageNames *[]string `json:"imageNames,omitempty"`
    // IsPushEnabled - The value of this property indicates whether the image built should be pushed to the registry or not.
    IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
    // NoCache - The value of this property indicates whether the image cache is enabled or not.
    NoCache *bool `json:"noCache,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 - READ-ONLY; 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: 'All', 'Runtime', 'None'
    BaseImageTrigger BaseImageTriggerType `json:"baseImageTrigger,omitempty"`
    // ProvisioningState - READ-ONLY; 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 Uses

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

AsBasicBuildStepProperties is the BasicBuildStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsBuildStepProperties Uses

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

AsBuildStepProperties is the BasicBuildStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsDockerBuildStep Uses

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

AsDockerBuildStep is the BasicBuildStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for DockerBuildStep.

type DockerBuildStepUpdateParameters Uses

type DockerBuildStepUpdateParameters struct {
    // Branch - The repository branch name.
    Branch *string `json:"branch,omitempty"`
    // ImageNames - The fully qualified image names including the repository and tag.
    ImageNames *[]string `json:"imageNames,omitempty"`
    // IsPushEnabled - The value of this property indicates whether the image built should be pushed to the registry or not.
    IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
    // NoCache - The value of this property indicates whether the image cache is enabled or not.
    NoCache *bool `json:"noCache,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: 'All', '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 Uses

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

AsBasicBuildStepPropertiesUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsBuildStepPropertiesUpdateParameters Uses

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

AsBuildStepPropertiesUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsDockerBuildStepUpdateParameters Uses

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

AsDockerBuildStepUpdateParameters is the BasicBuildStepPropertiesUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for DockerBuildStepUpdateParameters.

type Event Uses

type Event struct {
    // EventRequestMessage - The event request message sent to the service URI.
    EventRequestMessage *EventRequestMessage `json:"eventRequestMessage,omitempty"`
    // EventResponseMessage - The event response message received from the service URI.
    EventResponseMessage *EventResponseMessage `json:"eventResponseMessage,omitempty"`
    // ID - The event ID.
    ID  *string `json:"id,omitempty"`
}

Event the event for a webhook.

type EventContent Uses

type EventContent struct {
    // ID - The event ID.
    ID  *string `json:"id,omitempty"`
    // Timestamp - The time at which the event occurred.
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // Action - The action that encompasses the provided event.
    Action *string `json:"action,omitempty"`
    // Target - The target of the event.
    Target *Target `json:"target,omitempty"`
    // Request - The request that generated the event.
    Request *Request `json:"request,omitempty"`
    // Actor - The agent that initiated the event. For most situations, this could be from the authorization context of the request.
    Actor *Actor `json:"actor,omitempty"`
    // Source - The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
    Source *Source `json:"source,omitempty"`
}

EventContent the content of the event request message.

type EventInfo Uses

type EventInfo struct {
    autorest.Response `json:"-"`
    // ID - The event ID.
    ID  *string `json:"id,omitempty"`
}

EventInfo the basic information of an event.

type EventListResult Uses

type EventListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of events. Since this list may be incomplete, the nextLink field should be used to request the next list of events.
    Value *[]Event `json:"value,omitempty"`
    // NextLink - The URI that can be used to request the next list of events.
    NextLink *string `json:"nextLink,omitempty"`
}

EventListResult the result of a request to list events for a webhook.

func (EventListResult) IsEmpty Uses

func (elr EventListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EventListResultIterator Uses

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

EventListResultIterator provides access to a complete listing of Event values.

func NewEventListResultIterator Uses

func NewEventListResultIterator(page EventListResultPage) EventListResultIterator

Creates a new instance of the EventListResultIterator type.

func (*EventListResultIterator) Next Uses

func (iter *EventListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*EventListResultIterator) NextWithContext Uses

func (iter *EventListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (EventListResultIterator) NotDone Uses

func (iter EventListResultIterator) NotDone() bool

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

func (EventListResultIterator) Response Uses

func (iter EventListResultIterator) Response() EventListResult

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

func (EventListResultIterator) Value Uses

func (iter EventListResultIterator) Value() Event

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

type EventListResultPage Uses

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

EventListResultPage contains a page of Event values.

func NewEventListResultPage Uses

func NewEventListResultPage(getNextPage func(context.Context, EventListResult) (EventListResult, error)) EventListResultPage

Creates a new instance of the EventListResultPage type.

func (*EventListResultPage) Next Uses

func (page *EventListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*EventListResultPage) NextWithContext Uses

func (page *EventListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (EventListResultPage) NotDone Uses

func (page EventListResultPage) NotDone() bool

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

func (EventListResultPage) Response Uses

func (page EventListResultPage) Response() EventListResult

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

func (EventListResultPage) Values Uses

func (page EventListResultPage) Values() []Event

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

type EventRequestMessage Uses

type EventRequestMessage struct {
    // Content - The content of the event request message.
    Content *EventContent `json:"content,omitempty"`
    // Headers - The headers of the event request message.
    Headers map[string]*string `json:"headers"`
    // Method - The HTTP method used to send the event request message.
    Method *string `json:"method,omitempty"`
    // RequestURI - The URI used to send the event request message.
    RequestURI *string `json:"requestUri,omitempty"`
    // Version - The HTTP message version.
    Version *string `json:"version,omitempty"`
}

EventRequestMessage the event request message sent to the service URI.

func (EventRequestMessage) MarshalJSON Uses

func (erm EventRequestMessage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventRequestMessage.

type EventResponseMessage Uses

type EventResponseMessage struct {
    // Content - The content of the event response message.
    Content *string `json:"content,omitempty"`
    // Headers - The headers of the event response message.
    Headers map[string]*string `json:"headers"`
    // ReasonPhrase - The reason phrase of the event response message.
    ReasonPhrase *string `json:"reasonPhrase,omitempty"`
    // StatusCode - The status code of the event response message.
    StatusCode *string `json:"statusCode,omitempty"`
    // Version - The HTTP message version.
    Version *string `json:"version,omitempty"`
}

EventResponseMessage the event response message received from the service URI.

func (EventResponseMessage) MarshalJSON Uses

func (erm EventResponseMessage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventResponseMessage.

type GitCommitTrigger Uses

type GitCommitTrigger struct {
    // ID - The unique ID of the trigger.
    ID  *string `json:"id,omitempty"`
    // CommitID - The unique ID that identifies a commit.
    CommitID *string `json:"commitId,omitempty"`
    // RepositoryURL - The repository URL.
    RepositoryURL *string `json:"repositoryUrl,omitempty"`
    // BranchName - The branch name in the repository.
    BranchName *string `json:"branchName,omitempty"`
    // ProviderType - The source control provider type.
    ProviderType *string `json:"providerType,omitempty"`
}

GitCommitTrigger the git commit trigger that caused a build.

type IPRule Uses

type IPRule struct {
    // Action - The action of IP ACL rule. Possible values include: 'Allow'
    Action Action `json:"action,omitempty"`
    // IPAddressOrRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    IPAddressOrRange *string `json:"value,omitempty"`
}

IPRule IP rule with specific IP or IP range in CIDR format.

type ImageDescriptor Uses

type ImageDescriptor struct {
    // Registry - The registry login server.
    Registry *string `json:"registry,omitempty"`
    // Repository - The repository name.
    Repository *string `json:"repository,omitempty"`
    // Tag - The tag name.
    Tag *string `json:"tag,omitempty"`
    // Digest - The sha256-based digest of the image manifest.
    Digest *string `json:"digest,omitempty"`
}

ImageDescriptor properties for a registry image.

type ImageUpdateTrigger Uses

type ImageUpdateTrigger struct {
    // ID - The unique ID of the trigger.
    ID  *string `json:"id,omitempty"`
    // Timestamp - The timestamp when the image update happened.
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // Images - The list of image updates that caused the build.
    Images *[]ImageDescriptor `json:"images,omitempty"`
}

ImageUpdateTrigger the image update trigger that caused a build.

type ImportImageParameters Uses

type ImportImageParameters struct {
    // Source - The source of the image.
    Source *ImportSource `json:"source,omitempty"`
    // TargetTags - List of strings of the form repo[:tag]. When tag is omitted the source will be used (or 'latest' if source tag is also omitted).
    TargetTags *[]string `json:"targetTags,omitempty"`
    // UntaggedTargetRepositories - List of strings of repository names to do a manifest only copy. No tag will be created.
    UntaggedTargetRepositories *[]string `json:"untaggedTargetRepositories,omitempty"`
    // Mode - When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins. Possible values include: 'NoForce', 'Force'
    Mode ImportMode `json:"mode,omitempty"`
}

ImportImageParameters ...

type ImportMode Uses

type ImportMode string

ImportMode enumerates the values for import mode.

const (
    // Force ...
    Force ImportMode = "Force"
    // NoForce ...
    NoForce ImportMode = "NoForce"
)

func PossibleImportModeValues Uses

func PossibleImportModeValues() []ImportMode

PossibleImportModeValues returns an array of possible values for the ImportMode const type.

type ImportSource Uses

type ImportSource struct {
    // ResourceID - The resource identifier of the source Azure Container Registry.
    ResourceID *string `json:"resourceId,omitempty"`
    // RegistryURI - The address of the source registry (e.g. 'mcr.microsoft.com').
    RegistryURI *string `json:"registryUri,omitempty"`
    // Credentials - Credentials used when importing from a registry uri.
    Credentials *ImportSourceCredentials `json:"credentials,omitempty"`
    // SourceImage - Repository name of the source image.
    // Specify an image by repository ('hello-world'). This will use the 'latest' tag.
    // Specify an image by tag ('hello-world:latest').
    // Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
    SourceImage *string `json:"sourceImage,omitempty"`
}

ImportSource ...

type ImportSourceCredentials Uses

type ImportSourceCredentials struct {
    // Username - The username to authenticate with the source registry.
    Username *string `json:"username,omitempty"`
    // Password - The password used to authenticate with the source registry.
    Password *string `json:"password,omitempty"`
}

ImportSourceCredentials ...

type NetworkRuleSet Uses

type NetworkRuleSet struct {
    // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny'
    DefaultAction DefaultAction `json:"defaultAction,omitempty"`
    // VirtualNetworkRules - The virtual network rules.
    VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
    // IPRules - The IP ACL rules.
    IPRules *[]IPRule `json:"ipRules,omitempty"`
}

NetworkRuleSet the network rule set for a container registry.

type OperationDefinition Uses

type OperationDefinition struct {
    // Origin - The origin information of the container registry operation.
    Origin *string `json:"origin,omitempty"`
    // Name - Operation name: {provider}/{resource}/{operation}.
    Name *string `json:"name,omitempty"`
    // Display - The display information for the container registry operation.
    Display *OperationDisplayDefinition `json:"display,omitempty"`
    // OperationPropertiesDefinition - The properties information for the container registry operation.
    *OperationPropertiesDefinition `json:"properties,omitempty"`
}

OperationDefinition the definition of a container registry operation.

func (OperationDefinition) MarshalJSON Uses

func (od OperationDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationDefinition.

func (*OperationDefinition) UnmarshalJSON Uses

func (od *OperationDefinition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for OperationDefinition struct.

type OperationDisplayDefinition Uses

type OperationDisplayDefinition struct {
    // Provider - The resource provider name: Microsoft.ContainerRegistry.
    Provider *string `json:"provider,omitempty"`
    // Resource - The resource on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Operation - The operation that users can perform.
    Operation *string `json:"operation,omitempty"`
    // Description - The description for the operation.
    Description *string `json:"description,omitempty"`
}

OperationDisplayDefinition the display information for a container registry operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of container registry operations. Since this list may be incomplete, the nextLink field should be used to request the next list of operations.
    Value *[]OperationDefinition `json:"value,omitempty"`
    // NextLink - The URI that can be used to request the next list of container registry operations.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult the result of a request to list container registry operations.

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of OperationDefinition values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext Uses

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone Uses

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() OperationDefinition

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

type OperationListResultPage Uses

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

OperationListResultPage contains a page of OperationDefinition values.

func NewOperationListResultPage Uses

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext Uses

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone Uses

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []OperationDefinition

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

type OperationMetricSpecificationDefinition Uses

type OperationMetricSpecificationDefinition struct {
    // Name - Metric name.
    Name *string `json:"name,omitempty"`
    // DisplayName - Metric display name.
    DisplayName *string `json:"displayName,omitempty"`
    // DisplayDescription - Metric description.
    DisplayDescription *string `json:"displayDescription,omitempty"`
    // Unit - Metric unit.
    Unit *string `json:"unit,omitempty"`
    // AggregationType - Metric aggregation type.
    AggregationType *string `json:"aggregationType,omitempty"`
    // InternalMetricName - Internal metric name.
    InternalMetricName *string `json:"internalMetricName,omitempty"`
}

OperationMetricSpecificationDefinition the definition of Azure Monitoring metric.

type OperationPropertiesDefinition Uses

type OperationPropertiesDefinition struct {
    // ServiceSpecification - The definition of Azure Monitoring service.
    ServiceSpecification *OperationServiceSpecificationDefinition `json:"serviceSpecification,omitempty"`
}

OperationPropertiesDefinition the definition of Azure Monitoring properties.

type OperationServiceSpecificationDefinition Uses

type OperationServiceSpecificationDefinition struct {
    // MetricSpecifications - A list of Azure Monitoring metrics definition.
    MetricSpecifications *[]OperationMetricSpecificationDefinition `json:"metricSpecifications,omitempty"`
}

OperationServiceSpecificationDefinition the definition of Azure Monitoring metrics list.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the client for the Operations methods of the Containerregistry service.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available Azure Container Registry REST API operations.

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

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

func (OperationsClient) ListSender Uses

func (client OperationsClient) 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.

type OsType Uses

type OsType string

OsType enumerates the values for os type.

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

func PossibleOsTypeValues Uses

func PossibleOsTypeValues() []OsType

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

type PasswordName Uses

type PasswordName string

PasswordName enumerates the values for password name.

const (
    // Password ...
    Password PasswordName = "password"
    // Password2 ...
    Password2 PasswordName = "password2"
)

func PossiblePasswordNameValues Uses

func PossiblePasswordNameValues() []PasswordName

PossiblePasswordNameValues returns an array of possible values for the PasswordName const type.

type PlatformProperties Uses

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 PolicyStatus Uses

type PolicyStatus string

PolicyStatus enumerates the values for policy status.

const (
    // PolicyStatusDisabled ...
    PolicyStatusDisabled PolicyStatus = "disabled"
    // PolicyStatusEnabled ...
    PolicyStatusEnabled PolicyStatus = "enabled"
)

func PossiblePolicyStatusValues Uses

func PossiblePolicyStatusValues() []PolicyStatus

PossiblePolicyStatusValues returns an array of possible values for the PolicyStatus const type.

type ProvisioningState Uses

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 Uses

func PossibleProvisioningStateValues() []ProvisioningState

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

type ProxyResource Uses

type ProxyResource struct {
    // ID - READ-ONLY; The resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    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 QuarantinePolicy Uses

type QuarantinePolicy struct {
    // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled'
    Status PolicyStatus `json:"status,omitempty"`
}

QuarantinePolicy an object that represents quarantine policy for a container registry.

type QueueBuildRequest Uses

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

QueueBuildRequest the queue build request parameters.

func (QueueBuildRequest) AsBasicQueueBuildRequest Uses

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

AsBasicQueueBuildRequest is the BasicQueueBuildRequest implementation for QueueBuildRequest.

func (QueueBuildRequest) AsBuildTaskBuildRequest Uses

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

AsBuildTaskBuildRequest is the BasicQueueBuildRequest implementation for QueueBuildRequest.

func (QueueBuildRequest) AsQueueBuildRequest Uses

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

AsQueueBuildRequest is the BasicQueueBuildRequest implementation for QueueBuildRequest.

func (QueueBuildRequest) AsQuickBuildRequest Uses

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

AsQuickBuildRequest is the BasicQueueBuildRequest implementation for QueueBuildRequest.

func (QueueBuildRequest) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for QueueBuildRequest.

type QuickBuildRequest Uses

type QuickBuildRequest struct {
    // ImageNames - The fully qualified image names including the repository and tag.
    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 indicates whether the image built should be pushed to the registry or not.
    IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
    // NoCache - The value of this property indicates whether the image cache is enabled or not.
    NoCache *bool `json:"noCache,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 Uses

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

AsBasicQueueBuildRequest is the BasicQueueBuildRequest implementation for QuickBuildRequest.

func (QuickBuildRequest) AsBuildTaskBuildRequest Uses

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

AsBuildTaskBuildRequest is the BasicQueueBuildRequest implementation for QuickBuildRequest.

func (QuickBuildRequest) AsQueueBuildRequest Uses

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

AsQueueBuildRequest is the BasicQueueBuildRequest implementation for QuickBuildRequest.

func (QuickBuildRequest) AsQuickBuildRequest Uses

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

AsQuickBuildRequest is the BasicQueueBuildRequest implementation for QuickBuildRequest.

func (QuickBuildRequest) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for QuickBuildRequest.

type RegenerateCredentialParameters Uses

type RegenerateCredentialParameters struct {
    // Name - Specifies name of the password which should be regenerated -- password or password2. Possible values include: 'Password', 'Password2'
    Name PasswordName `json:"name,omitempty"`
}

RegenerateCredentialParameters the parameters used to regenerate the login credential.

type RegistriesClient Uses

type RegistriesClient struct {
    BaseClient
}

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

func NewRegistriesClient Uses

func NewRegistriesClient(subscriptionID string) RegistriesClient

NewRegistriesClient creates an instance of the RegistriesClient client.

func NewRegistriesClientWithBaseURI Uses

func NewRegistriesClientWithBaseURI(baseURI string, subscriptionID string) RegistriesClient

NewRegistriesClientWithBaseURI creates an instance of the RegistriesClient client.

func (RegistriesClient) CheckNameAvailability Uses

func (client RegistriesClient) CheckNameAvailability(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest) (result RegistryNameStatus, err error)

CheckNameAvailability checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. Parameters: registryNameCheckRequest - the object containing information for the availability request.

func (RegistriesClient) CheckNameAvailabilityPreparer Uses

func (client RegistriesClient) CheckNameAvailabilityPreparer(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (RegistriesClient) CheckNameAvailabilityResponder Uses

func (client RegistriesClient) CheckNameAvailabilityResponder(resp *http.Response) (result RegistryNameStatus, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (RegistriesClient) CheckNameAvailabilitySender Uses

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

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

func (RegistriesClient) Create Uses

func (client RegistriesClient) Create(ctx context.Context, resourceGroupName string, registryName string, registry Registry) (result RegistriesCreateFuture, err error)

Create creates a container registry with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. registry - the parameters for creating a container registry.

func (RegistriesClient) CreatePreparer Uses

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

CreatePreparer prepares the Create request.

func (RegistriesClient) CreateResponder Uses

func (client RegistriesClient) CreateResponder(resp *http.Response) (result Registry, err error)

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

func (RegistriesClient) CreateSender Uses

func (client RegistriesClient) CreateSender(req *http.Request) (future RegistriesCreateFuture, err error)

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

func (RegistriesClient) Delete Uses

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

Delete deletes a container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (RegistriesClient) DeleteResponder Uses

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

func (client RegistriesClient) DeleteSender(req *http.Request) (future RegistriesDeleteFuture, err error)

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

func (RegistriesClient) Get Uses

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

Get gets the properties of the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) GetBuildSourceUploadURL Uses

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

GetBuildSourceUploadURL get the upload location for the user to be able to upload the source. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) GetBuildSourceUploadURLPreparer Uses

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

GetBuildSourceUploadURLPreparer prepares the GetBuildSourceUploadURL request.

func (RegistriesClient) GetBuildSourceUploadURLResponder Uses

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 Uses

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) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (RegistriesClient) GetResponder Uses

func (client RegistriesClient) GetResponder(resp *http.Response) (result Registry, err error)

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

func (RegistriesClient) GetSender Uses

func (client RegistriesClient) 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 (RegistriesClient) ImportImage Uses

func (client RegistriesClient) ImportImage(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters) (result RegistriesImportImageFuture, err error)

ImportImage copies an image to this container registry from the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. parameters - the parameters specifying the image to copy and the source container registry.

func (RegistriesClient) ImportImagePreparer Uses

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

ImportImagePreparer prepares the ImportImage request.

func (RegistriesClient) ImportImageResponder Uses

func (client RegistriesClient) ImportImageResponder(resp *http.Response) (result autorest.Response, err error)

ImportImageResponder handles the response to the ImportImage request. The method always closes the http.Response Body.

func (RegistriesClient) ImportImageSender Uses

func (client RegistriesClient) ImportImageSender(req *http.Request) (future RegistriesImportImageFuture, err error)

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

func (RegistriesClient) List Uses

func (client RegistriesClient) List(ctx context.Context) (result RegistryListResultPage, err error)

List lists all the container registries under the specified subscription.

func (RegistriesClient) ListByResourceGroup Uses

func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result RegistryListResultPage, err error)

ListByResourceGroup lists all the container registries under the specified resource group. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs.

func (RegistriesClient) ListByResourceGroupComplete Uses

func (client RegistriesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result RegistryListResultIterator, err error)

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

func (RegistriesClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (RegistriesClient) ListByResourceGroupResponder Uses

func (client RegistriesClient) ListByResourceGroupResponder(resp *http.Response) (result RegistryListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (RegistriesClient) ListByResourceGroupSender Uses

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

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

func (RegistriesClient) ListComplete Uses

func (client RegistriesClient) ListComplete(ctx context.Context) (result RegistryListResultIterator, err error)

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

func (RegistriesClient) ListCredentials Uses

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

ListCredentials lists the login credentials for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) ListCredentialsPreparer Uses

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

ListCredentialsPreparer prepares the ListCredentials request.

func (RegistriesClient) ListCredentialsResponder Uses

func (client RegistriesClient) ListCredentialsResponder(resp *http.Response) (result RegistryListCredentialsResult, err error)

ListCredentialsResponder handles the response to the ListCredentials request. The method always closes the http.Response Body.

func (RegistriesClient) ListCredentialsSender Uses

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

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

func (RegistriesClient) ListPolicies Uses

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

ListPolicies lists the policies for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) ListPoliciesPreparer Uses

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

ListPoliciesPreparer prepares the ListPolicies request.

func (RegistriesClient) ListPoliciesResponder Uses

func (client RegistriesClient) ListPoliciesResponder(resp *http.Response) (result RegistryPolicies, err error)

ListPoliciesResponder handles the response to the ListPolicies request. The method always closes the http.Response Body.

func (RegistriesClient) ListPoliciesSender Uses

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

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

func (RegistriesClient) ListPreparer Uses

func (client RegistriesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (RegistriesClient) ListResponder Uses

func (client RegistriesClient) ListResponder(resp *http.Response) (result RegistryListResult, err error)

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

func (RegistriesClient) ListSender Uses

func (client RegistriesClient) 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 (RegistriesClient) ListUsages Uses

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

ListUsages gets the quota usages for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) ListUsagesPreparer Uses

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

ListUsagesPreparer prepares the ListUsages request.

func (RegistriesClient) ListUsagesResponder Uses

func (client RegistriesClient) ListUsagesResponder(resp *http.Response) (result RegistryUsageListResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (RegistriesClient) ListUsagesSender Uses

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

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

func (RegistriesClient) QueueBuild Uses

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

QueueBuild creates a new build based on the request parameters and add it to the build queue. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. buildRequest - the parameters of a build that needs to queued.

func (RegistriesClient) QueueBuildPreparer Uses

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

QueueBuildPreparer prepares the QueueBuild request.

func (RegistriesClient) QueueBuildResponder Uses

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 Uses

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.

func (RegistriesClient) RegenerateCredential Uses

func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters) (result RegistryListCredentialsResult, err error)

RegenerateCredential regenerates one of the login credentials for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. regenerateCredentialParameters - specifies name of the password which should be regenerated -- password or password2.

func (RegistriesClient) RegenerateCredentialPreparer Uses

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

RegenerateCredentialPreparer prepares the RegenerateCredential request.

func (RegistriesClient) RegenerateCredentialResponder Uses

func (client RegistriesClient) RegenerateCredentialResponder(resp *http.Response) (result RegistryListCredentialsResult, err error)

RegenerateCredentialResponder handles the response to the RegenerateCredential request. The method always closes the http.Response Body.

func (RegistriesClient) RegenerateCredentialSender Uses

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

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

func (RegistriesClient) Update Uses

func (client RegistriesClient) Update(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters) (result RegistriesUpdateFuture, err error)

Update updates a container registry with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. registryUpdateParameters - the parameters for updating a container registry.

func (RegistriesClient) UpdatePolicies Uses

func (client RegistriesClient) UpdatePolicies(ctx context.Context, resourceGroupName string, registryName string, registryPoliciesUpdateParameters RegistryPolicies) (result RegistriesUpdatePoliciesFuture, err error)

UpdatePolicies updates the policies for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. registryPoliciesUpdateParameters - the parameters for updating policies of a container registry.

func (RegistriesClient) UpdatePoliciesPreparer Uses

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

UpdatePoliciesPreparer prepares the UpdatePolicies request.

func (RegistriesClient) UpdatePoliciesResponder Uses

func (client RegistriesClient) UpdatePoliciesResponder(resp *http.Response) (result RegistryPolicies, err error)

UpdatePoliciesResponder handles the response to the UpdatePolicies request. The method always closes the http.Response Body.

func (RegistriesClient) UpdatePoliciesSender Uses

func (client RegistriesClient) UpdatePoliciesSender(req *http.Request) (future RegistriesUpdatePoliciesFuture, err error)

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

func (RegistriesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (RegistriesClient) UpdateResponder Uses

func (client RegistriesClient) UpdateResponder(resp *http.Response) (result Registry, err error)

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

func (RegistriesClient) UpdateSender Uses

func (client RegistriesClient) UpdateSender(req *http.Request) (future RegistriesUpdateFuture, err error)

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

type RegistriesCreateFuture Uses

type RegistriesCreateFuture struct {
    azure.Future
}

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

func (*RegistriesCreateFuture) Result Uses

func (future *RegistriesCreateFuture) Result(client RegistriesClient) (r Registry, err error)

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

type RegistriesDeleteFuture Uses

type RegistriesDeleteFuture struct {
    azure.Future
}

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

func (*RegistriesDeleteFuture) Result Uses

func (future *RegistriesDeleteFuture) Result(client RegistriesClient) (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 RegistriesImportImageFuture Uses

type RegistriesImportImageFuture struct {
    azure.Future
}

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

func (*RegistriesImportImageFuture) Result Uses

func (future *RegistriesImportImageFuture) Result(client RegistriesClient) (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 RegistriesQueueBuildFuture Uses

type RegistriesQueueBuildFuture struct {
    azure.Future
}

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

func (*RegistriesQueueBuildFuture) Result Uses

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 RegistriesUpdateFuture Uses

type RegistriesUpdateFuture struct {
    azure.Future
}

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

func (*RegistriesUpdateFuture) Result Uses

func (future *RegistriesUpdateFuture) Result(client RegistriesClient) (r Registry, err error)

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

type RegistriesUpdatePoliciesFuture Uses

type RegistriesUpdatePoliciesFuture struct {
    azure.Future
}

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

func (*RegistriesUpdatePoliciesFuture) Result Uses

func (future *RegistriesUpdatePoliciesFuture) Result(client RegistriesClient) (rp RegistryPolicies, err error)

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

type Registry Uses

type Registry struct {
    autorest.Response `json:"-"`
    // Sku - The SKU of the container registry.
    Sku *Sku `json:"sku,omitempty"`
    // Identity - The identity of the container registry.
    Identity *RegistryIdentity `json:"identity,omitempty"`
    // RegistryProperties - The properties of the container registry.
    *RegistryProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    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"`
}

Registry an object that represents a container registry.

func (Registry) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Registry.

func (*Registry) UnmarshalJSON Uses

func (r *Registry) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Registry struct.

type RegistryIdentity Uses

type RegistryIdentity struct {
    // Type - The type of identity used for the registry.
    Type *string `json:"type,omitempty"`
    // PrincipalID - The principal ID of registry identity.
    PrincipalID *string `json:"principalId,omitempty"`
    // TenantID - The tenant ID associated with the registry.
    TenantID *string `json:"tenantId,omitempty"`
}

RegistryIdentity the identity of the container registry.

type RegistryListCredentialsResult Uses

type RegistryListCredentialsResult struct {
    autorest.Response `json:"-"`
    // Username - The username for a container registry.
    Username *string `json:"username,omitempty"`
    // Passwords - The list of passwords for a container registry.
    Passwords *[]RegistryPassword `json:"passwords,omitempty"`
}

RegistryListCredentialsResult the response from the ListCredentials operation.

type RegistryListResult Uses

type RegistryListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of container registries. Since this list may be incomplete, the nextLink field should be used to request the next list of container registries.
    Value *[]Registry `json:"value,omitempty"`
    // NextLink - The URI that can be used to request the next list of container registries.
    NextLink *string `json:"nextLink,omitempty"`
}

RegistryListResult the result of a request to list container registries.

func (RegistryListResult) IsEmpty Uses

func (rlr RegistryListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RegistryListResultIterator Uses

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

RegistryListResultIterator provides access to a complete listing of Registry values.

func NewRegistryListResultIterator Uses

func NewRegistryListResultIterator(page RegistryListResultPage) RegistryListResultIterator

Creates a new instance of the RegistryListResultIterator type.

func (*RegistryListResultIterator) Next Uses

func (iter *RegistryListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RegistryListResultIterator) NextWithContext Uses

func (iter *RegistryListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (RegistryListResultIterator) NotDone Uses

func (iter RegistryListResultIterator) NotDone() bool

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

func (RegistryListResultIterator) Response Uses

func (iter RegistryListResultIterator) Response() RegistryListResult

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

func (RegistryListResultIterator) Value Uses

func (iter RegistryListResultIterator) Value() Registry

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

type RegistryListResultPage Uses

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

RegistryListResultPage contains a page of Registry values.

func NewRegistryListResultPage Uses

func NewRegistryListResultPage(getNextPage func(context.Context, RegistryListResult) (RegistryListResult, error)) RegistryListResultPage

Creates a new instance of the RegistryListResultPage type.

func (*RegistryListResultPage) Next Uses

func (page *RegistryListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RegistryListResultPage) NextWithContext Uses

func (page *RegistryListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (RegistryListResultPage) NotDone Uses

func (page RegistryListResultPage) NotDone() bool

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

func (RegistryListResultPage) Response Uses

func (page RegistryListResultPage) Response() RegistryListResult

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

func (RegistryListResultPage) Values Uses

func (page RegistryListResultPage) Values() []Registry

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

type RegistryNameCheckRequest Uses

type RegistryNameCheckRequest struct {
    // Name - The name of the container registry.
    Name *string `json:"name,omitempty"`
    // Type - The resource type of the container registry. This field must be set to 'Microsoft.ContainerRegistry/registries'.
    Type *string `json:"type,omitempty"`
}

RegistryNameCheckRequest a request to check whether a container registry name is available.

type RegistryNameStatus Uses

type RegistryNameStatus struct {
    autorest.Response `json:"-"`
    // NameAvailable - The value that indicates whether the name is available.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
    // Reason - If any, the reason that the name is not available.
    Reason *string `json:"reason,omitempty"`
    // Message - If any, the error message that provides more detail for the reason that the name is not available.
    Message *string `json:"message,omitempty"`
}

RegistryNameStatus the result of a request to check the availability of a container registry name.

type RegistryPassword Uses

type RegistryPassword struct {
    // Name - The password name. Possible values include: 'Password', 'Password2'
    Name PasswordName `json:"name,omitempty"`
    // Value - The password value.
    Value *string `json:"value,omitempty"`
}

RegistryPassword the login password for the container registry.

type RegistryPolicies Uses

type RegistryPolicies struct {
    autorest.Response `json:"-"`
    // QuarantinePolicy - An object that represents quarantine policy for a container registry.
    QuarantinePolicy *QuarantinePolicy `json:"quarantinePolicy,omitempty"`
    // TrustPolicy - An object that represents content trust policy for a container registry.
    TrustPolicy *TrustPolicy `json:"trustPolicy,omitempty"`
}

RegistryPolicies an object that represents policies for a container registry.

type RegistryProperties Uses

type RegistryProperties struct {
    // LoginServer - READ-ONLY; The URL that can be used to log into the container registry.
    LoginServer *string `json:"loginServer,omitempty"`
    // CreationDate - READ-ONLY; The creation date of the container registry in ISO8601 format.
    CreationDate *date.Time `json:"creationDate,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state of the container registry at the time the operation was called. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // Status - READ-ONLY; The status of the container registry at the time the operation was called.
    Status *Status `json:"status,omitempty"`
    // AdminUserEnabled - The value that indicates whether the admin user is enabled.
    AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"`
    // StorageAccount - The properties of the storage account for the container registry. Only applicable to Classic SKU.
    StorageAccount *StorageAccountProperties `json:"storageAccount,omitempty"`
    // NetworkRuleSet - The network rule set for a container registry.
    NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"`
}

RegistryProperties the properties of a container registry.

type RegistryPropertiesUpdateParameters Uses

type RegistryPropertiesUpdateParameters struct {
    // AdminUserEnabled - The value that indicates whether the admin user is enabled.
    AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"`
    // StorageAccount - The parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry.
    StorageAccount *StorageAccountProperties `json:"storageAccount,omitempty"`
    // NetworkRuleSet - The network rule set for a container registry.
    NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"`
}

RegistryPropertiesUpdateParameters the parameters for updating the properties of a container registry.

type RegistryUpdateParameters Uses

type RegistryUpdateParameters struct {
    // Tags - The tags for the container registry.
    Tags map[string]*string `json:"tags"`
    // Sku - The SKU of the container registry.
    Sku *Sku `json:"sku,omitempty"`
    // Identity - The identity of the container registry.
    Identity *RegistryIdentity `json:"identity,omitempty"`
    // RegistryPropertiesUpdateParameters - The properties that the container registry will be updated with.
    *RegistryPropertiesUpdateParameters `json:"properties,omitempty"`
}

RegistryUpdateParameters the parameters for updating a container registry.

func (RegistryUpdateParameters) MarshalJSON Uses

func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistryUpdateParameters.

func (*RegistryUpdateParameters) UnmarshalJSON Uses

func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RegistryUpdateParameters struct.

type RegistryUsage Uses

type RegistryUsage struct {
    // Name - The name of the usage.
    Name *string `json:"name,omitempty"`
    // Limit - The limit of the usage.
    Limit *int64 `json:"limit,omitempty"`
    // CurrentValue - The current value of the usage.
    CurrentValue *int64 `json:"currentValue,omitempty"`
    // Unit - The unit of measurement. Possible values include: 'Count', 'Bytes'
    Unit RegistryUsageUnit `json:"unit,omitempty"`
}

RegistryUsage the quota usage for a container registry.

type RegistryUsageListResult Uses

type RegistryUsageListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of container registry quota usages.
    Value *[]RegistryUsage `json:"value,omitempty"`
}

RegistryUsageListResult the result of a request to get container registry quota usages.

type RegistryUsageUnit Uses

type RegistryUsageUnit string

RegistryUsageUnit enumerates the values for registry usage unit.

const (
    // Bytes ...
    Bytes RegistryUsageUnit = "Bytes"
    // Count ...
    Count RegistryUsageUnit = "Count"
)

func PossibleRegistryUsageUnitValues Uses

func PossibleRegistryUsageUnitValues() []RegistryUsageUnit

PossibleRegistryUsageUnitValues returns an array of possible values for the RegistryUsageUnit const type.

type Replication Uses

type Replication struct {
    autorest.Response `json:"-"`
    // ReplicationProperties - The properties of the replication.
    *ReplicationProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    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"`
}

Replication an object that represents a replication for a container registry.

func (Replication) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Replication.

func (*Replication) UnmarshalJSON Uses

func (r *Replication) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Replication struct.

type ReplicationListResult Uses

type ReplicationListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of replications. Since this list may be incomplete, the nextLink field should be used to request the next list of replications.
    Value *[]Replication `json:"value,omitempty"`
    // NextLink - The URI that can be used to request the next list of replications.
    NextLink *string `json:"nextLink,omitempty"`
}

ReplicationListResult the result of a request to list replications for a container registry.

func (ReplicationListResult) IsEmpty Uses

func (rlr ReplicationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ReplicationListResultIterator Uses

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

ReplicationListResultIterator provides access to a complete listing of Replication values.

func NewReplicationListResultIterator Uses

func NewReplicationListResultIterator(page ReplicationListResultPage) ReplicationListResultIterator

Creates a new instance of the ReplicationListResultIterator type.

func (*ReplicationListResultIterator) Next Uses

func (iter *ReplicationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ReplicationListResultIterator) NextWithContext Uses

func (iter *ReplicationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ReplicationListResultIterator) NotDone Uses

func (iter ReplicationListResultIterator) NotDone() bool

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

func (ReplicationListResultIterator) Response Uses

func (iter ReplicationListResultIterator) Response() ReplicationListResult

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

func (ReplicationListResultIterator) Value Uses

func (iter ReplicationListResultIterator) Value() Replication

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

type ReplicationListResultPage Uses

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

ReplicationListResultPage contains a page of Replication values.

func NewReplicationListResultPage Uses

func NewReplicationListResultPage(getNextPage func(context.Context, ReplicationListResult) (ReplicationListResult, error)) ReplicationListResultPage

Creates a new instance of the ReplicationListResultPage type.

func (*ReplicationListResultPage) Next Uses

func (page *ReplicationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ReplicationListResultPage) NextWithContext Uses

func (page *ReplicationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ReplicationListResultPage) NotDone Uses

func (page ReplicationListResultPage) NotDone() bool

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

func (ReplicationListResultPage) Response Uses

func (page ReplicationListResultPage) Response() ReplicationListResult

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

func (ReplicationListResultPage) Values Uses

func (page ReplicationListResultPage) Values() []Replication

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

type ReplicationProperties Uses

type ReplicationProperties struct {
    // ProvisioningState - READ-ONLY; The provisioning state of the replication at the time the operation was called. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // Status - READ-ONLY; The status of the replication at the time the operation was called.
    Status *Status `json:"status,omitempty"`
}

ReplicationProperties the properties of a replication.

type ReplicationUpdateParameters Uses

type ReplicationUpdateParameters struct {
    // Tags - The tags for the replication.
    Tags map[string]*string `json:"tags"`
}

ReplicationUpdateParameters the parameters for updating a replication.

func (ReplicationUpdateParameters) MarshalJSON Uses

func (rup ReplicationUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReplicationUpdateParameters.

type ReplicationsClient Uses

type ReplicationsClient struct {
    BaseClient
}

ReplicationsClient is the client for the Replications methods of the Containerregistry service.

func NewReplicationsClient Uses

func NewReplicationsClient(subscriptionID string) ReplicationsClient

NewReplicationsClient creates an instance of the ReplicationsClient client.

func NewReplicationsClientWithBaseURI Uses

func NewReplicationsClientWithBaseURI(baseURI string, subscriptionID string) ReplicationsClient

NewReplicationsClientWithBaseURI creates an instance of the ReplicationsClient client.

func (ReplicationsClient) Create Uses

func (client ReplicationsClient) Create(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication) (result ReplicationsCreateFuture, err error)

Create creates a replication for a container registry with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. replicationName - the name of the replication. replication - the parameters for creating a replication.

func (ReplicationsClient) CreatePreparer Uses

func (client ReplicationsClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ReplicationsClient) CreateResponder Uses

func (client ReplicationsClient) CreateResponder(resp *http.Response) (result Replication, err error)

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

func (ReplicationsClient) CreateSender Uses

func (client ReplicationsClient) CreateSender(req *http.Request) (future ReplicationsCreateFuture, err error)

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

func (ReplicationsClient) Delete Uses

func (client ReplicationsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (result ReplicationsDeleteFuture, err error)

Delete deletes a replication from a container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. replicationName - the name of the replication.

func (ReplicationsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ReplicationsClient) DeleteResponder Uses

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

func (client ReplicationsClient) DeleteSender(req *http.Request) (future ReplicationsDeleteFuture, err error)

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

func (ReplicationsClient) Get Uses

func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (result Replication, err error)

Get gets the properties of the specified replication. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. replicationName - the name of the replication.

func (ReplicationsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ReplicationsClient) GetResponder Uses

func (client ReplicationsClient) GetResponder(resp *http.Response) (result Replication, err error)

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

func (ReplicationsClient) GetSender Uses

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

func (client ReplicationsClient) List(ctx context.Context, resourceGroupName string, registryName string) (result ReplicationListResultPage, err error)

List lists all the replications for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (ReplicationsClient) ListComplete Uses

func (client ReplicationsClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string) (result ReplicationListResultIterator, err error)

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

func (ReplicationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ReplicationsClient) ListResponder Uses

func (client ReplicationsClient) ListResponder(resp *http.Response) (result ReplicationListResult, err error)

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

func (ReplicationsClient) ListSender Uses

func (client ReplicationsClient) 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 (ReplicationsClient) Update Uses

func (client ReplicationsClient) Update(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters) (result ReplicationsUpdateFuture, err error)

Update updates a replication for a container registry with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. replicationName - the name of the replication. replicationUpdateParameters - the parameters for updating a replication.

func (ReplicationsClient) UpdatePreparer Uses

func (client ReplicationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ReplicationsClient) UpdateResponder Uses

func (client ReplicationsClient) UpdateResponder(resp *http.Response) (result Replication, err error)

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

func (ReplicationsClient) UpdateSender Uses

func (client ReplicationsClient) UpdateSender(req *http.Request) (future ReplicationsUpdateFuture, err error)

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

type ReplicationsCreateFuture Uses

type ReplicationsCreateFuture struct {
    azure.Future
}

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

func (*ReplicationsCreateFuture) Result Uses

func (future *ReplicationsCreateFuture) Result(client ReplicationsClient) (r Replication, err error)

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

type ReplicationsDeleteFuture Uses

type ReplicationsDeleteFuture struct {
    azure.Future
}

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

func (*ReplicationsDeleteFuture) Result Uses

func (future *ReplicationsDeleteFuture) Result(client ReplicationsClient) (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 ReplicationsUpdateFuture Uses

type ReplicationsUpdateFuture struct {
    azure.Future
}

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

func (*ReplicationsUpdateFuture) Result Uses

func (future *ReplicationsUpdateFuture) Result(client ReplicationsClient) (r Replication, err error)

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

type Request Uses

type Request struct {
    // ID - The ID of the request that initiated the event.
    ID  *string `json:"id,omitempty"`
    // Addr - The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.
    Addr *string `json:"addr,omitempty"`
    // Host - The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
    Host *string `json:"host,omitempty"`
    // Method - The request method that generated the event.
    Method *string `json:"method,omitempty"`
    // Useragent - The user agent header of the request.
    Useragent *string `json:"useragent,omitempty"`
}

Request the request that generated the event.

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; The resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    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 Uses

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

MarshalJSON is the custom marshaler for Resource.

type Sku Uses

type Sku struct {
    // Name - The SKU name of the container registry. Required for registry creation. Possible values include: 'Classic', 'Basic', 'Standard', 'Premium'
    Name SkuName `json:"name,omitempty"`
    // Tier - READ-ONLY; The SKU tier based on the SKU name. Possible values include: 'SkuTierClassic', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium'
    Tier SkuTier `json:"tier,omitempty"`
}

Sku the SKU of a container registry.

type SkuName Uses

type SkuName string

SkuName enumerates the values for sku name.

const (
    // Basic ...
    Basic SkuName = "Basic"
    // Classic ...
    Classic SkuName = "Classic"
    // Premium ...
    Premium SkuName = "Premium"
    // Standard ...
    Standard SkuName = "Standard"
)

func PossibleSkuNameValues Uses

func PossibleSkuNameValues() []SkuName

PossibleSkuNameValues returns an array of possible values for the SkuName const type.

type SkuTier Uses

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
    // SkuTierBasic ...
    SkuTierBasic SkuTier = "Basic"
    // SkuTierClassic ...
    SkuTierClassic SkuTier = "Classic"
    // SkuTierPremium ...
    SkuTierPremium SkuTier = "Premium"
    // SkuTierStandard ...
    SkuTierStandard SkuTier = "Standard"
)

func PossibleSkuTierValues Uses

func PossibleSkuTierValues() []SkuTier

PossibleSkuTierValues returns an array of possible values for the SkuTier const type.

type Source Uses

type Source struct {
    // Addr - The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.
    Addr *string `json:"addr,omitempty"`
    // InstanceID - The running instance of an application. Changes after each restart.
    InstanceID *string `json:"instanceID,omitempty"`
}

Source the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.

type SourceControlAuthInfo Uses

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 Uses

type SourceControlType string

SourceControlType enumerates the values for source control type.

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

func PossibleSourceControlTypeValues Uses

func PossibleSourceControlTypeValues() []SourceControlType

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

type SourceRepositoryProperties Uses

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 Uses

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 Uses

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 Status Uses

type Status struct {
    // DisplayStatus - READ-ONLY; The short label for the status.
    DisplayStatus *string `json:"displayStatus,omitempty"`
    // Message - READ-ONLY; The detailed message for the status, including alerts and error messages.
    Message *string `json:"message,omitempty"`
    // Timestamp - READ-ONLY; The timestamp when the status was changed to the current value.
    Timestamp *date.Time `json:"timestamp,omitempty"`
}

Status the status of an Azure resource at the time the operation was called.

type StorageAccountProperties Uses

type StorageAccountProperties struct {
    // ID - The resource ID of the storage account.
    ID *string `json:"id,omitempty"`
}

StorageAccountProperties the properties of a storage account for a container registry. Only applicable to Classic SKU.

type Target Uses

type Target struct {
    // MediaType - The MIME type of the referenced object.
    MediaType *string `json:"mediaType,omitempty"`
    // Size - The number of bytes of the content. Same as Length field.
    Size *int64 `json:"size,omitempty"`
    // Digest - The digest of the content, as defined by the Registry V2 HTTP API Specification.
    Digest *string `json:"digest,omitempty"`
    // Length - The number of bytes of the content. Same as Size field.
    Length *int64 `json:"length,omitempty"`
    // Repository - The repository name.
    Repository *string `json:"repository,omitempty"`
    // URL - The direct URL to the content.
    URL *string `json:"url,omitempty"`
    // Tag - The tag name.
    Tag *string `json:"tag,omitempty"`
    // Name - The name of the artifact.
    Name *string `json:"name,omitempty"`
    // Version - The version of the artifact.
    Version *string `json:"version,omitempty"`
}

Target the target of the event.

type TokenType Uses

type TokenType string

TokenType enumerates the values for token type.

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

func PossibleTokenTypeValues Uses

func PossibleTokenTypeValues() []TokenType

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

type TrustPolicy Uses

type TrustPolicy struct {
    // Type - The type of trust policy. Possible values include: 'Notary'
    Type TrustPolicyType `json:"type,omitempty"`
    // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled'
    Status PolicyStatus `json:"status,omitempty"`
}

TrustPolicy an object that represents content trust policy for a container registry.

type TrustPolicyType Uses

type TrustPolicyType string

TrustPolicyType enumerates the values for trust policy type.

const (
    // Notary ...
    Notary TrustPolicyType = "Notary"
)

func PossibleTrustPolicyTypeValues Uses

func PossibleTrustPolicyTypeValues() []TrustPolicyType

PossibleTrustPolicyTypeValues returns an array of possible values for the TrustPolicyType const type.

type Type Uses

type Type string

Type enumerates the values for type.

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

func PossibleTypeValues Uses

func PossibleTypeValues() []Type

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

type TypeBasicBuildStepPropertiesUpdateParameters Uses

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 Uses

func PossibleTypeBasicBuildStepPropertiesUpdateParametersValues() []TypeBasicBuildStepPropertiesUpdateParameters

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

type TypeBasicQueueBuildRequest Uses

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 Uses

func PossibleTypeBasicQueueBuildRequestValues() []TypeBasicQueueBuildRequest

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

type VirtualNetworkRule Uses

type VirtualNetworkRule struct {
    // Action - The action of virtual network rule. Possible values include: 'Allow'
    Action Action `json:"action,omitempty"`
    // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    VirtualNetworkResourceID *string `json:"id,omitempty"`
}

VirtualNetworkRule virtual network rule.

type Webhook Uses

type Webhook struct {
    autorest.Response `json:"-"`
    // WebhookProperties - The properties of the webhook.
    *WebhookProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    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"`
}

Webhook an object that represents a webhook for a container registry.

func (Webhook) MarshalJSON Uses

func (w Webhook) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Webhook.

func (*Webhook) UnmarshalJSON Uses

func (w *Webhook) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Webhook struct.

type WebhookAction Uses

type WebhookAction string

WebhookAction enumerates the values for webhook action.

const (
    // ChartDelete ...
    ChartDelete WebhookAction = "chart_delete"
    // ChartPush ...
    ChartPush WebhookAction = "chart_push"
    // Delete ...
    Delete WebhookAction = "delete"
    // Push ...
    Push WebhookAction = "push"
    // Quarantine ...
    Quarantine WebhookAction = "quarantine"
)

func PossibleWebhookActionValues Uses

func PossibleWebhookActionValues() []WebhookAction

PossibleWebhookActionValues returns an array of possible values for the WebhookAction const type.

type WebhookCreateParameters Uses

type WebhookCreateParameters struct {
    // Tags - The tags for the webhook.
    Tags map[string]*string `json:"tags"`
    // Location - The location of the webhook. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // WebhookPropertiesCreateParameters - The properties that the webhook will be created with.
    *WebhookPropertiesCreateParameters `json:"properties,omitempty"`
}

WebhookCreateParameters the parameters for creating a webhook.

func (WebhookCreateParameters) MarshalJSON Uses

func (wcp WebhookCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookCreateParameters.

func (*WebhookCreateParameters) UnmarshalJSON Uses

func (wcp *WebhookCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WebhookCreateParameters struct.

type WebhookListResult Uses

type WebhookListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of webhooks. Since this list may be incomplete, the nextLink field should be used to request the next list of webhooks.
    Value *[]Webhook `json:"value,omitempty"`
    // NextLink - The URI that can be used to request the next list of webhooks.
    NextLink *string `json:"nextLink,omitempty"`
}

WebhookListResult the result of a request to list webhooks for a container registry.

func (WebhookListResult) IsEmpty Uses

func (wlr WebhookListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type WebhookListResultIterator Uses

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

WebhookListResultIterator provides access to a complete listing of Webhook values.

func NewWebhookListResultIterator Uses

func NewWebhookListResultIterator(page WebhookListResultPage) WebhookListResultIterator

Creates a new instance of the WebhookListResultIterator type.

func (*WebhookListResultIterator) Next Uses

func (iter *WebhookListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*WebhookListResultIterator) NextWithContext Uses

func (iter *WebhookListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (WebhookListResultIterator) NotDone Uses

func (iter WebhookListResultIterator) NotDone() bool

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

func (WebhookListResultIterator) Response Uses

func (iter WebhookListResultIterator) Response() WebhookListResult

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

func (WebhookListResultIterator) Value Uses

func (iter WebhookListResultIterator) Value() Webhook

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

type WebhookListResultPage Uses

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

WebhookListResultPage contains a page of Webhook values.

func NewWebhookListResultPage Uses

func NewWebhookListResultPage(getNextPage func(context.Context, WebhookListResult) (WebhookListResult, error)) WebhookListResultPage

Creates a new instance of the WebhookListResultPage type.

func (*WebhookListResultPage) Next Uses

func (page *WebhookListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*WebhookListResultPage) NextWithContext Uses

func (page *WebhookListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (WebhookListResultPage) NotDone Uses

func (page WebhookListResultPage) NotDone() bool

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

func (WebhookListResultPage) Response Uses

func (page WebhookListResultPage) Response() WebhookListResult

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

func (WebhookListResultPage) Values Uses

func (page WebhookListResultPage) Values() []Webhook

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

type WebhookProperties Uses

type WebhookProperties struct {
    // Status - The status of the webhook at the time the operation was called. Possible values include: 'WebhookStatusEnabled', 'WebhookStatusDisabled'
    Status WebhookStatus `json:"status,omitempty"`
    // Scope - The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.
    Scope *string `json:"scope,omitempty"`
    // Actions - The list of actions that trigger the webhook to post notifications.
    Actions *[]WebhookAction `json:"actions,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state of the webhook at the time the operation was called. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

WebhookProperties the properties of a webhook.

type WebhookPropertiesCreateParameters Uses

type WebhookPropertiesCreateParameters struct {
    // ServiceURI - The service URI for the webhook to post notifications.
    ServiceURI *string `json:"serviceUri,omitempty"`
    // CustomHeaders - Custom headers that will be added to the webhook notifications.
    CustomHeaders map[string]*string `json:"customHeaders"`
    // Status - The status of the webhook at the time the operation was called. Possible values include: 'WebhookStatusEnabled', 'WebhookStatusDisabled'
    Status WebhookStatus `json:"status,omitempty"`
    // Scope - The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.
    Scope *string `json:"scope,omitempty"`
    // Actions - The list of actions that trigger the webhook to post notifications.
    Actions *[]WebhookAction `json:"actions,omitempty"`
}

WebhookPropertiesCreateParameters the parameters for creating the properties of a webhook.

func (WebhookPropertiesCreateParameters) MarshalJSON Uses

func (wpcp WebhookPropertiesCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookPropertiesCreateParameters.

type WebhookPropertiesUpdateParameters Uses

type WebhookPropertiesUpdateParameters struct {
    // ServiceURI - The service URI for the webhook to post notifications.
    ServiceURI *string `json:"serviceUri,omitempty"`
    // CustomHeaders - Custom headers that will be added to the webhook notifications.
    CustomHeaders map[string]*string `json:"customHeaders"`
    // Status - The status of the webhook at the time the operation was called. Possible values include: 'WebhookStatusEnabled', 'WebhookStatusDisabled'
    Status WebhookStatus `json:"status,omitempty"`
    // Scope - The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.
    Scope *string `json:"scope,omitempty"`
    // Actions - The list of actions that trigger the webhook to post notifications.
    Actions *[]WebhookAction `json:"actions,omitempty"`
}

WebhookPropertiesUpdateParameters the parameters for updating the properties of a webhook.

func (WebhookPropertiesUpdateParameters) MarshalJSON Uses

func (wpup WebhookPropertiesUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookPropertiesUpdateParameters.

type WebhookStatus Uses

type WebhookStatus string

WebhookStatus enumerates the values for webhook status.

const (
    // WebhookStatusDisabled ...
    WebhookStatusDisabled WebhookStatus = "disabled"
    // WebhookStatusEnabled ...
    WebhookStatusEnabled WebhookStatus = "enabled"
)

func PossibleWebhookStatusValues Uses

func PossibleWebhookStatusValues() []WebhookStatus

PossibleWebhookStatusValues returns an array of possible values for the WebhookStatus const type.

type WebhookUpdateParameters Uses

type WebhookUpdateParameters struct {
    // Tags - The tags for the webhook.
    Tags map[string]*string `json:"tags"`
    // WebhookPropertiesUpdateParameters - The properties that the webhook will be updated with.
    *WebhookPropertiesUpdateParameters `json:"properties,omitempty"`
}

WebhookUpdateParameters the parameters for updating a webhook.

func (WebhookUpdateParameters) MarshalJSON Uses

func (wup WebhookUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookUpdateParameters.

func (*WebhookUpdateParameters) UnmarshalJSON Uses

func (wup *WebhookUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WebhookUpdateParameters struct.

type WebhooksClient Uses

type WebhooksClient struct {
    BaseClient
}

WebhooksClient is the client for the Webhooks methods of the Containerregistry service.

func NewWebhooksClient Uses

func NewWebhooksClient(subscriptionID string) WebhooksClient

NewWebhooksClient creates an instance of the WebhooksClient client.

func NewWebhooksClientWithBaseURI Uses

func NewWebhooksClientWithBaseURI(baseURI string, subscriptionID string) WebhooksClient

NewWebhooksClientWithBaseURI creates an instance of the WebhooksClient client.

func (WebhooksClient) Create Uses

func (client WebhooksClient) Create(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters) (result WebhooksCreateFuture, err error)

Create creates a webhook for a container registry with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. webhookName - the name of the webhook. webhookCreateParameters - the parameters for creating a webhook.

func (WebhooksClient) CreatePreparer Uses

func (client WebhooksClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (WebhooksClient) CreateResponder Uses

func (client WebhooksClient) CreateResponder(resp *http.Response) (result Webhook, err error)

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

func (WebhooksClient) CreateSender Uses

func (client WebhooksClient) CreateSender(req *http.Request) (future WebhooksCreateFuture, err error)

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

func (WebhooksClient) Delete Uses

func (client WebhooksClient) Delete(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result WebhooksDeleteFuture, err error)

Delete deletes a webhook from a container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. webhookName - the name of the webhook.

func (WebhooksClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (WebhooksClient) DeleteResponder Uses

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

func (client WebhooksClient) DeleteSender(req *http.Request) (future WebhooksDeleteFuture, err error)

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

func (WebhooksClient) Get Uses

func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result Webhook, err error)

Get gets the properties of the specified webhook. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. webhookName - the name of the webhook.

func (WebhooksClient) GetCallbackConfig Uses

func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result CallbackConfig, err error)

GetCallbackConfig gets the configuration of service URI and custom headers for the webhook. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. webhookName - the name of the webhook.

func (WebhooksClient) GetCallbackConfigPreparer Uses

func (client WebhooksClient) GetCallbackConfigPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)

GetCallbackConfigPreparer prepares the GetCallbackConfig request.

func (WebhooksClient) GetCallbackConfigResponder Uses

func (client WebhooksClient) GetCallbackConfigResponder(resp *http.Response) (result CallbackConfig, err error)

GetCallbackConfigResponder handles the response to the GetCallbackConfig request. The method always closes the http.Response Body.

func (WebhooksClient) GetCallbackConfigSender Uses

func (client WebhooksClient) GetCallbackConfigSender(req *http.Request) (*http.Response, error)

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

func (WebhooksClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (WebhooksClient) GetResponder Uses

func (client WebhooksClient) GetResponder(resp *http.Response) (result Webhook, err error)

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

func (WebhooksClient) GetSender Uses

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

func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, registryName string) (result WebhookListResultPage, err error)

List lists all the webhooks for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (WebhooksClient) ListComplete Uses

func (client WebhooksClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string) (result WebhookListResultIterator, err error)

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

func (WebhooksClient) ListEvents Uses

func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventListResultPage, err error)

ListEvents lists recent events for the specified webhook. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. webhookName - the name of the webhook.

func (WebhooksClient) ListEventsComplete Uses

func (client WebhooksClient) ListEventsComplete(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventListResultIterator, err error)

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

func (WebhooksClient) ListEventsPreparer Uses

func (client WebhooksClient) ListEventsPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)

ListEventsPreparer prepares the ListEvents request.

func (WebhooksClient) ListEventsResponder Uses

func (client WebhooksClient) ListEventsResponder(resp *http.Response) (result EventListResult, err error)

ListEventsResponder handles the response to the ListEvents request. The method always closes the http.Response Body.

func (WebhooksClient) ListEventsSender Uses

func (client WebhooksClient) ListEventsSender(req *http.Request) (*http.Response, error)

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

func (WebhooksClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (WebhooksClient) ListResponder Uses

func (client WebhooksClient) ListResponder(resp *http.Response) (result WebhookListResult, err error)

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

func (WebhooksClient) ListSender Uses

func (client WebhooksClient) 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 (WebhooksClient) Ping Uses

func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventInfo, err error)

Ping triggers a ping event to be sent to the webhook. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. webhookName - the name of the webhook.

func (WebhooksClient) PingPreparer Uses

func (client WebhooksClient) PingPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)

PingPreparer prepares the Ping request.

func (WebhooksClient) PingResponder Uses

func (client WebhooksClient) PingResponder(resp *http.Response) (result EventInfo, err error)

PingResponder handles the response to the Ping request. The method always closes the http.Response Body.

func (WebhooksClient) PingSender Uses

func (client WebhooksClient) PingSender(req *http.Request) (*http.Response, error)

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

func (WebhooksClient) Update Uses

func (client WebhooksClient) Update(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters) (result WebhooksUpdateFuture, err error)

Update updates a webhook with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. webhookName - the name of the webhook. webhookUpdateParameters - the parameters for updating a webhook.

func (WebhooksClient) UpdatePreparer Uses

func (client WebhooksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (WebhooksClient) UpdateResponder Uses

func (client WebhooksClient) UpdateResponder(resp *http.Response) (result Webhook, err error)

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

func (WebhooksClient) UpdateSender Uses

func (client WebhooksClient) UpdateSender(req *http.Request) (future WebhooksUpdateFuture, err error)

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

type WebhooksCreateFuture Uses

type WebhooksCreateFuture struct {
    azure.Future
}

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

func (*WebhooksCreateFuture) Result Uses

func (future *WebhooksCreateFuture) Result(client WebhooksClient) (w Webhook, err error)

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

type WebhooksDeleteFuture Uses

type WebhooksDeleteFuture struct {
    azure.Future
}

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

func (*WebhooksDeleteFuture) Result Uses

func (future *WebhooksDeleteFuture) Result(client WebhooksClient) (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 WebhooksUpdateFuture Uses

type WebhooksUpdateFuture struct {
    azure.Future
}

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

func (*WebhooksUpdateFuture) Result Uses

func (future *WebhooksUpdateFuture) Result(client WebhooksClient) (w Webhook, err error)

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

Directories

PathSynopsis
containerregistryapi

Package containerregistry imports 10 packages (graph) and is imported by 3 packages. Updated 2019-07-30. Refresh now. Tools for package owners.