containerregistry

package
v58.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package containerregistry implements the Azure ARM Containerregistry service API version .

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type Action

type Action string

Action enumerates the values for action.

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

func PossibleActionValues

func PossibleActionValues() []Action

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

type ActionsRequired

type ActionsRequired string

ActionsRequired enumerates the values for actions required.

const (
	// None ...
	None ActionsRequired = "None"
	// Recreate ...
	Recreate ActionsRequired = "Recreate"
)

func PossibleActionsRequiredValues

func PossibleActionsRequiredValues() []ActionsRequired

PossibleActionsRequiredValues returns an array of possible values for the ActionsRequired const type.

type ActiveDirectoryObject

type ActiveDirectoryObject struct {
	// ObjectID - The user/group/application object ID for Active Directory Object that will be used for authenticating the token of a container registry.
	ObjectID *string `json:"objectId,omitempty"`
	// TenantID - The tenant ID of user/group/application object Active Directory Object that will be used for authenticating the token of a container registry.
	TenantID *string `json:"tenantId,omitempty"`
}

ActiveDirectoryObject the Active Directory Object that will be used for authenticating the token of a container registry.

type Actor

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 AgentPool

type AgentPool struct {
	autorest.Response `json:"-"`
	// AgentPoolProperties - The properties associated with the agent pool
	*AgentPoolProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

AgentPool the agentpool that has the ARM resource and properties. The agentpool will have all information to create an agent pool.

func (AgentPool) MarshalJSON

func (ap AgentPool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AgentPool.

func (*AgentPool) UnmarshalJSON

func (ap *AgentPool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AgentPool struct.

type AgentPoolListResult

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

AgentPoolListResult the collection of agent pools.

func (AgentPoolListResult) IsEmpty

func (aplr AgentPoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AgentPoolListResultIterator

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

AgentPoolListResultIterator provides access to a complete listing of AgentPool values.

func NewAgentPoolListResultIterator

func NewAgentPoolListResultIterator(page AgentPoolListResultPage) AgentPoolListResultIterator

Creates a new instance of the AgentPoolListResultIterator type.

func (*AgentPoolListResultIterator) Next

func (iter *AgentPoolListResultIterator) 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 (*AgentPoolListResultIterator) NextWithContext

func (iter *AgentPoolListResultIterator) 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 (AgentPoolListResultIterator) NotDone

func (iter AgentPoolListResultIterator) NotDone() bool

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

func (AgentPoolListResultIterator) Response

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

func (AgentPoolListResultIterator) Value

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

type AgentPoolListResultPage

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

AgentPoolListResultPage contains a page of AgentPool values.

func NewAgentPoolListResultPage

func NewAgentPoolListResultPage(cur AgentPoolListResult, getNextPage func(context.Context, AgentPoolListResult) (AgentPoolListResult, error)) AgentPoolListResultPage

Creates a new instance of the AgentPoolListResultPage type.

func (*AgentPoolListResultPage) Next

func (page *AgentPoolListResultPage) 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 (*AgentPoolListResultPage) NextWithContext

func (page *AgentPoolListResultPage) 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 (AgentPoolListResultPage) NotDone

func (page AgentPoolListResultPage) NotDone() bool

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

func (AgentPoolListResultPage) Response

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

func (AgentPoolListResultPage) Values

func (page AgentPoolListResultPage) Values() []AgentPool

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

type AgentPoolProperties

type AgentPoolProperties struct {
	// Count - The count of agent machine
	Count *int32 `json:"count,omitempty"`
	// Tier - The Tier of agent machine
	Tier *string `json:"tier,omitempty"`
	// Os - The OS of agent machine. Possible values include: 'Windows', 'Linux'
	Os OS `json:"os,omitempty"`
	// VirtualNetworkSubnetResourceID - The Virtual Network Subnet Resource Id of the agent machine
	VirtualNetworkSubnetResourceID *string `json:"virtualNetworkSubnetResourceId,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning state of this agent pool. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

AgentPoolProperties the properties of agent pool.

func (AgentPoolProperties) MarshalJSON

func (app AgentPoolProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AgentPoolProperties.

type AgentPoolPropertiesUpdateParameters

type AgentPoolPropertiesUpdateParameters struct {
	// Count - The count of agent machine
	Count *int32 `json:"count,omitempty"`
}

AgentPoolPropertiesUpdateParameters ...

type AgentPoolQueueStatus

type AgentPoolQueueStatus struct {
	autorest.Response `json:"-"`
	// Count - The number of pending runs in the queue
	Count *int32 `json:"count,omitempty"`
}

AgentPoolQueueStatus the QueueStatus of Agent Pool

type AgentPoolUpdateParameters

type AgentPoolUpdateParameters struct {
	// AgentPoolPropertiesUpdateParameters - The properties associated with the agent pool
	*AgentPoolPropertiesUpdateParameters `json:"properties,omitempty"`
	// Tags - The ARM resource tags.
	Tags map[string]*string `json:"tags"`
}

AgentPoolUpdateParameters the parameters for updating an agent pool.

func (AgentPoolUpdateParameters) MarshalJSON

func (apup AgentPoolUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AgentPoolUpdateParameters.

func (*AgentPoolUpdateParameters) UnmarshalJSON

func (apup *AgentPoolUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AgentPoolUpdateParameters struct.

type AgentPoolsClient

type AgentPoolsClient struct {
	BaseClient
}

AgentPoolsClient is the client for the AgentPools methods of the Containerregistry service.

func NewAgentPoolsClient

func NewAgentPoolsClient(subscriptionID string) AgentPoolsClient

NewAgentPoolsClient creates an instance of the AgentPoolsClient client.

func NewAgentPoolsClientWithBaseURI

func NewAgentPoolsClientWithBaseURI(baseURI string, subscriptionID string) AgentPoolsClient

NewAgentPoolsClientWithBaseURI creates an instance of the AgentPoolsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AgentPoolsClient) Create

func (client AgentPoolsClient) Create(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, agentPool AgentPool) (result AgentPoolsCreateFuture, err error)

Create creates an agent pool 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. agentPoolName - the name of the agent pool. agentPool - the parameters of an agent pool that needs to scheduled.

func (AgentPoolsClient) CreatePreparer

func (client AgentPoolsClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, agentPool AgentPool) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AgentPoolsClient) CreateResponder

func (client AgentPoolsClient) CreateResponder(resp *http.Response) (result AgentPool, err error)

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

func (AgentPoolsClient) CreateSender

func (client AgentPoolsClient) CreateSender(req *http.Request) (future AgentPoolsCreateFuture, err error)

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

func (AgentPoolsClient) Delete

func (client AgentPoolsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string) (result AgentPoolsDeleteFuture, err error)

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

func (AgentPoolsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AgentPoolsClient) DeleteResponder

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

func (client AgentPoolsClient) DeleteSender(req *http.Request) (future AgentPoolsDeleteFuture, err error)

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

func (AgentPoolsClient) Get

func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string) (result AgentPool, err error)

Get gets the detailed information for a given agent pool. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. agentPoolName - the name of the agent pool.

func (AgentPoolsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AgentPoolsClient) GetQueueStatus

func (client AgentPoolsClient) GetQueueStatus(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string) (result AgentPoolQueueStatus, err error)

GetQueueStatus gets the count of queued runs for a given agent pool. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. agentPoolName - the name of the agent pool.

func (AgentPoolsClient) GetQueueStatusPreparer

func (client AgentPoolsClient) GetQueueStatusPreparer(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string) (*http.Request, error)

GetQueueStatusPreparer prepares the GetQueueStatus request.

func (AgentPoolsClient) GetQueueStatusResponder

func (client AgentPoolsClient) GetQueueStatusResponder(resp *http.Response) (result AgentPoolQueueStatus, err error)

GetQueueStatusResponder handles the response to the GetQueueStatus request. The method always closes the http.Response Body.

func (AgentPoolsClient) GetQueueStatusSender

func (client AgentPoolsClient) GetQueueStatusSender(req *http.Request) (*http.Response, error)

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

func (AgentPoolsClient) GetResponder

func (client AgentPoolsClient) GetResponder(resp *http.Response) (result AgentPool, err error)

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

func (AgentPoolsClient) GetSender

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

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

List lists all the agent pools 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.

func (AgentPoolsClient) ListComplete

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

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

func (AgentPoolsClient) ListPreparer

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

ListPreparer prepares the List request.

func (AgentPoolsClient) ListResponder

func (client AgentPoolsClient) ListResponder(resp *http.Response) (result AgentPoolListResult, err error)

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

func (AgentPoolsClient) ListSender

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

func (client AgentPoolsClient) Update(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, updateParameters AgentPoolUpdateParameters) (result AgentPoolsUpdateFuture, err error)

Update updates an agent pool 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. agentPoolName - the name of the agent pool. updateParameters - the parameters for updating an agent pool.

func (AgentPoolsClient) UpdatePreparer

func (client AgentPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, updateParameters AgentPoolUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AgentPoolsClient) UpdateResponder

func (client AgentPoolsClient) UpdateResponder(resp *http.Response) (result AgentPool, err error)

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

func (AgentPoolsClient) UpdateSender

func (client AgentPoolsClient) UpdateSender(req *http.Request) (future AgentPoolsUpdateFuture, err error)

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

type AgentPoolsCreateFuture

type AgentPoolsCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AgentPoolsClient) (AgentPool, error)
}

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

func (*AgentPoolsCreateFuture) UnmarshalJSON

func (future *AgentPoolsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AgentPoolsDeleteFuture

type AgentPoolsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AgentPoolsClient) (autorest.Response, error)
}

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

func (*AgentPoolsDeleteFuture) UnmarshalJSON

func (future *AgentPoolsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AgentPoolsUpdateFuture

type AgentPoolsUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AgentPoolsClient) (AgentPool, error)
}

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

func (*AgentPoolsUpdateFuture) UnmarshalJSON

func (future *AgentPoolsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AgentProperties

type AgentProperties struct {
	// CPU - The CPU configuration in terms of number of cores required for the run.
	CPU *int32 `json:"cpu,omitempty"`
}

AgentProperties the properties that determine the run agent configuration.

type Architecture

type Architecture string

Architecture enumerates the values for architecture.

const (
	// Amd64 ...
	Amd64 Architecture = "amd64"
	// Arm ...
	Arm Architecture = "arm"
	// Arm64 ...
	Arm64 Architecture = "arm64"
	// ThreeEightSix ...
	ThreeEightSix Architecture = "386"
	// X86 ...
	X86 Architecture = "x86"
)

func PossibleArchitectureValues

func PossibleArchitectureValues() []Architecture

PossibleArchitectureValues returns an array of possible values for the Architecture const type.

type Argument

type Argument struct {
	// 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"`
}

Argument the properties of a run argument.

type AuthInfo

type AuthInfo 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"`
}

AuthInfo the authorization properties for accessing the source code repository.

type AuthInfoUpdateParameters

type AuthInfoUpdateParameters 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"`
}

AuthInfoUpdateParameters the authorization properties for accessing the source code repository.

type BaseClient

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

BaseClient is the base client for Containerregistry.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BaseImageDependency

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

type BaseImageDependencyType string

BaseImageDependencyType enumerates the values for base image dependency type.

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

func PossibleBaseImageDependencyTypeValues

func PossibleBaseImageDependencyTypeValues() []BaseImageDependencyType

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

type BaseImageTrigger

type BaseImageTrigger struct {
	// BaseImageTriggerType - The type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime'
	BaseImageTriggerType BaseImageTriggerType `json:"baseImageTriggerType,omitempty"`
	// UpdateTriggerEndpoint - The endpoint URL for receiving update triggers.
	UpdateTriggerEndpoint *string `json:"updateTriggerEndpoint,omitempty"`
	// UpdateTriggerPayloadType - Type of Payload body for Base image update triggers. Possible values include: 'UpdateTriggerPayloadTypeDefault', 'UpdateTriggerPayloadTypeToken'
	UpdateTriggerPayloadType UpdateTriggerPayloadType `json:"updateTriggerPayloadType,omitempty"`
	// Status - The current status of trigger. Possible values include: 'TriggerStatusEnabled', 'TriggerStatusDisabled'
	Status TriggerStatus `json:"status,omitempty"`
	// Name - The name of the trigger.
	Name *string `json:"name,omitempty"`
}

BaseImageTrigger the trigger based on base image dependency.

type BaseImageTriggerType

type BaseImageTriggerType string

BaseImageTriggerType enumerates the values for base image trigger type.

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

func PossibleBaseImageTriggerTypeValues

func PossibleBaseImageTriggerTypeValues() []BaseImageTriggerType

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

type BaseImageTriggerUpdateParameters

type BaseImageTriggerUpdateParameters struct {
	// BaseImageTriggerType - The type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime'
	BaseImageTriggerType BaseImageTriggerType `json:"baseImageTriggerType,omitempty"`
	// UpdateTriggerEndpoint - The endpoint URL for receiving update triggers.
	UpdateTriggerEndpoint *string `json:"updateTriggerEndpoint,omitempty"`
	// UpdateTriggerPayloadType - Type of Payload body for Base image update triggers. Possible values include: 'UpdateTriggerPayloadTypeDefault', 'UpdateTriggerPayloadTypeToken'
	UpdateTriggerPayloadType UpdateTriggerPayloadType `json:"updateTriggerPayloadType,omitempty"`
	// Status - The current status of trigger. Possible values include: 'TriggerStatusEnabled', 'TriggerStatusDisabled'
	Status TriggerStatus `json:"status,omitempty"`
	// Name - The name of the trigger.
	Name *string `json:"name,omitempty"`
}

BaseImageTriggerUpdateParameters the properties for updating base image dependency trigger.

type BasicRunRequest

type BasicRunRequest interface {
	AsDockerBuildRequest() (*DockerBuildRequest, bool)
	AsFileTaskRunRequest() (*FileTaskRunRequest, bool)
	AsTaskRunRequest() (*TaskRunRequest, bool)
	AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)
	AsRunRequest() (*RunRequest, bool)
}

BasicRunRequest the request parameters for scheduling a run.

type BasicTaskStepProperties

type BasicTaskStepProperties interface {
	AsDockerBuildStep() (*DockerBuildStep, bool)
	AsFileTaskStep() (*FileTaskStep, bool)
	AsEncodedTaskStep() (*EncodedTaskStep, bool)
	AsTaskStepProperties() (*TaskStepProperties, bool)
}

BasicTaskStepProperties base properties for any task step.

type BasicTaskStepUpdateParameters

type BasicTaskStepUpdateParameters interface {
	AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)
	AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)
	AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)
	AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)
}

BasicTaskStepUpdateParameters base properties for updating any task step.

type CallbackConfig

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

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

MarshalJSON is the custom marshaler for CallbackConfig.

type ConnectionStatus

type ConnectionStatus string

ConnectionStatus enumerates the values for connection status.

const (
	// Approved ...
	Approved ConnectionStatus = "Approved"
	// Disconnected ...
	Disconnected ConnectionStatus = "Disconnected"
	// Pending ...
	Pending ConnectionStatus = "Pending"
	// Rejected ...
	Rejected ConnectionStatus = "Rejected"
)

func PossibleConnectionStatusValues

func PossibleConnectionStatusValues() []ConnectionStatus

PossibleConnectionStatusValues returns an array of possible values for the ConnectionStatus const type.

type CreatedByType

type CreatedByType string

CreatedByType enumerates the values for created by type.

const (
	// Application ...
	Application CreatedByType = "Application"
	// Key ...
	Key CreatedByType = "Key"
	// ManagedIdentity ...
	ManagedIdentity CreatedByType = "ManagedIdentity"
	// User ...
	User CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type Credentials

type Credentials struct {
	// SourceRegistry - Describes the credential parameters for accessing the source registry.
	SourceRegistry *SourceRegistryCredentials `json:"sourceRegistry,omitempty"`
	// CustomRegistries - Describes the credential parameters for accessing other custom registries. The key
	// for the dictionary item will be the registry login server (myregistry.azurecr.io) and
	// the value of the item will be the registry credentials for accessing the registry.
	CustomRegistries map[string]*CustomRegistryCredentials `json:"customRegistries"`
}

Credentials the parameters that describes a set of credentials that will be used when a run is invoked.

func (Credentials) MarshalJSON

func (c Credentials) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Credentials.

type CustomRegistryCredentials

type CustomRegistryCredentials struct {
	// UserName - The username for logging into the custom registry.
	UserName *SecretObject `json:"userName,omitempty"`
	// Password - The password for logging into the custom registry. The password is a secret
	// object that allows multiple ways of providing the value for it.
	Password *SecretObject `json:"password,omitempty"`
	// Identity - Indicates the managed identity assigned to the custom credential. If a user-assigned identity
	// this value is the Client ID. If a system-assigned identity, the value will be `system`. In
	// the case of a system-assigned identity, the Client ID will be determined by the runner. This
	// identity may be used to authenticate to key vault to retrieve credentials or it may be the only
	// source of authentication used for accessing the registry.
	Identity *string `json:"identity,omitempty"`
}

CustomRegistryCredentials describes the credentials that will be used to access a custom registry during a run.

type DefaultAction

type DefaultAction string

DefaultAction enumerates the values for default action.

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

func PossibleDefaultActionValues

func PossibleDefaultActionValues() []DefaultAction

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

type DockerBuildRequest

type DockerBuildRequest struct {
	// 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 location.
	DockerFilePath *string `json:"dockerFilePath,omitempty"`
	// Target - The name of the target build stage for the docker build.
	Target *string `json:"target,omitempty"`
	// Arguments - The collection of override arguments to be used when executing the run.
	Arguments *[]Argument `json:"arguments,omitempty"`
	// Timeout - Run timeout in seconds.
	Timeout *int32 `json:"timeout,omitempty"`
	// Platform - The platform properties against which the run has to happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// AgentConfiguration - The machine configuration of the run agent.
	AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
	// SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
	// If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
	SourceLocation *string `json:"sourceLocation,omitempty"`
	// Credentials - The properties that describes a set of credentials that will be used when this run is invoked.
	Credentials *Credentials `json:"credentials,omitempty"`
	// IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
	// AgentPoolName - The dedicated agent pool for the run.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
	// LogTemplate - The template that describes the repository and tag information for run log artifact.
	LogTemplate *string `json:"logTemplate,omitempty"`
	// Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
	Type Type `json:"type,omitempty"`
}

DockerBuildRequest the parameters for a docker quick build.

func (DockerBuildRequest) AsBasicRunRequest

func (dbr DockerBuildRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsDockerBuildRequest

func (dbr DockerBuildRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsEncodedTaskRunRequest

func (dbr DockerBuildRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsFileTaskRunRequest

func (dbr DockerBuildRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsRunRequest

func (dbr DockerBuildRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsTaskRunRequest

func (dbr DockerBuildRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) MarshalJSON

func (dbr DockerBuildRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DockerBuildRequest.

type DockerBuildStep

type DockerBuildStep struct {
	// 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 context.
	DockerFilePath *string `json:"dockerFilePath,omitempty"`
	// Target - The name of the target build stage for the docker build.
	Target *string `json:"target,omitempty"`
	// Arguments - The collection of override arguments to be used when executing this build step.
	Arguments *[]Argument `json:"arguments,omitempty"`
	// BaseImageDependencies - READ-ONLY; List of base image dependencies for a step.
	BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
	// ContextPath - The URL(absolute or relative) of the source context for the task step.
	ContextPath *string `json:"contextPath,omitempty"`
	// ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
	ContextAccessToken *string `json:"contextAccessToken,omitempty"`
	// Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask'
	Type TypeBasicTaskStepProperties `json:"type,omitempty"`
}

DockerBuildStep the Docker build step.

func (DockerBuildStep) AsBasicTaskStepProperties

func (dbs DockerBuildStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)

AsBasicTaskStepProperties is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsDockerBuildStep

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

AsDockerBuildStep is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsEncodedTaskStep

func (dbs DockerBuildStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)

AsEncodedTaskStep is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsFileTaskStep

func (dbs DockerBuildStep) AsFileTaskStep() (*FileTaskStep, bool)

AsFileTaskStep is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsTaskStepProperties

func (dbs DockerBuildStep) AsTaskStepProperties() (*TaskStepProperties, bool)

AsTaskStepProperties is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) MarshalJSON

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

MarshalJSON is the custom marshaler for DockerBuildStep.

type DockerBuildStepUpdateParameters

type DockerBuildStepUpdateParameters struct {
	// 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 context.
	DockerFilePath *string `json:"dockerFilePath,omitempty"`
	// Arguments - The collection of override arguments to be used when executing this build step.
	Arguments *[]Argument `json:"arguments,omitempty"`
	// Target - The name of the target build stage for the docker build.
	Target *string `json:"target,omitempty"`
	// ContextPath - The URL(absolute or relative) of the source context for the task step.
	ContextPath *string `json:"contextPath,omitempty"`
	// ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
	ContextAccessToken *string `json:"contextAccessToken,omitempty"`
	// Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask'
	Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"`
}

DockerBuildStepUpdateParameters the properties for updating a docker build step.

func (DockerBuildStepUpdateParameters) AsBasicTaskStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)

AsBasicTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsDockerBuildStepUpdateParameters

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

AsDockerBuildStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsEncodedTaskStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)

AsEncodedTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsFileTaskStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)

AsFileTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsTaskStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)

AsTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for DockerBuildStepUpdateParameters.

type EncodedTaskRunRequest

type EncodedTaskRunRequest struct {
	// EncodedTaskContent - Base64 encoded value of the template/definition file content.
	EncodedTaskContent *string `json:"encodedTaskContent,omitempty"`
	// EncodedValuesContent - Base64 encoded value of the parameters/values file content.
	EncodedValuesContent *string `json:"encodedValuesContent,omitempty"`
	// Values - The collection of overridable values that can be passed when running a task.
	Values *[]SetValue `json:"values,omitempty"`
	// Timeout - Run timeout in seconds.
	Timeout *int32 `json:"timeout,omitempty"`
	// Platform - The platform properties against which the run has to happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// AgentConfiguration - The machine configuration of the run agent.
	AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
	// SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
	// If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
	SourceLocation *string `json:"sourceLocation,omitempty"`
	// Credentials - The properties that describes a set of credentials that will be used when this run is invoked.
	Credentials *Credentials `json:"credentials,omitempty"`
	// IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
	// AgentPoolName - The dedicated agent pool for the run.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
	// LogTemplate - The template that describes the repository and tag information for run log artifact.
	LogTemplate *string `json:"logTemplate,omitempty"`
	// Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
	Type Type `json:"type,omitempty"`
}

EncodedTaskRunRequest the parameters for a quick task run request.

func (EncodedTaskRunRequest) AsBasicRunRequest

func (etrr EncodedTaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsDockerBuildRequest

func (etrr EncodedTaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsEncodedTaskRunRequest

func (etrr EncodedTaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsFileTaskRunRequest

func (etrr EncodedTaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsRunRequest

func (etrr EncodedTaskRunRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsTaskRunRequest

func (etrr EncodedTaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) MarshalJSON

func (etrr EncodedTaskRunRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncodedTaskRunRequest.

type EncodedTaskStep

type EncodedTaskStep struct {
	// EncodedTaskContent - Base64 encoded value of the template/definition file content.
	EncodedTaskContent *string `json:"encodedTaskContent,omitempty"`
	// EncodedValuesContent - Base64 encoded value of the parameters/values file content.
	EncodedValuesContent *string `json:"encodedValuesContent,omitempty"`
	// Values - The collection of overridable values that can be passed when running a task.
	Values *[]SetValue `json:"values,omitempty"`
	// BaseImageDependencies - READ-ONLY; List of base image dependencies for a step.
	BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
	// ContextPath - The URL(absolute or relative) of the source context for the task step.
	ContextPath *string `json:"contextPath,omitempty"`
	// ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
	ContextAccessToken *string `json:"contextAccessToken,omitempty"`
	// Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask'
	Type TypeBasicTaskStepProperties `json:"type,omitempty"`
}

EncodedTaskStep the properties of a encoded task step.

func (EncodedTaskStep) AsBasicTaskStepProperties

func (ets EncodedTaskStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)

AsBasicTaskStepProperties is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) AsDockerBuildStep

func (ets EncodedTaskStep) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) AsEncodedTaskStep

func (ets EncodedTaskStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)

AsEncodedTaskStep is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) AsFileTaskStep

func (ets EncodedTaskStep) AsFileTaskStep() (*FileTaskStep, bool)

AsFileTaskStep is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) AsTaskStepProperties

func (ets EncodedTaskStep) AsTaskStepProperties() (*TaskStepProperties, bool)

AsTaskStepProperties is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) MarshalJSON

func (ets EncodedTaskStep) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncodedTaskStep.

type EncodedTaskStepUpdateParameters

type EncodedTaskStepUpdateParameters struct {
	// EncodedTaskContent - Base64 encoded value of the template/definition file content.
	EncodedTaskContent *string `json:"encodedTaskContent,omitempty"`
	// EncodedValuesContent - Base64 encoded value of the parameters/values file content.
	EncodedValuesContent *string `json:"encodedValuesContent,omitempty"`
	// Values - The collection of overridable values that can be passed when running a task.
	Values *[]SetValue `json:"values,omitempty"`
	// ContextPath - The URL(absolute or relative) of the source context for the task step.
	ContextPath *string `json:"contextPath,omitempty"`
	// ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
	ContextAccessToken *string `json:"contextAccessToken,omitempty"`
	// Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask'
	Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"`
}

EncodedTaskStepUpdateParameters the properties for updating encoded task step.

func (EncodedTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)

AsBasicTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)

AsEncodedTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) AsFileTaskStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)

AsFileTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) AsTaskStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)

AsTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) MarshalJSON

func (etsup EncodedTaskStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncodedTaskStepUpdateParameters.

type EncryptionProperty

type EncryptionProperty struct {
	// Status - Indicates whether or not the encryption is enabled for container registry. Possible values include: 'Enabled', 'Disabled'
	Status EncryptionStatus `json:"status,omitempty"`
	// KeyVaultProperties - Key vault properties.
	KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"`
}

EncryptionProperty ...

type EncryptionStatus

type EncryptionStatus string

EncryptionStatus enumerates the values for encryption status.

const (
	// Disabled ...
	Disabled EncryptionStatus = "disabled"
	// Enabled ...
	Enabled EncryptionStatus = "enabled"
)

func PossibleEncryptionStatusValues

func PossibleEncryptionStatusValues() []EncryptionStatus

PossibleEncryptionStatusValues returns an array of possible values for the EncryptionStatus const type.

type ErrorResponse

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

ErrorResponse an error response from the Azure Container Registry service.

type ErrorResponseBody

type ErrorResponseBody struct {
	// Code - error code.
	Code *string `json:"code,omitempty"`
	// Message - error message.
	Message *string `json:"message,omitempty"`
	// Target - target of the particular error.
	Target *string `json:"target,omitempty"`
	// Details - an array of additional nested error response info objects, as described by this contract.
	Details *InnerErrorDescription `json:"details,omitempty"`
}

ErrorResponseBody an error response from the Azure Container Registry service.

type Event

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

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

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

EventInfo the basic information of an event.

type EventListResult

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

func (elr EventListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EventListResultIterator

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

EventListResultIterator provides access to a complete listing of Event values.

func NewEventListResultIterator

func NewEventListResultIterator(page EventListResultPage) EventListResultIterator

Creates a new instance of the EventListResultIterator type.

func (*EventListResultIterator) Next

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

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

func (iter EventListResultIterator) NotDone() bool

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

func (EventListResultIterator) Response

func (iter EventListResultIterator) Response() EventListResult

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

func (EventListResultIterator) Value

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

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

EventListResultPage contains a page of Event values.

func NewEventListResultPage

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

Creates a new instance of the EventListResultPage type.

func (*EventListResultPage) Next

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

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

func (page EventListResultPage) NotDone() bool

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

func (EventListResultPage) Response

func (page EventListResultPage) Response() EventListResult

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

func (EventListResultPage) Values

func (page EventListResultPage) Values() []Event

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

type EventRequestMessage

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

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

MarshalJSON is the custom marshaler for EventRequestMessage.

type EventResponseMessage

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

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

MarshalJSON is the custom marshaler for EventResponseMessage.

type ExportPipeline

type ExportPipeline struct {
	autorest.Response `json:"-"`
	// Location - The location of the export pipeline.
	Location *string `json:"location,omitempty"`
	// Identity - The identity of the export pipeline.
	Identity *IdentityProperties `json:"identity,omitempty"`
	// ExportPipelineProperties - The properties of the export pipeline.
	*ExportPipelineProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

ExportPipeline an object that represents an export pipeline for a container registry.

func (ExportPipeline) MarshalJSON

func (ep ExportPipeline) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExportPipeline.

func (*ExportPipeline) UnmarshalJSON

func (ep *ExportPipeline) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExportPipeline struct.

type ExportPipelineListResult

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

ExportPipelineListResult the result of a request to list export pipelines for a container registry.

func (ExportPipelineListResult) IsEmpty

func (eplr ExportPipelineListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ExportPipelineListResultIterator

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

ExportPipelineListResultIterator provides access to a complete listing of ExportPipeline values.

func NewExportPipelineListResultIterator

func NewExportPipelineListResultIterator(page ExportPipelineListResultPage) ExportPipelineListResultIterator

Creates a new instance of the ExportPipelineListResultIterator type.

func (*ExportPipelineListResultIterator) Next

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 (*ExportPipelineListResultIterator) NextWithContext

func (iter *ExportPipelineListResultIterator) 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 (ExportPipelineListResultIterator) NotDone

func (iter ExportPipelineListResultIterator) NotDone() bool

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

func (ExportPipelineListResultIterator) Response

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

func (ExportPipelineListResultIterator) Value

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

type ExportPipelineListResultPage

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

ExportPipelineListResultPage contains a page of ExportPipeline values.

func NewExportPipelineListResultPage

Creates a new instance of the ExportPipelineListResultPage type.

func (*ExportPipelineListResultPage) Next

func (page *ExportPipelineListResultPage) 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 (*ExportPipelineListResultPage) NextWithContext

func (page *ExportPipelineListResultPage) 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 (ExportPipelineListResultPage) NotDone

func (page ExportPipelineListResultPage) NotDone() bool

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

func (ExportPipelineListResultPage) Response

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

func (ExportPipelineListResultPage) Values

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

type ExportPipelineProperties

type ExportPipelineProperties struct {
	// Target - The target properties of the export pipeline.
	Target *ExportPipelineTargetProperties `json:"target,omitempty"`
	// Options - The list of all options configured for the pipeline.
	Options *[]PipelineOptions `json:"options,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning state of the pipeline at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

ExportPipelineProperties the properties of an export pipeline.

func (ExportPipelineProperties) MarshalJSON

func (epp ExportPipelineProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExportPipelineProperties.

type ExportPipelineTargetProperties

type ExportPipelineTargetProperties struct {
	// Type - The type of target for the export pipeline.
	Type *string `json:"type,omitempty"`
	// URI - The target uri of the export pipeline.
	// When 'AzureStorageBlob': "https://accountName.blob.core.windows.net/containerName/blobName"
	// When 'AzureStorageBlobContainer':  "https://accountName.blob.core.windows.net/containerName"
	URI *string `json:"uri,omitempty"`
	// KeyVaultURI - They key vault secret uri to obtain the target storage SAS token.
	KeyVaultURI *string `json:"keyVaultUri,omitempty"`
}

ExportPipelineTargetProperties the properties of the export pipeline target.

type ExportPipelinesClient

type ExportPipelinesClient struct {
	BaseClient
}

ExportPipelinesClient is the client for the ExportPipelines methods of the Containerregistry service.

func NewExportPipelinesClient

func NewExportPipelinesClient(subscriptionID string) ExportPipelinesClient

NewExportPipelinesClient creates an instance of the ExportPipelinesClient client.

func NewExportPipelinesClientWithBaseURI

func NewExportPipelinesClientWithBaseURI(baseURI string, subscriptionID string) ExportPipelinesClient

NewExportPipelinesClientWithBaseURI creates an instance of the ExportPipelinesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ExportPipelinesClient) Create

func (client ExportPipelinesClient) Create(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, exportPipelineCreateParameters ExportPipeline) (result ExportPipelinesCreateFuture, err error)

Create creates an export pipeline 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. exportPipelineName - the name of the export pipeline. exportPipelineCreateParameters - the parameters for creating an export pipeline.

func (ExportPipelinesClient) CreatePreparer

func (client ExportPipelinesClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, exportPipelineCreateParameters ExportPipeline) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ExportPipelinesClient) CreateResponder

func (client ExportPipelinesClient) CreateResponder(resp *http.Response) (result ExportPipeline, err error)

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

func (ExportPipelinesClient) CreateSender

func (client ExportPipelinesClient) CreateSender(req *http.Request) (future ExportPipelinesCreateFuture, err error)

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

func (ExportPipelinesClient) Delete

func (client ExportPipelinesClient) Delete(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string) (result ExportPipelinesDeleteFuture, err error)

Delete deletes an export pipeline 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. exportPipelineName - the name of the export pipeline.

func (ExportPipelinesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ExportPipelinesClient) DeleteResponder

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

func (client ExportPipelinesClient) DeleteSender(req *http.Request) (future ExportPipelinesDeleteFuture, err error)

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

func (ExportPipelinesClient) Get

func (client ExportPipelinesClient) Get(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string) (result ExportPipeline, err error)

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

func (ExportPipelinesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ExportPipelinesClient) GetResponder

func (client ExportPipelinesClient) GetResponder(resp *http.Response) (result ExportPipeline, err error)

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

func (ExportPipelinesClient) GetSender

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

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

List lists all export pipelines 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 (ExportPipelinesClient) ListComplete

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

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

func (ExportPipelinesClient) ListPreparer

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

ListPreparer prepares the List request.

func (ExportPipelinesClient) ListResponder

func (client ExportPipelinesClient) ListResponder(resp *http.Response) (result ExportPipelineListResult, err error)

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

func (ExportPipelinesClient) ListSender

func (client ExportPipelinesClient) 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 ExportPipelinesCreateFuture

type ExportPipelinesCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ExportPipelinesClient) (ExportPipeline, error)
}

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

func (*ExportPipelinesCreateFuture) UnmarshalJSON

func (future *ExportPipelinesCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ExportPipelinesDeleteFuture

type ExportPipelinesDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ExportPipelinesClient) (autorest.Response, error)
}

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

func (*ExportPipelinesDeleteFuture) UnmarshalJSON

func (future *ExportPipelinesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FileTaskRunRequest

type FileTaskRunRequest struct {
	// TaskFilePath - The template/definition file path relative to the source.
	TaskFilePath *string `json:"taskFilePath,omitempty"`
	// ValuesFilePath - The values/parameters file path relative to the source.
	ValuesFilePath *string `json:"valuesFilePath,omitempty"`
	// Values - The collection of overridable values that can be passed when running a task.
	Values *[]SetValue `json:"values,omitempty"`
	// Timeout - Run timeout in seconds.
	Timeout *int32 `json:"timeout,omitempty"`
	// Platform - The platform properties against which the run has to happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// AgentConfiguration - The machine configuration of the run agent.
	AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
	// SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
	// If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
	SourceLocation *string `json:"sourceLocation,omitempty"`
	// Credentials - The properties that describes a set of credentials that will be used when this run is invoked.
	Credentials *Credentials `json:"credentials,omitempty"`
	// IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
	// AgentPoolName - The dedicated agent pool for the run.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
	// LogTemplate - The template that describes the repository and tag information for run log artifact.
	LogTemplate *string `json:"logTemplate,omitempty"`
	// Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
	Type Type `json:"type,omitempty"`
}

FileTaskRunRequest the request parameters for a scheduling run against a task file.

func (FileTaskRunRequest) AsBasicRunRequest

func (ftrr FileTaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsDockerBuildRequest

func (ftrr FileTaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsEncodedTaskRunRequest

func (ftrr FileTaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsFileTaskRunRequest

func (ftrr FileTaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsRunRequest

func (ftrr FileTaskRunRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsTaskRunRequest

func (ftrr FileTaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) MarshalJSON

func (ftrr FileTaskRunRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileTaskRunRequest.

type FileTaskStep

type FileTaskStep struct {
	// TaskFilePath - The task template/definition file path relative to the source context.
	TaskFilePath *string `json:"taskFilePath,omitempty"`
	// ValuesFilePath - The task values/parameters file path relative to the source context.
	ValuesFilePath *string `json:"valuesFilePath,omitempty"`
	// Values - The collection of overridable values that can be passed when running a task.
	Values *[]SetValue `json:"values,omitempty"`
	// BaseImageDependencies - READ-ONLY; List of base image dependencies for a step.
	BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
	// ContextPath - The URL(absolute or relative) of the source context for the task step.
	ContextPath *string `json:"contextPath,omitempty"`
	// ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
	ContextAccessToken *string `json:"contextAccessToken,omitempty"`
	// Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask'
	Type TypeBasicTaskStepProperties `json:"type,omitempty"`
}

FileTaskStep the properties of a task step.

func (FileTaskStep) AsBasicTaskStepProperties

func (fts FileTaskStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)

AsBasicTaskStepProperties is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) AsDockerBuildStep

func (fts FileTaskStep) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) AsEncodedTaskStep

func (fts FileTaskStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)

AsEncodedTaskStep is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) AsFileTaskStep

func (fts FileTaskStep) AsFileTaskStep() (*FileTaskStep, bool)

AsFileTaskStep is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) AsTaskStepProperties

func (fts FileTaskStep) AsTaskStepProperties() (*TaskStepProperties, bool)

AsTaskStepProperties is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) MarshalJSON

func (fts FileTaskStep) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileTaskStep.

type FileTaskStepUpdateParameters

type FileTaskStepUpdateParameters struct {
	// TaskFilePath - The task template/definition file path relative to the source context.
	TaskFilePath *string `json:"taskFilePath,omitempty"`
	// ValuesFilePath - The values/parameters file path relative to the source context.
	ValuesFilePath *string `json:"valuesFilePath,omitempty"`
	// Values - The collection of overridable values that can be passed when running a task.
	Values *[]SetValue `json:"values,omitempty"`
	// ContextPath - The URL(absolute or relative) of the source context for the task step.
	ContextPath *string `json:"contextPath,omitempty"`
	// ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
	ContextAccessToken *string `json:"contextAccessToken,omitempty"`
	// Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask'
	Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"`
}

FileTaskStepUpdateParameters the properties of updating a task step.

func (FileTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)

AsBasicTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)

AsEncodedTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) AsFileTaskStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)

AsFileTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) AsTaskStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)

AsTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) MarshalJSON

func (ftsup FileTaskStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileTaskStepUpdateParameters.

type GenerateCredentialsParameters

type GenerateCredentialsParameters struct {
	// TokenID - The resource ID of the token for which credentials have to be generated.
	TokenID *string `json:"tokenId,omitempty"`
	// Expiry - The expiry date of the generated credentials after which the credentials become invalid.
	Expiry *date.Time `json:"expiry,omitempty"`
	// Name - Specifies name of the password which should be regenerated if any -- password1 or password2. Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
	Name TokenPasswordName `json:"name,omitempty"`
}

GenerateCredentialsParameters the parameters used to generate credentials for a specified token or user of a container registry.

type GenerateCredentialsResult

type GenerateCredentialsResult 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 *[]TokenPassword `json:"passwords,omitempty"`
}

GenerateCredentialsResult the response from the GenerateCredentials operation.

type IPRule

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 IdentityProperties

type IdentityProperties struct {
	// PrincipalID - The principal ID of resource identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty"`
	// Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned', 'ResourceIdentityTypeNone'
	Type ResourceIdentityType `json:"type,omitempty"`
	// UserAssignedIdentities - The list of user identities associated with the resource. The user identity
	// dictionary key references will be ARM resource ids in the form:
	// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
	//     providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
	UserAssignedIdentities map[string]*UserIdentityProperties `json:"userAssignedIdentities"`
}

IdentityProperties managed identity for the resource.

func (IdentityProperties) MarshalJSON

func (IP IdentityProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IdentityProperties.

type ImageDescriptor

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

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

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

type ImportMode string

ImportMode enumerates the values for import mode.

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

func PossibleImportModeValues

func PossibleImportModeValues() []ImportMode

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

type ImportPipeline

type ImportPipeline struct {
	autorest.Response `json:"-"`
	// Location - The location of the import pipeline.
	Location *string `json:"location,omitempty"`
	// Identity - The identity of the import pipeline.
	Identity *IdentityProperties `json:"identity,omitempty"`
	// ImportPipelineProperties - The properties of the import pipeline.
	*ImportPipelineProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

ImportPipeline an object that represents an import pipeline for a container registry.

func (ImportPipeline) MarshalJSON

func (IP ImportPipeline) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportPipeline.

func (*ImportPipeline) UnmarshalJSON

func (IP *ImportPipeline) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImportPipeline struct.

type ImportPipelineListResult

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

ImportPipelineListResult the result of a request to list import pipelines for a container registry.

func (ImportPipelineListResult) IsEmpty

func (iplr ImportPipelineListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ImportPipelineListResultIterator

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

ImportPipelineListResultIterator provides access to a complete listing of ImportPipeline values.

func NewImportPipelineListResultIterator

func NewImportPipelineListResultIterator(page ImportPipelineListResultPage) ImportPipelineListResultIterator

Creates a new instance of the ImportPipelineListResultIterator type.

func (*ImportPipelineListResultIterator) Next

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 (*ImportPipelineListResultIterator) NextWithContext

func (iter *ImportPipelineListResultIterator) 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 (ImportPipelineListResultIterator) NotDone

func (iter ImportPipelineListResultIterator) NotDone() bool

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

func (ImportPipelineListResultIterator) Response

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

func (ImportPipelineListResultIterator) Value

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

type ImportPipelineListResultPage

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

ImportPipelineListResultPage contains a page of ImportPipeline values.

func NewImportPipelineListResultPage

Creates a new instance of the ImportPipelineListResultPage type.

func (*ImportPipelineListResultPage) Next

func (page *ImportPipelineListResultPage) 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 (*ImportPipelineListResultPage) NextWithContext

func (page *ImportPipelineListResultPage) 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 (ImportPipelineListResultPage) NotDone

func (page ImportPipelineListResultPage) NotDone() bool

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

func (ImportPipelineListResultPage) Response

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

func (ImportPipelineListResultPage) Values

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

type ImportPipelineProperties

type ImportPipelineProperties struct {
	// Source - The source properties of the import pipeline.
	Source *ImportPipelineSourceProperties `json:"source,omitempty"`
	// Trigger - The properties that describe the trigger of the import pipeline.
	Trigger *PipelineTriggerProperties `json:"trigger,omitempty"`
	// Options - The list of all options configured for the pipeline.
	Options *[]PipelineOptions `json:"options,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning state of the pipeline at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

ImportPipelineProperties the properties of an import pipeline.

func (ImportPipelineProperties) MarshalJSON

func (ipp ImportPipelineProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportPipelineProperties.

type ImportPipelineSourceProperties

type ImportPipelineSourceProperties struct {
	// Type - The type of source for the import pipeline. Possible values include: 'AzureStorageBlobContainer'
	Type PipelineSourceType `json:"type,omitempty"`
	// URI - The source uri of the import pipeline.
	// When 'AzureStorageBlob': "https://accountName.blob.core.windows.net/containerName/blobName"
	// When 'AzureStorageBlobContainer': "https://accountName.blob.core.windows.net/containerName"
	URI *string `json:"uri,omitempty"`
	// KeyVaultURI - They key vault secret uri to obtain the source storage SAS token.
	KeyVaultURI *string `json:"keyVaultUri,omitempty"`
}

ImportPipelineSourceProperties the properties of the import pipeline source.

type ImportPipelinesClient

type ImportPipelinesClient struct {
	BaseClient
}

ImportPipelinesClient is the client for the ImportPipelines methods of the Containerregistry service.

func NewImportPipelinesClient

func NewImportPipelinesClient(subscriptionID string) ImportPipelinesClient

NewImportPipelinesClient creates an instance of the ImportPipelinesClient client.

func NewImportPipelinesClientWithBaseURI

func NewImportPipelinesClientWithBaseURI(baseURI string, subscriptionID string) ImportPipelinesClient

NewImportPipelinesClientWithBaseURI creates an instance of the ImportPipelinesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ImportPipelinesClient) Create

func (client ImportPipelinesClient) Create(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, importPipelineCreateParameters ImportPipeline) (result ImportPipelinesCreateFuture, err error)

Create creates an import pipeline 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. importPipelineName - the name of the import pipeline. importPipelineCreateParameters - the parameters for creating an import pipeline.

func (ImportPipelinesClient) CreatePreparer

func (client ImportPipelinesClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, importPipelineCreateParameters ImportPipeline) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ImportPipelinesClient) CreateResponder

func (client ImportPipelinesClient) CreateResponder(resp *http.Response) (result ImportPipeline, err error)

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

func (ImportPipelinesClient) CreateSender

func (client ImportPipelinesClient) CreateSender(req *http.Request) (future ImportPipelinesCreateFuture, err error)

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

func (ImportPipelinesClient) Delete

func (client ImportPipelinesClient) Delete(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string) (result ImportPipelinesDeleteFuture, err error)

Delete deletes an import pipeline 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. importPipelineName - the name of the import pipeline.

func (ImportPipelinesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ImportPipelinesClient) DeleteResponder

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

func (client ImportPipelinesClient) DeleteSender(req *http.Request) (future ImportPipelinesDeleteFuture, err error)

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

func (ImportPipelinesClient) Get

func (client ImportPipelinesClient) Get(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string) (result ImportPipeline, err error)

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

func (ImportPipelinesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ImportPipelinesClient) GetResponder

func (client ImportPipelinesClient) GetResponder(resp *http.Response) (result ImportPipeline, err error)

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

func (ImportPipelinesClient) GetSender

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

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

List lists all import pipelines 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 (ImportPipelinesClient) ListComplete

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

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

func (ImportPipelinesClient) ListPreparer

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

ListPreparer prepares the List request.

func (ImportPipelinesClient) ListResponder

func (client ImportPipelinesClient) ListResponder(resp *http.Response) (result ImportPipelineListResult, err error)

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

func (ImportPipelinesClient) ListSender

func (client ImportPipelinesClient) 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 ImportPipelinesCreateFuture

type ImportPipelinesCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ImportPipelinesClient) (ImportPipeline, error)
}

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

func (*ImportPipelinesCreateFuture) UnmarshalJSON

func (future *ImportPipelinesCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ImportPipelinesDeleteFuture

type ImportPipelinesDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ImportPipelinesClient) (autorest.Response, error)
}

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

func (*ImportPipelinesDeleteFuture) UnmarshalJSON

func (future *ImportPipelinesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ImportSource

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

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 InnerErrorDescription

type InnerErrorDescription struct {
	// Code - error code.
	Code *string `json:"code,omitempty"`
	// Message - error message.
	Message *string `json:"message,omitempty"`
	// Target - target of the particular error.
	Target *string `json:"target,omitempty"`
}

InnerErrorDescription inner error.

type KeyVaultProperties

type KeyVaultProperties struct {
	// KeyIdentifier - Key vault uri to access the encryption key.
	KeyIdentifier *string `json:"keyIdentifier,omitempty"`
	// VersionedKeyIdentifier - READ-ONLY; The fully qualified key identifier that includes the version of the key that is actually used for encryption.
	VersionedKeyIdentifier *string `json:"versionedKeyIdentifier,omitempty"`
	// Identity - The client id of the identity which will be used to access key vault.
	Identity *string `json:"identity,omitempty"`
	// KeyRotationEnabled - READ-ONLY; Auto key rotation status for a CMK enabled registry.
	KeyRotationEnabled *bool `json:"keyRotationEnabled,omitempty"`
	// LastKeyRotationTimestamp - READ-ONLY; Timestamp of the last successful key rotation.
	LastKeyRotationTimestamp *date.Time `json:"lastKeyRotationTimestamp,omitempty"`
}

KeyVaultProperties ...

func (KeyVaultProperties) MarshalJSON

func (kvp KeyVaultProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KeyVaultProperties.

type LastModifiedByType

type LastModifiedByType string

LastModifiedByType enumerates the values for last modified by type.

const (
	// LastModifiedByTypeApplication ...
	LastModifiedByTypeApplication LastModifiedByType = "Application"
	// LastModifiedByTypeKey ...
	LastModifiedByTypeKey LastModifiedByType = "Key"
	// LastModifiedByTypeManagedIdentity ...
	LastModifiedByTypeManagedIdentity LastModifiedByType = "ManagedIdentity"
	// LastModifiedByTypeUser ...
	LastModifiedByTypeUser LastModifiedByType = "User"
)

func PossibleLastModifiedByTypeValues

func PossibleLastModifiedByTypeValues() []LastModifiedByType

PossibleLastModifiedByTypeValues returns an array of possible values for the LastModifiedByType const type.

type NetworkRuleSet

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 OS

type OS string

OS enumerates the values for os.

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

func PossibleOSValues

func PossibleOSValues() []OS

PossibleOSValues returns an array of possible values for the OS const type.

type OperationDefinition

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

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

MarshalJSON is the custom marshaler for OperationDefinition.

func (*OperationDefinition) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for OperationDefinition struct.

type OperationDisplayDefinition

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

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

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of OperationDefinition values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

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

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

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of OperationDefinition values.

func NewOperationListResultPage

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

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

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

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

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

type OperationMetricSpecificationDefinition

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

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

OperationPropertiesDefinition the definition of Azure Monitoring properties.

type OperationServiceSpecificationDefinition

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

OperationServiceSpecificationDefinition the definition of Azure Monitoring list.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

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

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

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

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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 OverrideTaskStepProperties

type OverrideTaskStepProperties struct {
	// ContextPath - The source context against which run has to be queued.
	ContextPath *string `json:"contextPath,omitempty"`
	// File - The file against which run has to be queued.
	File *string `json:"file,omitempty"`
	// Arguments - Gets or sets the collection of override arguments to be used when
	// executing a build step.
	Arguments *[]Argument `json:"arguments,omitempty"`
	// Target - The name of the target build stage for the docker build.
	Target *string `json:"target,omitempty"`
	// Values - The collection of overridable values that can be passed when running a Task.
	Values *[]SetValue `json:"values,omitempty"`
	// UpdateTriggerToken - Base64 encoded update trigger token that will be attached with the base image trigger webhook.
	UpdateTriggerToken *string `json:"updateTriggerToken,omitempty"`
}

OverrideTaskStepProperties ...

type PasswordName

type PasswordName string

PasswordName enumerates the values for password name.

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

func PossiblePasswordNameValues

func PossiblePasswordNameValues() []PasswordName

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

type PipelineOptions

type PipelineOptions string

PipelineOptions enumerates the values for pipeline options.

const (
	// ContinueOnErrors ...
	ContinueOnErrors PipelineOptions = "ContinueOnErrors"
	// DeleteSourceBlobOnSuccess ...
	DeleteSourceBlobOnSuccess PipelineOptions = "DeleteSourceBlobOnSuccess"
	// OverwriteBlobs ...
	OverwriteBlobs PipelineOptions = "OverwriteBlobs"
	// OverwriteTags ...
	OverwriteTags PipelineOptions = "OverwriteTags"
)

func PossiblePipelineOptionsValues

func PossiblePipelineOptionsValues() []PipelineOptions

PossiblePipelineOptionsValues returns an array of possible values for the PipelineOptions const type.

type PipelineRun

type PipelineRun struct {
	autorest.Response `json:"-"`
	// PipelineRunProperties - The properties of a pipeline run.
	*PipelineRunProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

PipelineRun an object that represents a pipeline run for a container registry.

func (PipelineRun) MarshalJSON

func (pr PipelineRun) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PipelineRun.

func (*PipelineRun) UnmarshalJSON

func (pr *PipelineRun) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PipelineRun struct.

type PipelineRunListResult

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

PipelineRunListResult the result of a request to list pipeline runs for a container registry.

func (PipelineRunListResult) IsEmpty

func (prlr PipelineRunListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PipelineRunListResultIterator

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

PipelineRunListResultIterator provides access to a complete listing of PipelineRun values.

func NewPipelineRunListResultIterator

func NewPipelineRunListResultIterator(page PipelineRunListResultPage) PipelineRunListResultIterator

Creates a new instance of the PipelineRunListResultIterator type.

func (*PipelineRunListResultIterator) Next

func (iter *PipelineRunListResultIterator) 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 (*PipelineRunListResultIterator) NextWithContext

func (iter *PipelineRunListResultIterator) 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 (PipelineRunListResultIterator) NotDone

func (iter PipelineRunListResultIterator) NotDone() bool

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

func (PipelineRunListResultIterator) Response

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

func (PipelineRunListResultIterator) Value

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

type PipelineRunListResultPage

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

PipelineRunListResultPage contains a page of PipelineRun values.

func NewPipelineRunListResultPage

Creates a new instance of the PipelineRunListResultPage type.

func (*PipelineRunListResultPage) Next

func (page *PipelineRunListResultPage) 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 (*PipelineRunListResultPage) NextWithContext

func (page *PipelineRunListResultPage) 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 (PipelineRunListResultPage) NotDone

func (page PipelineRunListResultPage) NotDone() bool

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

func (PipelineRunListResultPage) Response

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

func (PipelineRunListResultPage) Values

func (page PipelineRunListResultPage) Values() []PipelineRun

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

type PipelineRunProperties

type PipelineRunProperties struct {
	// ProvisioningState - READ-ONLY; The provisioning state of a pipeline run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// Request - The request parameters for a pipeline run.
	Request *PipelineRunRequest `json:"request,omitempty"`
	// Response - READ-ONLY; The response of a pipeline run.
	Response *PipelineRunResponse `json:"response,omitempty"`
	// ForceUpdateTag - How the pipeline run should be forced to recreate even if the pipeline run configuration has not changed.
	ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
}

PipelineRunProperties the properties of a pipeline run.

func (PipelineRunProperties) MarshalJSON

func (prp PipelineRunProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PipelineRunProperties.

type PipelineRunRequest

type PipelineRunRequest struct {
	// PipelineResourceID - The resource ID of the pipeline to run.
	PipelineResourceID *string `json:"pipelineResourceId,omitempty"`
	// Artifacts - List of source artifacts to be transferred by the pipeline.
	// 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').
	Artifacts *[]string `json:"artifacts,omitempty"`
	// Source - The source properties of the pipeline run.
	Source *PipelineRunSourceProperties `json:"source,omitempty"`
	// Target - The target properties of the pipeline run.
	Target *PipelineRunTargetProperties `json:"target,omitempty"`
	// CatalogDigest - The digest of the tar used to transfer the artifacts.
	CatalogDigest *string `json:"catalogDigest,omitempty"`
}

PipelineRunRequest the request properties provided for a pipeline run.

type PipelineRunResponse

type PipelineRunResponse struct {
	// Status - The current status of the pipeline run.
	Status *string `json:"status,omitempty"`
	// ImportedArtifacts - The artifacts imported in the pipeline run.
	ImportedArtifacts *[]string `json:"importedArtifacts,omitempty"`
	// Progress - The current progress of the copy operation.
	Progress *ProgressProperties `json:"progress,omitempty"`
	// StartTime - The time the pipeline run started.
	StartTime *date.Time `json:"startTime,omitempty"`
	// FinishTime - The time the pipeline run finished.
	FinishTime *date.Time `json:"finishTime,omitempty"`
	// Source - The source of the pipeline run.
	Source *ImportPipelineSourceProperties `json:"source,omitempty"`
	// Target - The target of the pipeline run.
	Target *ExportPipelineTargetProperties `json:"target,omitempty"`
	// CatalogDigest - The digest of the tar used to transfer the artifacts.
	CatalogDigest *string `json:"catalogDigest,omitempty"`
	// Trigger - The trigger that caused the pipeline run.
	Trigger *PipelineTriggerDescriptor `json:"trigger,omitempty"`
	// PipelineRunErrorMessage - The detailed error message for the pipeline run in the case of failure.
	PipelineRunErrorMessage *string `json:"pipelineRunErrorMessage,omitempty"`
}

PipelineRunResponse the response properties returned for a pipeline run.

type PipelineRunSourceProperties

type PipelineRunSourceProperties struct {
	// Type - The type of the source. Possible values include: 'AzureStorageBlob'
	Type PipelineRunSourceType `json:"type,omitempty"`
	// Name - The name of the source.
	Name *string `json:"name,omitempty"`
}

PipelineRunSourceProperties ...

type PipelineRunSourceType

type PipelineRunSourceType string

PipelineRunSourceType enumerates the values for pipeline run source type.

const (
	// AzureStorageBlob ...
	AzureStorageBlob PipelineRunSourceType = "AzureStorageBlob"
)

func PossiblePipelineRunSourceTypeValues

func PossiblePipelineRunSourceTypeValues() []PipelineRunSourceType

PossiblePipelineRunSourceTypeValues returns an array of possible values for the PipelineRunSourceType const type.

type PipelineRunTargetProperties

type PipelineRunTargetProperties struct {
	// Type - The type of the target. Possible values include: 'PipelineRunTargetTypeAzureStorageBlob'
	Type PipelineRunTargetType `json:"type,omitempty"`
	// Name - The name of the target.
	Name *string `json:"name,omitempty"`
}

PipelineRunTargetProperties ...

type PipelineRunTargetType

type PipelineRunTargetType string

PipelineRunTargetType enumerates the values for pipeline run target type.

const (
	// PipelineRunTargetTypeAzureStorageBlob ...
	PipelineRunTargetTypeAzureStorageBlob PipelineRunTargetType = "AzureStorageBlob"
)

func PossiblePipelineRunTargetTypeValues

func PossiblePipelineRunTargetTypeValues() []PipelineRunTargetType

PossiblePipelineRunTargetTypeValues returns an array of possible values for the PipelineRunTargetType const type.

type PipelineRunsClient

type PipelineRunsClient struct {
	BaseClient
}

PipelineRunsClient is the client for the PipelineRuns methods of the Containerregistry service.

func NewPipelineRunsClient

func NewPipelineRunsClient(subscriptionID string) PipelineRunsClient

NewPipelineRunsClient creates an instance of the PipelineRunsClient client.

func NewPipelineRunsClientWithBaseURI

func NewPipelineRunsClientWithBaseURI(baseURI string, subscriptionID string) PipelineRunsClient

NewPipelineRunsClientWithBaseURI creates an instance of the PipelineRunsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PipelineRunsClient) Create

func (client PipelineRunsClient) Create(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, pipelineRunCreateParameters PipelineRun) (result PipelineRunsCreateFuture, err error)

Create creates a pipeline run 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. pipelineRunName - the name of the pipeline run. pipelineRunCreateParameters - the parameters for creating a pipeline run.

func (PipelineRunsClient) CreatePreparer

func (client PipelineRunsClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, pipelineRunCreateParameters PipelineRun) (*http.Request, error)

CreatePreparer prepares the Create request.

func (PipelineRunsClient) CreateResponder

func (client PipelineRunsClient) CreateResponder(resp *http.Response) (result PipelineRun, err error)

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

func (PipelineRunsClient) CreateSender

func (client PipelineRunsClient) CreateSender(req *http.Request) (future PipelineRunsCreateFuture, err error)

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

func (PipelineRunsClient) Delete

func (client PipelineRunsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string) (result PipelineRunsDeleteFuture, err error)

Delete deletes a pipeline run 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. pipelineRunName - the name of the pipeline run.

func (PipelineRunsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PipelineRunsClient) DeleteResponder

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

func (client PipelineRunsClient) DeleteSender(req *http.Request) (future PipelineRunsDeleteFuture, err error)

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

func (PipelineRunsClient) Get

func (client PipelineRunsClient) Get(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string) (result PipelineRun, err error)

Get gets the detailed information for a given pipeline run. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. pipelineRunName - the name of the pipeline run.

func (PipelineRunsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PipelineRunsClient) GetResponder

func (client PipelineRunsClient) GetResponder(resp *http.Response) (result PipelineRun, err error)

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

func (PipelineRunsClient) GetSender

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

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

List lists all the pipeline runs 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 (PipelineRunsClient) ListComplete

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

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

func (PipelineRunsClient) ListPreparer

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

ListPreparer prepares the List request.

func (PipelineRunsClient) ListResponder

func (client PipelineRunsClient) ListResponder(resp *http.Response) (result PipelineRunListResult, err error)

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

func (PipelineRunsClient) ListSender

func (client PipelineRunsClient) 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 PipelineRunsCreateFuture

type PipelineRunsCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(PipelineRunsClient) (PipelineRun, error)
}

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

func (*PipelineRunsCreateFuture) UnmarshalJSON

func (future *PipelineRunsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PipelineRunsDeleteFuture

type PipelineRunsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(PipelineRunsClient) (autorest.Response, error)
}

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

func (*PipelineRunsDeleteFuture) UnmarshalJSON

func (future *PipelineRunsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PipelineSourceTriggerDescriptor

type PipelineSourceTriggerDescriptor struct {
	// Timestamp - The timestamp when the source update happened.
	Timestamp *date.Time `json:"timestamp,omitempty"`
}

PipelineSourceTriggerDescriptor ...

type PipelineSourceTriggerProperties

type PipelineSourceTriggerProperties struct {
	// Status - The current status of the source trigger. Possible values include: 'TriggerStatusEnabled', 'TriggerStatusDisabled'
	Status TriggerStatus `json:"status,omitempty"`
}

PipelineSourceTriggerProperties ...

type PipelineSourceType

type PipelineSourceType string

PipelineSourceType enumerates the values for pipeline source type.

const (
	// AzureStorageBlobContainer ...
	AzureStorageBlobContainer PipelineSourceType = "AzureStorageBlobContainer"
)

func PossiblePipelineSourceTypeValues

func PossiblePipelineSourceTypeValues() []PipelineSourceType

PossiblePipelineSourceTypeValues returns an array of possible values for the PipelineSourceType const type.

type PipelineTriggerDescriptor

type PipelineTriggerDescriptor struct {
	// SourceTrigger - The source trigger that caused the pipeline run.
	SourceTrigger *PipelineSourceTriggerDescriptor `json:"sourceTrigger,omitempty"`
}

PipelineTriggerDescriptor ...

type PipelineTriggerProperties

type PipelineTriggerProperties struct {
	// SourceTrigger - The source trigger properties of the pipeline.
	SourceTrigger *PipelineSourceTriggerProperties `json:"sourceTrigger,omitempty"`
}

PipelineTriggerProperties ...

type PlatformProperties

type PlatformProperties struct {
	// Os - The operating system type required for the run. Possible values include: 'Windows', 'Linux'
	Os OS `json:"os,omitempty"`
	// Architecture - The OS architecture. Possible values include: 'Amd64', 'X86', 'ThreeEightSix', 'Arm', 'Arm64'
	Architecture Architecture `json:"architecture,omitempty"`
	// Variant - Variant of the CPU. Possible values include: 'V6', 'V7', 'V8'
	Variant Variant `json:"variant,omitempty"`
}

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

type PlatformUpdateParameters

type PlatformUpdateParameters struct {
	// Os - The operating system type required for the run. Possible values include: 'Windows', 'Linux'
	Os OS `json:"os,omitempty"`
	// Architecture - The OS architecture. Possible values include: 'Amd64', 'X86', 'ThreeEightSix', 'Arm', 'Arm64'
	Architecture Architecture `json:"architecture,omitempty"`
	// Variant - Variant of the CPU. Possible values include: 'V6', 'V7', 'V8'
	Variant Variant `json:"variant,omitempty"`
}

PlatformUpdateParameters the properties for updating the platform configuration.

type Policies

type Policies struct {
	// QuarantinePolicy - The quarantine policy for a container registry.
	QuarantinePolicy *QuarantinePolicy `json:"quarantinePolicy,omitempty"`
	// TrustPolicy - The content trust policy for a container registry.
	TrustPolicy *TrustPolicy `json:"trustPolicy,omitempty"`
	// RetentionPolicy - The retention policy for a container registry.
	RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}

Policies the policies for a container registry.

type PolicyStatus

type PolicyStatus string

PolicyStatus enumerates the values for policy status.

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

func PossiblePolicyStatusValues

func PossiblePolicyStatusValues() []PolicyStatus

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

type PrivateEndpoint

type PrivateEndpoint struct {
	// ID - This is private endpoint resource created with Microsoft.Network resource provider.
	ID *string `json:"id,omitempty"`
}

PrivateEndpoint the Private Endpoint resource.

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	autorest.Response `json:"-"`
	// PrivateEndpointConnectionProperties - The properties of a private endpoint connection.
	*PrivateEndpointConnectionProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

PrivateEndpointConnection an object that represents a private endpoint connection for a container registry.

func (PrivateEndpointConnection) MarshalJSON

func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpointConnection.

func (*PrivateEndpointConnection) UnmarshalJSON

func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.

type PrivateEndpointConnectionListResult

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

PrivateEndpointConnectionListResult the result of a request to list private endpoint connections for a container registry.

func (PrivateEndpointConnectionListResult) IsEmpty

func (peclr PrivateEndpointConnectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateEndpointConnectionListResultIterator

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

PrivateEndpointConnectionListResultIterator provides access to a complete listing of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultIterator

func NewPrivateEndpointConnectionListResultIterator(page PrivateEndpointConnectionListResultPage) PrivateEndpointConnectionListResultIterator

Creates a new instance of the PrivateEndpointConnectionListResultIterator type.

func (*PrivateEndpointConnectionListResultIterator) Next

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 (*PrivateEndpointConnectionListResultIterator) NextWithContext

func (iter *PrivateEndpointConnectionListResultIterator) 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 (PrivateEndpointConnectionListResultIterator) NotDone

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

func (PrivateEndpointConnectionListResultIterator) Response

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

func (PrivateEndpointConnectionListResultIterator) Value

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

type PrivateEndpointConnectionListResultPage

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

PrivateEndpointConnectionListResultPage contains a page of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultPage

Creates a new instance of the PrivateEndpointConnectionListResultPage type.

func (*PrivateEndpointConnectionListResultPage) Next

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 (*PrivateEndpointConnectionListResultPage) NextWithContext

func (page *PrivateEndpointConnectionListResultPage) 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 (PrivateEndpointConnectionListResultPage) NotDone

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

func (PrivateEndpointConnectionListResultPage) Response

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

func (PrivateEndpointConnectionListResultPage) Values

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

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	// PrivateEndpoint - The resource of private endpoint.
	PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"`
	// PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
	PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning state of private endpoint connection resource. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

PrivateEndpointConnectionProperties the properties of a private endpoint connection.

func (PrivateEndpointConnectionProperties) MarshalJSON

func (pecp PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpointConnectionProperties.

type PrivateEndpointConnectionsClient

type PrivateEndpointConnectionsClient struct {
	BaseClient
}

PrivateEndpointConnectionsClient is the client for the PrivateEndpointConnections methods of the Containerregistry service.

func NewPrivateEndpointConnectionsClient

func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.

func NewPrivateEndpointConnectionsClientWithBaseURI

func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PrivateEndpointConnectionsClient) CreateOrUpdate

func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error)

CreateOrUpdate update the state of specified private endpoint connection associated with the container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. privateEndpointConnectionName - the name of the private endpoint connection. privateEndpointConnection - the parameters for creating a private endpoint connection.

func (PrivateEndpointConnectionsClient) CreateOrUpdatePreparer

func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PrivateEndpointConnectionsClient) CreateOrUpdateResponder

func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (PrivateEndpointConnectionsClient) CreateOrUpdateSender

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

func (PrivateEndpointConnectionsClient) Delete

func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionsDeleteFuture, err error)

Delete deletes the specified private endpoint connection associated with the container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. privateEndpointConnectionName - the name of the private endpoint connection.

func (PrivateEndpointConnectionsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PrivateEndpointConnectionsClient) DeleteResponder

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

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

func (PrivateEndpointConnectionsClient) Get

func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)

Get get the specified private endpoint connection associated with the container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. privateEndpointConnectionName - the name of the private endpoint connection.

func (PrivateEndpointConnectionsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PrivateEndpointConnectionsClient) GetResponder

func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

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

func (PrivateEndpointConnectionsClient) GetSender

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

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

List list all private endpoint connections in 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 (PrivateEndpointConnectionsClient) ListComplete

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

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

func (PrivateEndpointConnectionsClient) ListPreparer

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

ListPreparer prepares the List request.

func (PrivateEndpointConnectionsClient) ListResponder

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

func (PrivateEndpointConnectionsClient) ListSender

func (client PrivateEndpointConnectionsClient) 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 PrivateEndpointConnectionsCreateOrUpdateFuture

type PrivateEndpointConnectionsCreateOrUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(PrivateEndpointConnectionsClient) (PrivateEndpointConnection, error)
}

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

func (*PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON

func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PrivateEndpointConnectionsDeleteFuture

type PrivateEndpointConnectionsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(PrivateEndpointConnectionsClient) (autorest.Response, error)
}

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

func (*PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON

func (future *PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PrivateLinkResource

type PrivateLinkResource struct {
	// Type - READ-ONLY; The resource type is private link resource.
	Type *string `json:"type,omitempty"`
	// ID - The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// PrivateLinkResourceProperties - A resource that supports private link capabilities.
	*PrivateLinkResourceProperties `json:"properties,omitempty"`
}

PrivateLinkResource a resource that supports private link capabilities.

func (PrivateLinkResource) MarshalJSON

func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateLinkResource.

func (*PrivateLinkResource) UnmarshalJSON

func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct.

type PrivateLinkResourceListResult

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

PrivateLinkResourceListResult the result of a request to list private link resources for a container registry.

func (PrivateLinkResourceListResult) IsEmpty

func (plrlr PrivateLinkResourceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateLinkResourceListResultIterator

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

PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource values.

func NewPrivateLinkResourceListResultIterator

func NewPrivateLinkResourceListResultIterator(page PrivateLinkResourceListResultPage) PrivateLinkResourceListResultIterator

Creates a new instance of the PrivateLinkResourceListResultIterator type.

func (*PrivateLinkResourceListResultIterator) Next

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 (*PrivateLinkResourceListResultIterator) NextWithContext

func (iter *PrivateLinkResourceListResultIterator) 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 (PrivateLinkResourceListResultIterator) NotDone

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

func (PrivateLinkResourceListResultIterator) Response

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

func (PrivateLinkResourceListResultIterator) Value

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

type PrivateLinkResourceListResultPage

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

PrivateLinkResourceListResultPage contains a page of PrivateLinkResource values.

func NewPrivateLinkResourceListResultPage

Creates a new instance of the PrivateLinkResourceListResultPage type.

func (*PrivateLinkResourceListResultPage) Next

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 (*PrivateLinkResourceListResultPage) NextWithContext

func (page *PrivateLinkResourceListResultPage) 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 (PrivateLinkResourceListResultPage) NotDone

func (page PrivateLinkResourceListResultPage) NotDone() bool

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

func (PrivateLinkResourceListResultPage) Response

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

func (PrivateLinkResourceListResultPage) Values

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

type PrivateLinkResourceProperties

type PrivateLinkResourceProperties struct {
	// GroupID - The private link resource group id.
	GroupID *string `json:"groupId,omitempty"`
	// RequiredMembers - The private link resource required member names.
	RequiredMembers *[]string `json:"requiredMembers,omitempty"`
	// RequiredZoneNames - The private link resource Private link DNS zone name.
	RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}

PrivateLinkResourceProperties the properties of a private link resource.

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	// Status - The private link service connection status. Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected'
	Status ConnectionStatus `json:"status,omitempty"`
	// Description - The description for connection status. For example if connection is rejected it can indicate reason for rejection.
	Description *string `json:"description,omitempty"`
	// ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. Possible values include: 'None', 'Recreate'
	ActionsRequired ActionsRequired `json:"actionsRequired,omitempty"`
}

PrivateLinkServiceConnectionState the state of a private link service connection.

type ProgressProperties

type ProgressProperties struct {
	// Percentage - The percentage complete of the copy operation.
	Percentage *string `json:"percentage,omitempty"`
}

ProgressProperties ...

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Canceled ...
	Canceled ProvisioningState = "Canceled"
	// Creating ...
	Creating ProvisioningState = "Creating"
	// Deleting ...
	Deleting ProvisioningState = "Deleting"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// Succeeded ...
	Succeeded ProvisioningState = "Succeeded"
	// Updating ...
	Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

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

type ProxyResource

type ProxyResource struct {
	// ID - 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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

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

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type PublicNetworkAccess

type PublicNetworkAccess string

PublicNetworkAccess enumerates the values for public network access.

const (
	// PublicNetworkAccessDisabled ...
	PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
	// PublicNetworkAccessEnabled ...
	PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
)

func PossiblePublicNetworkAccessValues

func PossiblePublicNetworkAccessValues() []PublicNetworkAccess

PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.

type QuarantinePolicy

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 the quarantine policy for a container registry.

type RegenerateCredentialParameters

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

type RegistriesClient struct {
	BaseClient
}

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

func NewRegistriesClient

func NewRegistriesClient(subscriptionID string) RegistriesClient

NewRegistriesClient creates an instance of the RegistriesClient client.

func NewRegistriesClientWithBaseURI

func NewRegistriesClientWithBaseURI(baseURI string, subscriptionID string) RegistriesClient

NewRegistriesClientWithBaseURI creates an instance of the RegistriesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RegistriesClient) CheckNameAvailability

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

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

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (RegistriesClient) CheckNameAvailabilityResponder

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

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

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

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

CreatePreparer prepares the Create request.

func (RegistriesClient) CreateResponder

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

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

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

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

DeletePreparer prepares the Delete request.

func (RegistriesClient) DeleteResponder

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

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) GenerateCredentials

func (client RegistriesClient) GenerateCredentials(ctx context.Context, resourceGroupName string, registryName string, generateCredentialsParameters GenerateCredentialsParameters) (result RegistriesGenerateCredentialsFuture, err error)

GenerateCredentials generate keys for a token of 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. generateCredentialsParameters - the parameters for generating credentials.

func (RegistriesClient) GenerateCredentialsPreparer

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

GenerateCredentialsPreparer prepares the GenerateCredentials request.

func (RegistriesClient) GenerateCredentialsResponder

func (client RegistriesClient) GenerateCredentialsResponder(resp *http.Response) (result GenerateCredentialsResult, err error)

GenerateCredentialsResponder handles the response to the GenerateCredentials request. The method always closes the http.Response Body.

func (RegistriesClient) GenerateCredentialsSender

func (client RegistriesClient) GenerateCredentialsSender(req *http.Request) (future RegistriesGenerateCredentialsFuture, err error)

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

func (RegistriesClient) Get

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

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

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

GetBuildSourceUploadURLPreparer prepares the GetBuildSourceUploadURL request.

func (RegistriesClient) GetBuildSourceUploadURLResponder

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

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

func (RegistriesClient) GetBuildSourceUploadURLSender

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

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

func (RegistriesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RegistriesClient) GetResponder

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

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

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

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

ImportImagePreparer prepares the ImportImage request.

func (RegistriesClient) ImportImageResponder

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

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

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

List lists all the container registries under the specified subscription.

func (RegistriesClient) ListByResourceGroup

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

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

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (RegistriesClient) ListByResourceGroupResponder

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

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

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

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

func (RegistriesClient) ListCredentials

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

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

ListCredentialsPreparer prepares the ListCredentials request.

func (RegistriesClient) ListCredentialsResponder

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

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) ListPreparer

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

ListPreparer prepares the List request.

func (RegistriesClient) ListPrivateLinkResources

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

ListPrivateLinkResources lists the private link resources for 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) ListPrivateLinkResourcesComplete

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

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

func (RegistriesClient) ListPrivateLinkResourcesPreparer

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

ListPrivateLinkResourcesPreparer prepares the ListPrivateLinkResources request.

func (RegistriesClient) ListPrivateLinkResourcesResponder

func (client RegistriesClient) ListPrivateLinkResourcesResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)

ListPrivateLinkResourcesResponder handles the response to the ListPrivateLinkResources request. The method always closes the http.Response Body.

func (RegistriesClient) ListPrivateLinkResourcesSender

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

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

func (RegistriesClient) ListResponder

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

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

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

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

ListUsagesPreparer prepares the ListUsages request.

func (RegistriesClient) ListUsagesResponder

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

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) RegenerateCredential

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

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

RegenerateCredentialPreparer prepares the RegenerateCredential request.

func (RegistriesClient) RegenerateCredentialResponder

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

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) ScheduleRun

func (client RegistriesClient) ScheduleRun(ctx context.Context, resourceGroupName string, registryName string, runRequest BasicRunRequest) (result RegistriesScheduleRunFuture, err error)

ScheduleRun schedules a new run based on the request parameters and add it to the run queue. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. runRequest - the parameters of a run that needs to scheduled.

func (RegistriesClient) ScheduleRunPreparer

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

ScheduleRunPreparer prepares the ScheduleRun request.

func (RegistriesClient) ScheduleRunResponder

func (client RegistriesClient) ScheduleRunResponder(resp *http.Response) (result Run, err error)

ScheduleRunResponder handles the response to the ScheduleRun request. The method always closes the http.Response Body.

func (RegistriesClient) ScheduleRunSender

func (client RegistriesClient) ScheduleRunSender(req *http.Request) (future RegistriesScheduleRunFuture, err error)

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

func (RegistriesClient) Update

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) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (RegistriesClient) UpdateResponder

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

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

type RegistriesCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(RegistriesClient) (Registry, error)
}

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

func (*RegistriesCreateFuture) UnmarshalJSON

func (future *RegistriesCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesDeleteFuture

type RegistriesDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(RegistriesClient) (autorest.Response, error)
}

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

func (*RegistriesDeleteFuture) UnmarshalJSON

func (future *RegistriesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesGenerateCredentialsFuture

type RegistriesGenerateCredentialsFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(RegistriesClient) (GenerateCredentialsResult, error)
}

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

func (*RegistriesGenerateCredentialsFuture) UnmarshalJSON

func (future *RegistriesGenerateCredentialsFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesImportImageFuture

type RegistriesImportImageFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(RegistriesClient) (autorest.Response, error)
}

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

func (*RegistriesImportImageFuture) UnmarshalJSON

func (future *RegistriesImportImageFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesScheduleRunFuture

type RegistriesScheduleRunFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(RegistriesClient) (Run, error)
}

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

func (*RegistriesScheduleRunFuture) UnmarshalJSON

func (future *RegistriesScheduleRunFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesUpdateFuture

type RegistriesUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(RegistriesClient) (Registry, error)
}

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

func (*RegistriesUpdateFuture) UnmarshalJSON

func (future *RegistriesUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Registry

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 *IdentityProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

Registry an object that represents a container registry.

func (Registry) MarshalJSON

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

MarshalJSON is the custom marshaler for Registry.

func (*Registry) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Registry struct.

type RegistryListCredentialsResult

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

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

func (rlr RegistryListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RegistryListResultIterator

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

RegistryListResultIterator provides access to a complete listing of Registry values.

func NewRegistryListResultIterator

func NewRegistryListResultIterator(page RegistryListResultPage) RegistryListResultIterator

Creates a new instance of the RegistryListResultIterator type.

func (*RegistryListResultIterator) Next

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

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

func (iter RegistryListResultIterator) NotDone() bool

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

func (RegistryListResultIterator) Response

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

func (RegistryListResultIterator) Value

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

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

RegistryListResultPage contains a page of Registry values.

func NewRegistryListResultPage

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

Creates a new instance of the RegistryListResultPage type.

func (*RegistryListResultPage) Next

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

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

func (page RegistryListResultPage) NotDone() bool

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

func (RegistryListResultPage) Response

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

func (RegistryListResultPage) Values

func (page RegistryListResultPage) Values() []Registry

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

type RegistryNameCheckRequest

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

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

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 RegistryProperties

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: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	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"`
	// Policies - The policies for a container registry.
	Policies *Policies `json:"policies,omitempty"`
	// Encryption - The encryption settings of container registry.
	Encryption *EncryptionProperty `json:"encryption,omitempty"`
	// DataEndpointEnabled - Enable a single data endpoint per region for serving data.
	DataEndpointEnabled *bool `json:"dataEndpointEnabled,omitempty"`
	// DataEndpointHostNames - READ-ONLY; List of host names that will serve data when dataEndpointEnabled is true.
	DataEndpointHostNames *[]string `json:"dataEndpointHostNames,omitempty"`
	// PrivateEndpointConnections - READ-ONLY; List of private endpoint connections for a container registry.
	PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"`
	// PublicNetworkAccess - Whether or not public network access is allowed for the container registry. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled'
	PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
}

RegistryProperties the properties of a container registry.

func (RegistryProperties) MarshalJSON

func (rp RegistryProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistryProperties.

type RegistryPropertiesUpdateParameters

type RegistryPropertiesUpdateParameters struct {
	// AdminUserEnabled - The value that indicates whether the admin user is enabled.
	AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"`
	// NetworkRuleSet - The network rule set for a container registry.
	NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"`
	// Policies - The policies for a container registry.
	Policies *Policies `json:"policies,omitempty"`
	// Encryption - The encryption settings of container registry.
	Encryption *EncryptionProperty `json:"encryption,omitempty"`
	// DataEndpointEnabled - Enable a single data endpoint per region for serving data.
	DataEndpointEnabled *bool `json:"dataEndpointEnabled,omitempty"`
	// PublicNetworkAccess - Whether or not public network access is allowed for the container registry. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled'
	PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
}

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

type RegistryUpdateParameters

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 *IdentityProperties `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

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

MarshalJSON is the custom marshaler for RegistryUpdateParameters.

func (*RegistryUpdateParameters) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for RegistryUpdateParameters struct.

type RegistryUsage

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

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

type RegistryUsageUnit string

RegistryUsageUnit enumerates the values for registry usage unit.

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

func PossibleRegistryUsageUnitValues

func PossibleRegistryUsageUnitValues() []RegistryUsageUnit

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

type Replication

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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

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

func (Replication) MarshalJSON

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

MarshalJSON is the custom marshaler for Replication.

func (*Replication) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Replication struct.

type ReplicationListResult

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

func (rlr ReplicationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ReplicationListResultIterator

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

ReplicationListResultIterator provides access to a complete listing of Replication values.

func NewReplicationListResultIterator

func NewReplicationListResultIterator(page ReplicationListResultPage) ReplicationListResultIterator

Creates a new instance of the ReplicationListResultIterator type.

func (*ReplicationListResultIterator) Next

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

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

func (iter ReplicationListResultIterator) NotDone() bool

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

func (ReplicationListResultIterator) Response

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

func (ReplicationListResultIterator) Value

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

type ReplicationListResultPage

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

ReplicationListResultPage contains a page of Replication values.

func NewReplicationListResultPage

Creates a new instance of the ReplicationListResultPage type.

func (*ReplicationListResultPage) Next

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

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

func (page ReplicationListResultPage) NotDone() bool

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

func (ReplicationListResultPage) Response

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

func (ReplicationListResultPage) Values

func (page ReplicationListResultPage) Values() []Replication

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

type ReplicationProperties

type ReplicationProperties struct {
	// ProvisioningState - READ-ONLY; The provisioning state of the replication at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	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"`
	// RegionEndpointEnabled - Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
	RegionEndpointEnabled *bool `json:"regionEndpointEnabled,omitempty"`
}

ReplicationProperties the properties of a replication.

func (ReplicationProperties) MarshalJSON

func (rp ReplicationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReplicationProperties.

type ReplicationUpdateParameters

type ReplicationUpdateParameters struct {
	// Tags - The tags for the replication.
	Tags map[string]*string `json:"tags"`
	// ReplicationUpdateParametersProperties - The parameters for updating a replication's properties
	*ReplicationUpdateParametersProperties `json:"properties,omitempty"`
}

ReplicationUpdateParameters the parameters for updating a replication.

func (ReplicationUpdateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for ReplicationUpdateParameters.

func (*ReplicationUpdateParameters) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ReplicationUpdateParameters struct.

type ReplicationUpdateParametersProperties

type ReplicationUpdateParametersProperties struct {
	// RegionEndpointEnabled - Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
	RegionEndpointEnabled *bool `json:"regionEndpointEnabled,omitempty"`
}

ReplicationUpdateParametersProperties ...

type ReplicationsClient

type ReplicationsClient struct {
	BaseClient
}

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

func NewReplicationsClient

func NewReplicationsClient(subscriptionID string) ReplicationsClient

NewReplicationsClient creates an instance of the ReplicationsClient client.

func NewReplicationsClientWithBaseURI

func NewReplicationsClientWithBaseURI(baseURI string, subscriptionID string) ReplicationsClient

NewReplicationsClientWithBaseURI creates an instance of the ReplicationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ReplicationsClient) Create

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (ReplicationsClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (ReplicationsClient) GetResponder

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

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

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

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

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

ListPreparer prepares the List request.

func (ReplicationsClient) ListResponder

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

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

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

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

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

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

type ReplicationsCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ReplicationsClient) (Replication, error)
}

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

func (*ReplicationsCreateFuture) UnmarshalJSON

func (future *ReplicationsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ReplicationsDeleteFuture

type ReplicationsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ReplicationsClient) (autorest.Response, error)
}

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

func (*ReplicationsDeleteFuture) UnmarshalJSON

func (future *ReplicationsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ReplicationsUpdateFuture

type ReplicationsUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ReplicationsClient) (Replication, error)
}

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

func (*ReplicationsUpdateFuture) UnmarshalJSON

func (future *ReplicationsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Request

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

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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

Resource an Azure resource.

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type ResourceIdentityType

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
	// ResourceIdentityTypeNone ...
	ResourceIdentityTypeNone ResourceIdentityType = "None"
	// ResourceIdentityTypeSystemAssigned ...
	ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
	// ResourceIdentityTypeSystemAssignedUserAssigned ...
	ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
	// ResourceIdentityTypeUserAssigned ...
	ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
)

func PossibleResourceIdentityTypeValues

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type RetentionPolicy

type RetentionPolicy struct {
	// Days - The number of days to retain an untagged manifest after which it gets purged.
	Days *int32 `json:"days,omitempty"`
	// LastUpdatedTime - READ-ONLY; The timestamp when the policy was last updated.
	LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
	// Status - The value that indicates whether the policy is enabled or not. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled'
	Status PolicyStatus `json:"status,omitempty"`
}

RetentionPolicy the retention policy for a container registry.

func (RetentionPolicy) MarshalJSON

func (rp RetentionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RetentionPolicy.

type Run

type Run struct {
	autorest.Response `json:"-"`
	// RunProperties - The properties of a run.
	*RunProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

Run run resource properties

func (Run) MarshalJSON

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

MarshalJSON is the custom marshaler for Run.

func (*Run) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Run struct.

type RunFilter

type RunFilter struct {
	// RunID - The unique identifier for the run.
	RunID *string `json:"runId,omitempty"`
	// RunType - The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'
	RunType RunType `json:"runType,omitempty"`
	// Status - The current status of the run. Possible values include: 'RunStatusQueued', 'RunStatusStarted', 'RunStatusRunning', 'RunStatusSucceeded', 'RunStatusFailed', 'RunStatusCanceled', 'RunStatusError', 'RunStatusTimeout'
	Status RunStatus `json:"status,omitempty"`
	// CreateTime - The create time for a run.
	CreateTime *date.Time `json:"createTime,omitempty"`
	// FinishTime - The time the run finished.
	FinishTime *date.Time `json:"finishTime,omitempty"`
	// OutputImageManifests - The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of
	// build type.
	OutputImageManifests *string `json:"outputImageManifests,omitempty"`
	// IsArchiveEnabled - The value that indicates whether archiving is enabled or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
	// TaskName - The name of the task that the run corresponds to.
	TaskName *string `json:"taskName,omitempty"`
	// AgentPoolName - The name of the agent pool that the run corresponds to.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
}

RunFilter properties that are enabled for Odata querying on runs.

type RunGetLogResult

type RunGetLogResult struct {
	autorest.Response `json:"-"`
	// LogLink - The link to logs for a run on a azure container registry.
	LogLink *string `json:"logLink,omitempty"`
	// LogArtifactLink - The link to logs in registry for a run on a azure container registry.
	LogArtifactLink *string `json:"logArtifactLink,omitempty"`
}

RunGetLogResult the result of get log link operation.

type RunListResult

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

RunListResult collection of runs.

func (RunListResult) IsEmpty

func (rlr RunListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RunListResultIterator

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

RunListResultIterator provides access to a complete listing of Run values.

func NewRunListResultIterator

func NewRunListResultIterator(page RunListResultPage) RunListResultIterator

Creates a new instance of the RunListResultIterator type.

func (*RunListResultIterator) Next

func (iter *RunListResultIterator) 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 (*RunListResultIterator) NextWithContext

func (iter *RunListResultIterator) 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 (RunListResultIterator) NotDone

func (iter RunListResultIterator) NotDone() bool

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

func (RunListResultIterator) Response

func (iter RunListResultIterator) Response() RunListResult

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

func (RunListResultIterator) Value

func (iter RunListResultIterator) Value() Run

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

type RunListResultPage

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

RunListResultPage contains a page of Run values.

func NewRunListResultPage

func NewRunListResultPage(cur RunListResult, getNextPage func(context.Context, RunListResult) (RunListResult, error)) RunListResultPage

Creates a new instance of the RunListResultPage type.

func (*RunListResultPage) Next

func (page *RunListResultPage) 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 (*RunListResultPage) NextWithContext

func (page *RunListResultPage) 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 (RunListResultPage) NotDone

func (page RunListResultPage) NotDone() bool

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

func (RunListResultPage) Response

func (page RunListResultPage) Response() RunListResult

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

func (RunListResultPage) Values

func (page RunListResultPage) Values() []Run

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

type RunProperties

type RunProperties struct {
	// RunID - The unique identifier for the run.
	RunID *string `json:"runId,omitempty"`
	// Status - The current status of the run. Possible values include: 'RunStatusQueued', 'RunStatusStarted', 'RunStatusRunning', 'RunStatusSucceeded', 'RunStatusFailed', 'RunStatusCanceled', 'RunStatusError', 'RunStatusTimeout'
	Status RunStatus `json:"status,omitempty"`
	// LastUpdatedTime - The last updated time for the run.
	LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
	// RunType - The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'
	RunType RunType `json:"runType,omitempty"`
	// AgentPoolName - The dedicated agent pool for the run.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
	// CreateTime - The time the run was scheduled.
	CreateTime *date.Time `json:"createTime,omitempty"`
	// StartTime - The time the run started.
	StartTime *date.Time `json:"startTime,omitempty"`
	// FinishTime - The time the run finished.
	FinishTime *date.Time `json:"finishTime,omitempty"`
	// OutputImages - The list of all images that were generated from the run. This is applicable if the run generates base image dependencies.
	OutputImages *[]ImageDescriptor `json:"outputImages,omitempty"`
	// Task - The task against which run was scheduled.
	Task *string `json:"task,omitempty"`
	// ImageUpdateTrigger - The image update trigger that caused the run. This is applicable if the task has base image trigger configured.
	ImageUpdateTrigger *ImageUpdateTrigger `json:"imageUpdateTrigger,omitempty"`
	// SourceTrigger - The source trigger that caused the run.
	SourceTrigger *SourceTriggerDescriptor `json:"sourceTrigger,omitempty"`
	// TimerTrigger - The timer trigger that caused the run.
	TimerTrigger *TimerTriggerDescriptor `json:"timerTrigger,omitempty"`
	// Platform - The platform properties against which the run will happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// AgentConfiguration - The machine configuration of the run agent.
	AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
	// SourceRegistryAuth - The scope of the credentials that were used to login to the source registry during this run.
	SourceRegistryAuth *string `json:"sourceRegistryAuth,omitempty"`
	// CustomRegistries - The list of custom registries that were logged in during this run.
	CustomRegistries *[]string `json:"customRegistries,omitempty"`
	// RunErrorMessage - READ-ONLY; The error message received from backend systems after the run is scheduled.
	RunErrorMessage *string `json:"runErrorMessage,omitempty"`
	// UpdateTriggerToken - The update trigger token passed for the Run.
	UpdateTriggerToken *string `json:"updateTriggerToken,omitempty"`
	// LogArtifact - READ-ONLY; The image description for the log artifact.
	LogArtifact *ImageDescriptor `json:"logArtifact,omitempty"`
	// ProvisioningState - The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// IsArchiveEnabled - The value that indicates whether archiving is enabled or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
}

RunProperties the properties for a run.

func (RunProperties) MarshalJSON

func (rp RunProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RunProperties.

type RunRequest

type RunRequest struct {
	// IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
	// AgentPoolName - The dedicated agent pool for the run.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
	// LogTemplate - The template that describes the repository and tag information for run log artifact.
	LogTemplate *string `json:"logTemplate,omitempty"`
	// Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
	Type Type `json:"type,omitempty"`
}

RunRequest the request parameters for scheduling a run.

func (RunRequest) AsBasicRunRequest

func (rr RunRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsDockerBuildRequest

func (rr RunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsEncodedTaskRunRequest

func (rr RunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsFileTaskRunRequest

func (rr RunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsRunRequest

func (rr RunRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsTaskRunRequest

func (rr RunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) MarshalJSON

func (rr RunRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RunRequest.

type RunStatus

type RunStatus string

RunStatus enumerates the values for run status.

const (
	// RunStatusCanceled ...
	RunStatusCanceled RunStatus = "Canceled"
	// RunStatusError ...
	RunStatusError RunStatus = "Error"
	// RunStatusFailed ...
	RunStatusFailed RunStatus = "Failed"
	// RunStatusQueued ...
	RunStatusQueued RunStatus = "Queued"
	// RunStatusRunning ...
	RunStatusRunning RunStatus = "Running"
	// RunStatusStarted ...
	RunStatusStarted RunStatus = "Started"
	// RunStatusSucceeded ...
	RunStatusSucceeded RunStatus = "Succeeded"
	// RunStatusTimeout ...
	RunStatusTimeout RunStatus = "Timeout"
)

func PossibleRunStatusValues

func PossibleRunStatusValues() []RunStatus

PossibleRunStatusValues returns an array of possible values for the RunStatus const type.

type RunType

type RunType string

RunType enumerates the values for run type.

const (
	// AutoBuild ...
	AutoBuild RunType = "AutoBuild"
	// AutoRun ...
	AutoRun RunType = "AutoRun"
	// QuickBuild ...
	QuickBuild RunType = "QuickBuild"
	// QuickRun ...
	QuickRun RunType = "QuickRun"
)

func PossibleRunTypeValues

func PossibleRunTypeValues() []RunType

PossibleRunTypeValues returns an array of possible values for the RunType const type.

type RunUpdateParameters

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

RunUpdateParameters the set of run properties that can be updated.

type RunsCancelFuture

type RunsCancelFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(RunsClient) (autorest.Response, error)
}

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

func (*RunsCancelFuture) UnmarshalJSON

func (future *RunsCancelFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RunsClient

type RunsClient struct {
	BaseClient
}

RunsClient is the client for the Runs methods of the Containerregistry service.

func NewRunsClient

func NewRunsClient(subscriptionID string) RunsClient

NewRunsClient creates an instance of the RunsClient client.

func NewRunsClientWithBaseURI

func NewRunsClientWithBaseURI(baseURI string, subscriptionID string) RunsClient

NewRunsClientWithBaseURI creates an instance of the RunsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RunsClient) Cancel

func (client RunsClient) Cancel(ctx context.Context, resourceGroupName string, registryName string, runID string) (result RunsCancelFuture, err error)

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

func (RunsClient) CancelPreparer

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

CancelPreparer prepares the Cancel request.

func (RunsClient) CancelResponder

func (client RunsClient) 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 (RunsClient) CancelSender

func (client RunsClient) CancelSender(req *http.Request) (future RunsCancelFuture, err error)

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

func (RunsClient) Get

func (client RunsClient) Get(ctx context.Context, resourceGroupName string, registryName string, runID string) (result Run, err error)

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

func (RunsClient) GetLogSasURL

func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName string, registryName string, runID string) (result RunGetLogResult, err error)

GetLogSasURL gets a link to download the run logs. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. runID - the run ID.

func (RunsClient) GetLogSasURLPreparer

func (client RunsClient) GetLogSasURLPreparer(ctx context.Context, resourceGroupName string, registryName string, runID string) (*http.Request, error)

GetLogSasURLPreparer prepares the GetLogSasURL request.

func (RunsClient) GetLogSasURLResponder

func (client RunsClient) GetLogSasURLResponder(resp *http.Response) (result RunGetLogResult, err error)

GetLogSasURLResponder handles the response to the GetLogSasURL request. The method always closes the http.Response Body.

func (RunsClient) GetLogSasURLSender

func (client RunsClient) GetLogSasURLSender(req *http.Request) (*http.Response, error)

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

func (RunsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RunsClient) GetResponder

func (client RunsClient) GetResponder(resp *http.Response) (result Run, err error)

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

func (RunsClient) GetSender

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

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

List gets all the runs 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 runs filter to apply on the operation. Arithmetic operators are not supported. The allowed string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed. top - $top is supported for get list of runs, which limits the maximum number of runs to return.

func (RunsClient) ListComplete

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

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

func (RunsClient) ListPreparer

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

ListPreparer prepares the List request.

func (RunsClient) ListResponder

func (client RunsClient) ListResponder(resp *http.Response) (result RunListResult, err error)

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

func (RunsClient) ListSender

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

func (client RunsClient) Update(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters) (result RunsUpdateFuture, err error)

Update patch the run properties. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. runID - the run ID. runUpdateParameters - the run update properties.

func (RunsClient) UpdatePreparer

func (client RunsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (RunsClient) UpdateResponder

func (client RunsClient) UpdateResponder(resp *http.Response) (result Run, err error)

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

func (RunsClient) UpdateSender

func (client RunsClient) UpdateSender(req *http.Request) (future RunsUpdateFuture, err error)

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

type RunsUpdateFuture

type RunsUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(RunsClient) (Run, error)
}

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

func (*RunsUpdateFuture) UnmarshalJSON

func (future *RunsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ScopeMap

type ScopeMap struct {
	autorest.Response `json:"-"`
	// ScopeMapProperties - The properties of the scope map.
	*ScopeMapProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

ScopeMap an object that represents a scope map for a container registry.

func (ScopeMap) MarshalJSON

func (sm ScopeMap) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ScopeMap.

func (*ScopeMap) UnmarshalJSON

func (sm *ScopeMap) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ScopeMap struct.

type ScopeMapListResult

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

ScopeMapListResult the result of a request to list scope maps for a container registry.

func (ScopeMapListResult) IsEmpty

func (smlr ScopeMapListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ScopeMapListResultIterator

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

ScopeMapListResultIterator provides access to a complete listing of ScopeMap values.

func NewScopeMapListResultIterator

func NewScopeMapListResultIterator(page ScopeMapListResultPage) ScopeMapListResultIterator

Creates a new instance of the ScopeMapListResultIterator type.

func (*ScopeMapListResultIterator) Next

func (iter *ScopeMapListResultIterator) 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 (*ScopeMapListResultIterator) NextWithContext

func (iter *ScopeMapListResultIterator) 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 (ScopeMapListResultIterator) NotDone

func (iter ScopeMapListResultIterator) NotDone() bool

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

func (ScopeMapListResultIterator) Response

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

func (ScopeMapListResultIterator) Value

func (iter ScopeMapListResultIterator) Value() ScopeMap

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

type ScopeMapListResultPage

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

ScopeMapListResultPage contains a page of ScopeMap values.

func NewScopeMapListResultPage

func NewScopeMapListResultPage(cur ScopeMapListResult, getNextPage func(context.Context, ScopeMapListResult) (ScopeMapListResult, error)) ScopeMapListResultPage

Creates a new instance of the ScopeMapListResultPage type.

func (*ScopeMapListResultPage) Next

func (page *ScopeMapListResultPage) 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 (*ScopeMapListResultPage) NextWithContext

func (page *ScopeMapListResultPage) 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 (ScopeMapListResultPage) NotDone

func (page ScopeMapListResultPage) NotDone() bool

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

func (ScopeMapListResultPage) Response

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

func (ScopeMapListResultPage) Values

func (page ScopeMapListResultPage) Values() []ScopeMap

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

type ScopeMapProperties

type ScopeMapProperties struct {
	// Description - The user friendly description of the scope map.
	Description *string `json:"description,omitempty"`
	// Type - READ-ONLY; The type of the scope map. E.g. BuildIn scope map.
	Type *string `json:"type,omitempty"`
	// CreationDate - READ-ONLY; The creation date of scope map.
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// Actions - The list of scoped permissions for registry artifacts.
	// E.g. repositories/repository-name/content/read,
	// repositories/repository-name/metadata/write
	Actions *[]string `json:"actions,omitempty"`
}

ScopeMapProperties the properties of a scope map.

func (ScopeMapProperties) MarshalJSON

func (smp ScopeMapProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ScopeMapProperties.

type ScopeMapPropertiesUpdateParameters

type ScopeMapPropertiesUpdateParameters struct {
	// Description - The user friendly description of the scope map.
	Description *string `json:"description,omitempty"`
	// Actions - The list of scope permissions for registry artifacts.
	// E.g. repositories/repository-name/pull,
	// repositories/repository-name/delete
	Actions *[]string `json:"actions,omitempty"`
}

ScopeMapPropertiesUpdateParameters the update parameters for scope map properties.

type ScopeMapUpdateParameters

type ScopeMapUpdateParameters struct {
	// ScopeMapPropertiesUpdateParameters - The update parameters for scope map properties.
	*ScopeMapPropertiesUpdateParameters `json:"properties,omitempty"`
}

ScopeMapUpdateParameters the properties for updating the scope map.

func (ScopeMapUpdateParameters) MarshalJSON

func (smup ScopeMapUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ScopeMapUpdateParameters.

func (*ScopeMapUpdateParameters) UnmarshalJSON

func (smup *ScopeMapUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ScopeMapUpdateParameters struct.

type ScopeMapsClient

type ScopeMapsClient struct {
	BaseClient
}

ScopeMapsClient is the client for the ScopeMaps methods of the Containerregistry service.

func NewScopeMapsClient

func NewScopeMapsClient(subscriptionID string) ScopeMapsClient

NewScopeMapsClient creates an instance of the ScopeMapsClient client.

func NewScopeMapsClientWithBaseURI

func NewScopeMapsClientWithBaseURI(baseURI string, subscriptionID string) ScopeMapsClient

NewScopeMapsClientWithBaseURI creates an instance of the ScopeMapsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ScopeMapsClient) Create

func (client ScopeMapsClient) Create(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapCreateParameters ScopeMap) (result ScopeMapsCreateFuture, err error)

Create creates a scope map 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. scopeMapName - the name of the scope map. scopeMapCreateParameters - the parameters for creating a scope map.

func (ScopeMapsClient) CreatePreparer

func (client ScopeMapsClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapCreateParameters ScopeMap) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ScopeMapsClient) CreateResponder

func (client ScopeMapsClient) CreateResponder(resp *http.Response) (result ScopeMap, err error)

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

func (ScopeMapsClient) CreateSender

func (client ScopeMapsClient) CreateSender(req *http.Request) (future ScopeMapsCreateFuture, err error)

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

func (ScopeMapsClient) Delete

func (client ScopeMapsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string) (result ScopeMapsDeleteFuture, err error)

Delete deletes a scope map 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. scopeMapName - the name of the scope map.

func (ScopeMapsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ScopeMapsClient) DeleteResponder

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

func (client ScopeMapsClient) DeleteSender(req *http.Request) (future ScopeMapsDeleteFuture, err error)

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

func (ScopeMapsClient) Get

func (client ScopeMapsClient) Get(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string) (result ScopeMap, err error)

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

func (ScopeMapsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ScopeMapsClient) GetResponder

func (client ScopeMapsClient) GetResponder(resp *http.Response) (result ScopeMap, err error)

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

func (ScopeMapsClient) GetSender

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

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

List lists all the scope maps 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 (ScopeMapsClient) ListComplete

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

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

func (ScopeMapsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ScopeMapsClient) ListResponder

func (client ScopeMapsClient) ListResponder(resp *http.Response) (result ScopeMapListResult, err error)

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

func (ScopeMapsClient) ListSender

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

func (client ScopeMapsClient) Update(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapUpdateParameters ScopeMapUpdateParameters) (result ScopeMapsUpdateFuture, err error)

Update updates a scope map 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. scopeMapName - the name of the scope map. scopeMapUpdateParameters - the parameters for updating a scope map.

func (ScopeMapsClient) UpdatePreparer

func (client ScopeMapsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapUpdateParameters ScopeMapUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ScopeMapsClient) UpdateResponder

func (client ScopeMapsClient) UpdateResponder(resp *http.Response) (result ScopeMap, err error)

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

func (ScopeMapsClient) UpdateSender

func (client ScopeMapsClient) UpdateSender(req *http.Request) (future ScopeMapsUpdateFuture, err error)

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

type ScopeMapsCreateFuture

type ScopeMapsCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ScopeMapsClient) (ScopeMap, error)
}

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

func (*ScopeMapsCreateFuture) UnmarshalJSON

func (future *ScopeMapsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ScopeMapsDeleteFuture

type ScopeMapsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ScopeMapsClient) (autorest.Response, error)
}

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

func (*ScopeMapsDeleteFuture) UnmarshalJSON

func (future *ScopeMapsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ScopeMapsUpdateFuture

type ScopeMapsUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ScopeMapsClient) (ScopeMap, error)
}

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

func (*ScopeMapsUpdateFuture) UnmarshalJSON

func (future *ScopeMapsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SecretObject

type SecretObject struct {
	// Value - The value of the secret. The format of this value will be determined
	// based on the type of the secret object. If the type is Opaque, the value will be
	// used as is without any modification.
	Value *string `json:"value,omitempty"`
	// Type - The type of the secret object which determines how the value of the secret object has to be
	// interpreted. Possible values include: 'Opaque', 'Vaultsecret'
	Type SecretObjectType `json:"type,omitempty"`
}

SecretObject describes the properties of a secret object value.

type SecretObjectType

type SecretObjectType string

SecretObjectType enumerates the values for secret object type.

const (
	// Opaque ...
	Opaque SecretObjectType = "Opaque"
	// Vaultsecret ...
	Vaultsecret SecretObjectType = "Vaultsecret"
)

func PossibleSecretObjectTypeValues

func PossibleSecretObjectTypeValues() []SecretObjectType

PossibleSecretObjectTypeValues returns an array of possible values for the SecretObjectType const type.

type SetValue

type SetValue struct {
	// Name - The name of the overridable value.
	Name *string `json:"name,omitempty"`
	// Value - The overridable value.
	Value *string `json:"value,omitempty"`
	// IsSecret - Flag to indicate whether the value represents a secret or not.
	IsSecret *bool `json:"isSecret,omitempty"`
}

SetValue the properties of a overridable value that can be passed to a task template.

type Sku

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.

func (Sku) MarshalJSON

func (s Sku) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Sku.

type SkuName

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

func PossibleSkuNameValues() []SkuName

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

type SkuTier

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

func PossibleSkuTierValues() []SkuTier

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

type Source

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 SourceControlType

type SourceControlType string

SourceControlType enumerates the values for source control type.

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

func PossibleSourceControlTypeValues

func PossibleSourceControlTypeValues() []SourceControlType

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

type SourceProperties

type SourceProperties struct {
	// 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"`
	// Branch - The branch name of the source code.
	Branch *string `json:"branch,omitempty"`
	// SourceControlAuthProperties - The authorization properties for accessing the source code repository and to set up
	// webhooks for notifications.
	SourceControlAuthProperties *AuthInfo `json:"sourceControlAuthProperties,omitempty"`
}

SourceProperties the properties of the source code repository.

type SourceRegistryCredentials

type SourceRegistryCredentials struct {
	// LoginMode - The authentication mode which determines the source registry login scope. The credentials for the source registry
	// will be generated using the given scope. These credentials will be used to login to
	// the source registry during the run. Possible values include: 'SourceRegistryLoginModeNone', 'SourceRegistryLoginModeDefault'
	LoginMode SourceRegistryLoginMode `json:"loginMode,omitempty"`
}

SourceRegistryCredentials describes the credential parameters for accessing the source registry.

type SourceRegistryLoginMode

type SourceRegistryLoginMode string

SourceRegistryLoginMode enumerates the values for source registry login mode.

const (
	// SourceRegistryLoginModeDefault ...
	SourceRegistryLoginModeDefault SourceRegistryLoginMode = "Default"
	// SourceRegistryLoginModeNone ...
	SourceRegistryLoginModeNone SourceRegistryLoginMode = "None"
)

func PossibleSourceRegistryLoginModeValues

func PossibleSourceRegistryLoginModeValues() []SourceRegistryLoginMode

PossibleSourceRegistryLoginModeValues returns an array of possible values for the SourceRegistryLoginMode const type.

type SourceTrigger

type SourceTrigger struct {
	// SourceRepository - The properties that describes the source(code) for the task.
	SourceRepository *SourceProperties `json:"sourceRepository,omitempty"`
	// SourceTriggerEvents - The source event corresponding to the trigger.
	SourceTriggerEvents *[]SourceTriggerEvent `json:"sourceTriggerEvents,omitempty"`
	// Status - The current status of trigger. Possible values include: 'TriggerStatusEnabled', 'TriggerStatusDisabled'
	Status TriggerStatus `json:"status,omitempty"`
	// Name - The name of the trigger.
	Name *string `json:"name,omitempty"`
}

SourceTrigger the properties of a source based trigger.

type SourceTriggerDescriptor

type SourceTriggerDescriptor struct {
	// ID - The unique ID of the trigger.
	ID *string `json:"id,omitempty"`
	// EventType - The event type of the trigger.
	EventType *string `json:"eventType,omitempty"`
	// CommitID - The unique ID that identifies a commit.
	CommitID *string `json:"commitId,omitempty"`
	// PullRequestID - The unique ID that identifies pull request.
	PullRequestID *string `json:"pullRequestId,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"`
}

SourceTriggerDescriptor the source trigger that caused a run.

type SourceTriggerEvent

type SourceTriggerEvent string

SourceTriggerEvent enumerates the values for source trigger event.

const (
	// Commit ...
	Commit SourceTriggerEvent = "commit"
	// Pullrequest ...
	Pullrequest SourceTriggerEvent = "pullrequest"
)

func PossibleSourceTriggerEventValues

func PossibleSourceTriggerEventValues() []SourceTriggerEvent

PossibleSourceTriggerEventValues returns an array of possible values for the SourceTriggerEvent const type.

type SourceTriggerUpdateParameters

type SourceTriggerUpdateParameters struct {
	// SourceRepository - The properties that describes the source(code) for the task.
	SourceRepository *SourceUpdateParameters `json:"sourceRepository,omitempty"`
	// SourceTriggerEvents - The source event corresponding to the trigger.
	SourceTriggerEvents *[]SourceTriggerEvent `json:"sourceTriggerEvents,omitempty"`
	// Status - The current status of trigger. Possible values include: 'TriggerStatusEnabled', 'TriggerStatusDisabled'
	Status TriggerStatus `json:"status,omitempty"`
	// Name - The name of the trigger.
	Name *string `json:"name,omitempty"`
}

SourceTriggerUpdateParameters the properties for updating a source based trigger.

type SourceUpdateParameters

type SourceUpdateParameters struct {
	// 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"`
	// Branch - The branch name of the source code.
	Branch *string `json:"branch,omitempty"`
	// SourceControlAuthProperties - The authorization properties for accessing the source code repository and to set up
	// webhooks for notifications.
	SourceControlAuthProperties *AuthInfoUpdateParameters `json:"sourceControlAuthProperties,omitempty"`
}

SourceUpdateParameters the properties for updating the source code repository.

type SourceUploadDefinition

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

SourceUploadDefinition the properties of a response to source upload request.

type Status

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.

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Status.

type StorageAccountProperties

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 SystemData

type SystemData struct {
	// CreatedBy - The identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
	CreatedByType CreatedByType `json:"createdByType,omitempty"`
	// CreatedAt - The timestamp of resource creation (UTC).
	CreatedAt *date.Time `json:"createdAt,omitempty"`
	// LastModifiedBy - The identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'LastModifiedByTypeUser', 'LastModifiedByTypeApplication', 'LastModifiedByTypeManagedIdentity', 'LastModifiedByTypeKey'
	LastModifiedByType LastModifiedByType `json:"lastModifiedByType,omitempty"`
	// LastModifiedAt - The timestamp of resource modification (UTC).
	LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

SystemData metadata pertaining to creation and last modification of the resource.

type Target

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 Task

type Task struct {
	autorest.Response `json:"-"`
	// Identity - Identity for the resource.
	Identity *IdentityProperties `json:"identity,omitempty"`
	// TaskProperties - The properties of a task.
	*TaskProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

Task the task that has the ARM resource and task properties. The task will have all information to schedule a run against it.

func (Task) MarshalJSON

func (t Task) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Task.

func (*Task) UnmarshalJSON

func (t *Task) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Task struct.

type TaskListResult

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

TaskListResult the collection of tasks.

func (TaskListResult) IsEmpty

func (tlr TaskListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TaskListResultIterator

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

TaskListResultIterator provides access to a complete listing of Task values.

func NewTaskListResultIterator

func NewTaskListResultIterator(page TaskListResultPage) TaskListResultIterator

Creates a new instance of the TaskListResultIterator type.

func (*TaskListResultIterator) Next

func (iter *TaskListResultIterator) 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 (*TaskListResultIterator) NextWithContext

func (iter *TaskListResultIterator) 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 (TaskListResultIterator) NotDone

func (iter TaskListResultIterator) NotDone() bool

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

func (TaskListResultIterator) Response

func (iter TaskListResultIterator) Response() TaskListResult

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

func (TaskListResultIterator) Value

func (iter TaskListResultIterator) Value() Task

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

type TaskListResultPage

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

TaskListResultPage contains a page of Task values.

func NewTaskListResultPage

func NewTaskListResultPage(cur TaskListResult, getNextPage func(context.Context, TaskListResult) (TaskListResult, error)) TaskListResultPage

Creates a new instance of the TaskListResultPage type.

func (*TaskListResultPage) Next

func (page *TaskListResultPage) 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 (*TaskListResultPage) NextWithContext

func (page *TaskListResultPage) 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 (TaskListResultPage) NotDone

func (page TaskListResultPage) NotDone() bool

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

func (TaskListResultPage) Response

func (page TaskListResultPage) Response() TaskListResult

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

func (TaskListResultPage) Values

func (page TaskListResultPage) Values() []Task

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

type TaskProperties

type TaskProperties struct {
	// ProvisioningState - READ-ONLY; The provisioning state of the task. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationDate - READ-ONLY; The creation date of task.
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// Status - The current status of task. Possible values include: 'TaskStatusDisabled', 'TaskStatusEnabled'
	Status TaskStatus `json:"status,omitempty"`
	// Platform - The platform properties against which the run has to happen.
	Platform *PlatformProperties `json:"platform,omitempty"`
	// AgentConfiguration - The machine configuration of the run agent.
	AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
	// AgentPoolName - The dedicated agent pool for the task.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
	// Timeout - Run timeout in seconds.
	Timeout *int32 `json:"timeout,omitempty"`
	// Step - The properties of a task step.
	Step BasicTaskStepProperties `json:"step,omitempty"`
	// Trigger - The properties that describe all triggers for the task.
	Trigger *TriggerProperties `json:"trigger,omitempty"`
	// Credentials - The properties that describes a set of credentials that will be used when this run is invoked.
	Credentials *Credentials `json:"credentials,omitempty"`
	// LogTemplate - The template that describes the repository and tag information for run log artifact.
	LogTemplate *string `json:"logTemplate,omitempty"`
	// IsSystemTask - The value of this property indicates whether the task resource is system task or not.
	IsSystemTask *bool `json:"isSystemTask,omitempty"`
}

TaskProperties the properties of a task.

func (TaskProperties) MarshalJSON

func (tp TaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskProperties.

func (*TaskProperties) UnmarshalJSON

func (tp *TaskProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskProperties struct.

type TaskPropertiesUpdateParameters

type TaskPropertiesUpdateParameters struct {
	// Status - The current status of task. Possible values include: 'TaskStatusDisabled', 'TaskStatusEnabled'
	Status TaskStatus `json:"status,omitempty"`
	// Platform - The platform properties against which the run has to happen.
	Platform *PlatformUpdateParameters `json:"platform,omitempty"`
	// AgentConfiguration - The machine configuration of the run agent.
	AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
	// AgentPoolName - The dedicated agent pool for the task.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
	// Timeout - Run timeout in seconds.
	Timeout *int32 `json:"timeout,omitempty"`
	// Step - The properties for updating a task step.
	Step BasicTaskStepUpdateParameters `json:"step,omitempty"`
	// Trigger - The properties for updating trigger properties.
	Trigger *TriggerUpdateParameters `json:"trigger,omitempty"`
	// Credentials - The parameters that describes a set of credentials that will be used when this run is invoked.
	Credentials *Credentials `json:"credentials,omitempty"`
	// LogTemplate - The template that describes the repository and tag information for run log artifact.
	LogTemplate *string `json:"logTemplate,omitempty"`
}

TaskPropertiesUpdateParameters the properties for updating a task.

func (*TaskPropertiesUpdateParameters) UnmarshalJSON

func (tpup *TaskPropertiesUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskPropertiesUpdateParameters struct.

type TaskRun

type TaskRun struct {
	autorest.Response `json:"-"`
	// Identity - Identity for the resource.
	Identity *IdentityProperties `json:"identity,omitempty"`
	// TaskRunProperties - The properties associated with the task run, i.e., request and result of the run
	*TaskRunProperties `json:"properties,omitempty"`
	// Location - The location of the resource
	Location *string `json:"location,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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

TaskRun the task run that has the ARM resource and properties. The task run will have the information of request and result of a run.

func (TaskRun) MarshalJSON

func (tr TaskRun) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskRun.

func (*TaskRun) UnmarshalJSON

func (tr *TaskRun) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskRun struct.

type TaskRunListResult

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

TaskRunListResult the collection of task runs.

func (TaskRunListResult) IsEmpty

func (trlr TaskRunListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TaskRunListResultIterator

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

TaskRunListResultIterator provides access to a complete listing of TaskRun values.

func NewTaskRunListResultIterator

func NewTaskRunListResultIterator(page TaskRunListResultPage) TaskRunListResultIterator

Creates a new instance of the TaskRunListResultIterator type.

func (*TaskRunListResultIterator) Next

func (iter *TaskRunListResultIterator) 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 (*TaskRunListResultIterator) NextWithContext

func (iter *TaskRunListResultIterator) 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 (TaskRunListResultIterator) NotDone

func (iter TaskRunListResultIterator) NotDone() bool

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

func (TaskRunListResultIterator) Response

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

func (TaskRunListResultIterator) Value

func (iter TaskRunListResultIterator) Value() TaskRun

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

type TaskRunListResultPage

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

TaskRunListResultPage contains a page of TaskRun values.

func NewTaskRunListResultPage

func NewTaskRunListResultPage(cur TaskRunListResult, getNextPage func(context.Context, TaskRunListResult) (TaskRunListResult, error)) TaskRunListResultPage

Creates a new instance of the TaskRunListResultPage type.

func (*TaskRunListResultPage) Next

func (page *TaskRunListResultPage) 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 (*TaskRunListResultPage) NextWithContext

func (page *TaskRunListResultPage) 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 (TaskRunListResultPage) NotDone

func (page TaskRunListResultPage) NotDone() bool

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

func (TaskRunListResultPage) Response

func (page TaskRunListResultPage) Response() TaskRunListResult

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

func (TaskRunListResultPage) Values

func (page TaskRunListResultPage) Values() []TaskRun

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

type TaskRunProperties

type TaskRunProperties struct {
	// ProvisioningState - READ-ONLY; The provisioning state of this task run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// RunRequest - The request (parameters) for the run
	RunRequest BasicRunRequest `json:"runRequest,omitempty"`
	// RunResult - READ-ONLY; The result of this task run
	RunResult *Run `json:"runResult,omitempty"`
	// ForceUpdateTag - How the run should be forced to rerun even if the run request configuration has not changed
	ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
}

TaskRunProperties the properties of task run.

func (TaskRunProperties) MarshalJSON

func (trp TaskRunProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskRunProperties.

func (*TaskRunProperties) UnmarshalJSON

func (trp *TaskRunProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskRunProperties struct.

type TaskRunPropertiesUpdateParameters

type TaskRunPropertiesUpdateParameters struct {
	// RunRequest - The request (parameters) for the new run
	RunRequest BasicRunRequest `json:"runRequest,omitempty"`
	// ForceUpdateTag - How the run should be forced to rerun even if the run request configuration has not changed
	ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
}

TaskRunPropertiesUpdateParameters the properties of a task run update parameters.

func (*TaskRunPropertiesUpdateParameters) UnmarshalJSON

func (trpup *TaskRunPropertiesUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskRunPropertiesUpdateParameters struct.

type TaskRunRequest

type TaskRunRequest struct {
	// TaskID - The resource ID of task against which run has to be queued.
	TaskID *string `json:"taskId,omitempty"`
	// OverrideTaskStepProperties - Set of overridable parameters that can be passed when running a Task.
	OverrideTaskStepProperties *OverrideTaskStepProperties `json:"overrideTaskStepProperties,omitempty"`
	// IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
	IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
	// AgentPoolName - The dedicated agent pool for the run.
	AgentPoolName *string `json:"agentPoolName,omitempty"`
	// LogTemplate - The template that describes the repository and tag information for run log artifact.
	LogTemplate *string `json:"logTemplate,omitempty"`
	// Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
	Type Type `json:"type,omitempty"`
}

TaskRunRequest the parameters for a task run request.

func (TaskRunRequest) AsBasicRunRequest

func (trr TaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsDockerBuildRequest

func (trr TaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsEncodedTaskRunRequest

func (trr TaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsFileTaskRunRequest

func (trr TaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsRunRequest

func (trr TaskRunRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsTaskRunRequest

func (trr TaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) MarshalJSON

func (trr TaskRunRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskRunRequest.

type TaskRunUpdateParameters

type TaskRunUpdateParameters struct {
	// Identity - Identity for the resource.
	Identity *IdentityProperties `json:"identity,omitempty"`
	// TaskRunPropertiesUpdateParameters - The properties for updating a task run.
	*TaskRunPropertiesUpdateParameters `json:"properties,omitempty"`
	// Location - The location of the resource
	Location *string `json:"location,omitempty"`
	// Tags - The ARM resource tags.
	Tags map[string]*string `json:"tags"`
}

TaskRunUpdateParameters the parameters for updating a task run.

func (TaskRunUpdateParameters) MarshalJSON

func (trup TaskRunUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskRunUpdateParameters.

func (*TaskRunUpdateParameters) UnmarshalJSON

func (trup *TaskRunUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskRunUpdateParameters struct.

type TaskRunsClient

type TaskRunsClient struct {
	BaseClient
}

TaskRunsClient is the client for the TaskRuns methods of the Containerregistry service.

func NewTaskRunsClient

func NewTaskRunsClient(subscriptionID string) TaskRunsClient

NewTaskRunsClient creates an instance of the TaskRunsClient client.

func NewTaskRunsClientWithBaseURI

func NewTaskRunsClientWithBaseURI(baseURI string, subscriptionID string) TaskRunsClient

NewTaskRunsClientWithBaseURI creates an instance of the TaskRunsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TaskRunsClient) Create

func (client TaskRunsClient) Create(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, taskRun TaskRun) (result TaskRunsCreateFuture, err error)

Create creates a task run 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. taskRunName - the name of the task run. taskRun - the parameters of a run that needs to scheduled.

func (TaskRunsClient) CreatePreparer

func (client TaskRunsClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, taskRun TaskRun) (*http.Request, error)

CreatePreparer prepares the Create request.

func (TaskRunsClient) CreateResponder

func (client TaskRunsClient) CreateResponder(resp *http.Response) (result TaskRun, err error)

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

func (TaskRunsClient) CreateSender

func (client TaskRunsClient) CreateSender(req *http.Request) (future TaskRunsCreateFuture, err error)

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

func (TaskRunsClient) Delete

func (client TaskRunsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, taskRunName string) (result TaskRunsDeleteFuture, err error)

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

func (TaskRunsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (TaskRunsClient) DeleteResponder

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

func (client TaskRunsClient) DeleteSender(req *http.Request) (future TaskRunsDeleteFuture, err error)

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

func (TaskRunsClient) Get

func (client TaskRunsClient) Get(ctx context.Context, resourceGroupName string, registryName string, taskRunName string) (result TaskRun, err error)

Get gets the detailed information for a given task run. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. taskRunName - the name of the task run.

func (TaskRunsClient) GetDetails

func (client TaskRunsClient) GetDetails(ctx context.Context, resourceGroupName string, registryName string, taskRunName string) (result TaskRun, err error)

GetDetails gets the detailed information for a given task run that includes all secrets. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. taskRunName - the name of the task run.

func (TaskRunsClient) GetDetailsPreparer

func (client TaskRunsClient) GetDetailsPreparer(ctx context.Context, resourceGroupName string, registryName string, taskRunName string) (*http.Request, error)

GetDetailsPreparer prepares the GetDetails request.

func (TaskRunsClient) GetDetailsResponder

func (client TaskRunsClient) GetDetailsResponder(resp *http.Response) (result TaskRun, err error)

GetDetailsResponder handles the response to the GetDetails request. The method always closes the http.Response Body.

func (TaskRunsClient) GetDetailsSender

func (client TaskRunsClient) GetDetailsSender(req *http.Request) (*http.Response, error)

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

func (TaskRunsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (TaskRunsClient) GetResponder

func (client TaskRunsClient) GetResponder(resp *http.Response) (result TaskRun, err error)

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

func (TaskRunsClient) GetSender

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

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

List lists all the task runs 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.

func (TaskRunsClient) ListComplete

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

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

func (TaskRunsClient) ListPreparer

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

ListPreparer prepares the List request.

func (TaskRunsClient) ListResponder

func (client TaskRunsClient) ListResponder(resp *http.Response) (result TaskRunListResult, err error)

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

func (TaskRunsClient) ListSender

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

func (client TaskRunsClient) Update(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, updateParameters TaskRunUpdateParameters) (result TaskRunsUpdateFuture, err error)

Update updates a task run 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. taskRunName - the name of the task run. updateParameters - the parameters for updating a task run.

func (TaskRunsClient) UpdatePreparer

func (client TaskRunsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, updateParameters TaskRunUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (TaskRunsClient) UpdateResponder

func (client TaskRunsClient) UpdateResponder(resp *http.Response) (result TaskRun, err error)

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

func (TaskRunsClient) UpdateSender

func (client TaskRunsClient) UpdateSender(req *http.Request) (future TaskRunsUpdateFuture, err error)

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

type TaskRunsCreateFuture

type TaskRunsCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TaskRunsClient) (TaskRun, error)
}

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

func (*TaskRunsCreateFuture) UnmarshalJSON

func (future *TaskRunsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TaskRunsDeleteFuture

type TaskRunsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TaskRunsClient) (autorest.Response, error)
}

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

func (*TaskRunsDeleteFuture) UnmarshalJSON

func (future *TaskRunsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TaskRunsUpdateFuture

type TaskRunsUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TaskRunsClient) (TaskRun, error)
}

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

func (*TaskRunsUpdateFuture) UnmarshalJSON

func (future *TaskRunsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TaskStatus

type TaskStatus string

TaskStatus enumerates the values for task status.

const (
	// TaskStatusDisabled ...
	TaskStatusDisabled TaskStatus = "Disabled"
	// TaskStatusEnabled ...
	TaskStatusEnabled TaskStatus = "Enabled"
)

func PossibleTaskStatusValues

func PossibleTaskStatusValues() []TaskStatus

PossibleTaskStatusValues returns an array of possible values for the TaskStatus const type.

type TaskStepProperties

type TaskStepProperties struct {
	// BaseImageDependencies - READ-ONLY; List of base image dependencies for a step.
	BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
	// ContextPath - The URL(absolute or relative) of the source context for the task step.
	ContextPath *string `json:"contextPath,omitempty"`
	// ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
	ContextAccessToken *string `json:"contextAccessToken,omitempty"`
	// Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask'
	Type TypeBasicTaskStepProperties `json:"type,omitempty"`
}

TaskStepProperties base properties for any task step.

func (TaskStepProperties) AsBasicTaskStepProperties

func (tsp TaskStepProperties) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)

AsBasicTaskStepProperties is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) AsDockerBuildStep

func (tsp TaskStepProperties) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) AsEncodedTaskStep

func (tsp TaskStepProperties) AsEncodedTaskStep() (*EncodedTaskStep, bool)

AsEncodedTaskStep is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) AsFileTaskStep

func (tsp TaskStepProperties) AsFileTaskStep() (*FileTaskStep, bool)

AsFileTaskStep is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) AsTaskStepProperties

func (tsp TaskStepProperties) AsTaskStepProperties() (*TaskStepProperties, bool)

AsTaskStepProperties is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) MarshalJSON

func (tsp TaskStepProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskStepProperties.

type TaskStepUpdateParameters

type TaskStepUpdateParameters struct {
	// ContextPath - The URL(absolute or relative) of the source context for the task step.
	ContextPath *string `json:"contextPath,omitempty"`
	// ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
	ContextAccessToken *string `json:"contextAccessToken,omitempty"`
	// Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask'
	Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"`
}

TaskStepUpdateParameters base properties for updating any task step.

func (TaskStepUpdateParameters) AsBasicTaskStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)

AsBasicTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) AsDockerBuildStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)

AsEncodedTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) AsFileTaskStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)

AsFileTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) AsTaskStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)

AsTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) MarshalJSON

func (tsup TaskStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskStepUpdateParameters.

type TaskUpdateParameters

type TaskUpdateParameters struct {
	// Identity - Identity for the resource.
	Identity *IdentityProperties `json:"identity,omitempty"`
	// TaskPropertiesUpdateParameters - The properties for updating a task.
	*TaskPropertiesUpdateParameters `json:"properties,omitempty"`
	// Tags - The ARM resource tags.
	Tags map[string]*string `json:"tags"`
}

TaskUpdateParameters the parameters for updating a task.

func (TaskUpdateParameters) MarshalJSON

func (tup TaskUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskUpdateParameters.

func (*TaskUpdateParameters) UnmarshalJSON

func (tup *TaskUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskUpdateParameters struct.

type TasksClient

type TasksClient struct {
	BaseClient
}

TasksClient is the client for the Tasks methods of the Containerregistry service.

func NewTasksClient

func NewTasksClient(subscriptionID string) TasksClient

NewTasksClient creates an instance of the TasksClient client.

func NewTasksClientWithBaseURI

func NewTasksClientWithBaseURI(baseURI string, subscriptionID string) TasksClient

NewTasksClientWithBaseURI creates an instance of the TasksClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TasksClient) Create

func (client TasksClient) Create(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task) (result TasksCreateFuture, err error)

Create creates a 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. taskName - the name of the container registry task. taskCreateParameters - the parameters for creating a task.

func (TasksClient) CreatePreparer

func (client TasksClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task) (*http.Request, error)

CreatePreparer prepares the Create request.

func (TasksClient) CreateResponder

func (client TasksClient) CreateResponder(resp *http.Response) (result Task, err error)

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

func (TasksClient) CreateSender

func (client TasksClient) CreateSender(req *http.Request) (future TasksCreateFuture, err error)

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

func (TasksClient) Delete

func (client TasksClient) Delete(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result TasksDeleteFuture, err error)

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

func (TasksClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (TasksClient) DeleteResponder

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

func (client TasksClient) DeleteSender(req *http.Request) (future TasksDeleteFuture, err error)

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

func (TasksClient) Get

func (client TasksClient) Get(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result Task, err error)

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

func (TasksClient) GetDetails

func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result Task, err error)

GetDetails returns a task with extended information that includes all secrets. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. taskName - the name of the container registry task.

func (TasksClient) GetDetailsPreparer

func (client TasksClient) GetDetailsPreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string) (*http.Request, error)

GetDetailsPreparer prepares the GetDetails request.

func (TasksClient) GetDetailsResponder

func (client TasksClient) GetDetailsResponder(resp *http.Response) (result Task, err error)

GetDetailsResponder handles the response to the GetDetails request. The method always closes the http.Response Body.

func (TasksClient) GetDetailsSender

func (client TasksClient) GetDetailsSender(req *http.Request) (*http.Response, error)

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

func (TasksClient) GetPreparer

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

GetPreparer prepares the Get request.

func (TasksClient) GetResponder

func (client TasksClient) GetResponder(resp *http.Response) (result Task, err error)

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

func (TasksClient) GetSender

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

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

List lists all the 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.

func (TasksClient) ListComplete

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

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

func (TasksClient) ListPreparer

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

ListPreparer prepares the List request.

func (TasksClient) ListResponder

func (client TasksClient) ListResponder(resp *http.Response) (result TaskListResult, err error)

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

func (TasksClient) ListSender

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

func (client TasksClient) Update(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters) (result TasksUpdateFuture, err error)

Update updates a 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. taskName - the name of the container registry task. taskUpdateParameters - the parameters for updating a task.

func (TasksClient) UpdatePreparer

func (client TasksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (TasksClient) UpdateResponder

func (client TasksClient) UpdateResponder(resp *http.Response) (result Task, err error)

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

func (TasksClient) UpdateSender

func (client TasksClient) UpdateSender(req *http.Request) (future TasksUpdateFuture, err error)

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

type TasksCreateFuture

type TasksCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TasksClient) (Task, error)
}

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

func (*TasksCreateFuture) UnmarshalJSON

func (future *TasksCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TasksDeleteFuture

type TasksDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TasksClient) (autorest.Response, error)
}

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

func (*TasksDeleteFuture) UnmarshalJSON

func (future *TasksDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TasksUpdateFuture

type TasksUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TasksClient) (Task, error)
}

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

func (*TasksUpdateFuture) UnmarshalJSON

func (future *TasksUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TimerTrigger

type TimerTrigger struct {
	// Schedule - The CRON expression for the task schedule
	Schedule *string `json:"schedule,omitempty"`
	// Status - The current status of trigger. Possible values include: 'TriggerStatusEnabled', 'TriggerStatusDisabled'
	Status TriggerStatus `json:"status,omitempty"`
	// Name - The name of the trigger.
	Name *string `json:"name,omitempty"`
}

TimerTrigger the properties of a timer trigger.

type TimerTriggerDescriptor

type TimerTriggerDescriptor struct {
	// TimerTriggerName - The timer trigger name that caused the run.
	TimerTriggerName *string `json:"timerTriggerName,omitempty"`
	// ScheduleOccurrence - The occurrence that triggered the run.
	ScheduleOccurrence *string `json:"scheduleOccurrence,omitempty"`
}

TimerTriggerDescriptor ...

type TimerTriggerUpdateParameters

type TimerTriggerUpdateParameters struct {
	// Schedule - The CRON expression for the task schedule
	Schedule *string `json:"schedule,omitempty"`
	// Status - The current status of trigger. Possible values include: 'TriggerStatusEnabled', 'TriggerStatusDisabled'
	Status TriggerStatus `json:"status,omitempty"`
	// Name - The name of the trigger.
	Name *string `json:"name,omitempty"`
}

TimerTriggerUpdateParameters the properties for updating a timer trigger.

type Token

type Token struct {
	autorest.Response `json:"-"`
	// TokenProperties - The properties of the token.
	*TokenProperties `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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

Token an object that represents a token for a container registry.

func (Token) MarshalJSON

func (t Token) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Token.

func (*Token) UnmarshalJSON

func (t *Token) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Token struct.

type TokenCertificate

type TokenCertificate struct {
	// Name - Possible values include: 'Certificate1', 'Certificate2'
	Name TokenCertificateName `json:"name,omitempty"`
	// Expiry - The expiry datetime of the certificate.
	Expiry *date.Time `json:"expiry,omitempty"`
	// Thumbprint - The thumbprint of the certificate.
	Thumbprint *string `json:"thumbprint,omitempty"`
	// EncodedPemCertificate - Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
	EncodedPemCertificate *string `json:"encodedPemCertificate,omitempty"`
}

TokenCertificate the properties of a certificate used for authenticating a token.

type TokenCertificateName

type TokenCertificateName string

TokenCertificateName enumerates the values for token certificate name.

const (
	// Certificate1 ...
	Certificate1 TokenCertificateName = "certificate1"
	// Certificate2 ...
	Certificate2 TokenCertificateName = "certificate2"
)

func PossibleTokenCertificateNameValues

func PossibleTokenCertificateNameValues() []TokenCertificateName

PossibleTokenCertificateNameValues returns an array of possible values for the TokenCertificateName const type.

type TokenCredentialsProperties

type TokenCredentialsProperties struct {
	ActiveDirectoryObject *ActiveDirectoryObject `json:"activeDirectoryObject,omitempty"`
	Certificates          *[]TokenCertificate    `json:"certificates,omitempty"`
	Passwords             *[]TokenPassword       `json:"passwords,omitempty"`
}

TokenCredentialsProperties the properties of the credentials that can be used for authenticating the token.

type TokenListResult

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

TokenListResult the result of a request to list tokens for a container registry.

func (TokenListResult) IsEmpty

func (tlr TokenListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TokenListResultIterator

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

TokenListResultIterator provides access to a complete listing of Token values.

func NewTokenListResultIterator

func NewTokenListResultIterator(page TokenListResultPage) TokenListResultIterator

Creates a new instance of the TokenListResultIterator type.

func (*TokenListResultIterator) Next

func (iter *TokenListResultIterator) 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 (*TokenListResultIterator) NextWithContext

func (iter *TokenListResultIterator) 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 (TokenListResultIterator) NotDone

func (iter TokenListResultIterator) NotDone() bool

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

func (TokenListResultIterator) Response

func (iter TokenListResultIterator) Response() TokenListResult

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

func (TokenListResultIterator) Value

func (iter TokenListResultIterator) Value() Token

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

type TokenListResultPage

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

TokenListResultPage contains a page of Token values.

func NewTokenListResultPage

func NewTokenListResultPage(cur TokenListResult, getNextPage func(context.Context, TokenListResult) (TokenListResult, error)) TokenListResultPage

Creates a new instance of the TokenListResultPage type.

func (*TokenListResultPage) Next

func (page *TokenListResultPage) 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 (*TokenListResultPage) NextWithContext

func (page *TokenListResultPage) 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 (TokenListResultPage) NotDone

func (page TokenListResultPage) NotDone() bool

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

func (TokenListResultPage) Response

func (page TokenListResultPage) Response() TokenListResult

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

func (TokenListResultPage) Values

func (page TokenListResultPage) Values() []Token

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

type TokenPassword

type TokenPassword struct {
	// CreationTime - The creation datetime of the password.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// Expiry - The expiry datetime of the password.
	Expiry *date.Time `json:"expiry,omitempty"`
	// Name - The password name "password1" or "password2". Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
	Name TokenPasswordName `json:"name,omitempty"`
	// Value - READ-ONLY; The password value.
	Value *string `json:"value,omitempty"`
}

TokenPassword the password that will be used for authenticating the token of a container registry.

func (TokenPassword) MarshalJSON

func (tp TokenPassword) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TokenPassword.

type TokenPasswordName

type TokenPasswordName string

TokenPasswordName enumerates the values for token password name.

const (
	// TokenPasswordNamePassword1 ...
	TokenPasswordNamePassword1 TokenPasswordName = "password1"
	// TokenPasswordNamePassword2 ...
	TokenPasswordNamePassword2 TokenPasswordName = "password2"
)

func PossibleTokenPasswordNameValues

func PossibleTokenPasswordNameValues() []TokenPasswordName

PossibleTokenPasswordNameValues returns an array of possible values for the TokenPasswordName const type.

type TokenProperties

type TokenProperties struct {
	// CreationDate - READ-ONLY; The creation date of scope map.
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// ScopeMapID - The resource ID of the scope map to which the token will be associated with.
	ScopeMapID *string `json:"scopeMapId,omitempty"`
	// Credentials - The credentials that can be used for authenticating the token.
	Credentials *TokenCredentialsProperties `json:"credentials,omitempty"`
	// Status - The status of the token example enabled or disabled. Possible values include: 'TokenStatusEnabled', 'TokenStatusDisabled'
	Status TokenStatus `json:"status,omitempty"`
}

TokenProperties the properties of a token.

func (TokenProperties) MarshalJSON

func (tp TokenProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TokenProperties.

type TokenStatus

type TokenStatus string

TokenStatus enumerates the values for token status.

const (
	// TokenStatusDisabled ...
	TokenStatusDisabled TokenStatus = "disabled"
	// TokenStatusEnabled ...
	TokenStatusEnabled TokenStatus = "enabled"
)

func PossibleTokenStatusValues

func PossibleTokenStatusValues() []TokenStatus

PossibleTokenStatusValues returns an array of possible values for the TokenStatus const type.

type TokenType

type TokenType string

TokenType enumerates the values for token type.

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

func PossibleTokenTypeValues

func PossibleTokenTypeValues() []TokenType

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

type TokenUpdateParameters

type TokenUpdateParameters struct {
	// TokenUpdateProperties - The properties of the token update parameters.
	*TokenUpdateProperties `json:"properties,omitempty"`
}

TokenUpdateParameters the parameters for updating a token.

func (TokenUpdateParameters) MarshalJSON

func (tup TokenUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TokenUpdateParameters.

func (*TokenUpdateParameters) UnmarshalJSON

func (tup *TokenUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TokenUpdateParameters struct.

type TokenUpdateProperties

type TokenUpdateProperties struct {
	// ScopeMapID - The resource ID of the scope map to which the token will be associated with.
	ScopeMapID *string `json:"scopeMapId,omitempty"`
	// Status - The status of the token example enabled or disabled. Possible values include: 'TokenStatusEnabled', 'TokenStatusDisabled'
	Status TokenStatus `json:"status,omitempty"`
	// Credentials - The credentials that can be used for authenticating the token.
	Credentials *TokenCredentialsProperties `json:"credentials,omitempty"`
}

TokenUpdateProperties the parameters for updating token properties.

type TokensClient

type TokensClient struct {
	BaseClient
}

TokensClient is the client for the Tokens methods of the Containerregistry service.

func NewTokensClient

func NewTokensClient(subscriptionID string) TokensClient

NewTokensClient creates an instance of the TokensClient client.

func NewTokensClientWithBaseURI

func NewTokensClientWithBaseURI(baseURI string, subscriptionID string) TokensClient

NewTokensClientWithBaseURI creates an instance of the TokensClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TokensClient) Create

func (client TokensClient) Create(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenCreateParameters Token) (result TokensCreateFuture, err error)

Create creates a token 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. tokenName - the name of the token. tokenCreateParameters - the parameters for creating a token.

func (TokensClient) CreatePreparer

func (client TokensClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenCreateParameters Token) (*http.Request, error)

CreatePreparer prepares the Create request.

func (TokensClient) CreateResponder

func (client TokensClient) CreateResponder(resp *http.Response) (result Token, err error)

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

func (TokensClient) CreateSender

func (client TokensClient) CreateSender(req *http.Request) (future TokensCreateFuture, err error)

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

func (TokensClient) Delete

func (client TokensClient) Delete(ctx context.Context, resourceGroupName string, registryName string, tokenName string) (result TokensDeleteFuture, err error)

Delete deletes a token 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. tokenName - the name of the token.

func (TokensClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (TokensClient) DeleteResponder

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

func (client TokensClient) DeleteSender(req *http.Request) (future TokensDeleteFuture, err error)

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

func (TokensClient) Get

func (client TokensClient) Get(ctx context.Context, resourceGroupName string, registryName string, tokenName string) (result Token, err error)

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

func (TokensClient) GetPreparer

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

GetPreparer prepares the Get request.

func (TokensClient) GetResponder

func (client TokensClient) GetResponder(resp *http.Response) (result Token, err error)

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

func (TokensClient) GetSender

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

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

List lists all the tokens 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 (TokensClient) ListComplete

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

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

func (TokensClient) ListPreparer

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

ListPreparer prepares the List request.

func (TokensClient) ListResponder

func (client TokensClient) ListResponder(resp *http.Response) (result TokenListResult, err error)

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

func (TokensClient) ListSender

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

func (client TokensClient) Update(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenUpdateParameters TokenUpdateParameters) (result TokensUpdateFuture, err error)

Update updates a token 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. tokenName - the name of the token. tokenUpdateParameters - the parameters for updating a token.

func (TokensClient) UpdatePreparer

func (client TokensClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenUpdateParameters TokenUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (TokensClient) UpdateResponder

func (client TokensClient) UpdateResponder(resp *http.Response) (result Token, err error)

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

func (TokensClient) UpdateSender

func (client TokensClient) UpdateSender(req *http.Request) (future TokensUpdateFuture, err error)

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

type TokensCreateFuture

type TokensCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TokensClient) (Token, error)
}

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

func (*TokensCreateFuture) UnmarshalJSON

func (future *TokensCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TokensDeleteFuture

type TokensDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TokensClient) (autorest.Response, error)
}

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

func (*TokensDeleteFuture) UnmarshalJSON

func (future *TokensDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TokensUpdateFuture

type TokensUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TokensClient) (Token, error)
}

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

func (*TokensUpdateFuture) UnmarshalJSON

func (future *TokensUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TriggerProperties

type TriggerProperties struct {
	// TimerTriggers - The collection of timer triggers.
	TimerTriggers *[]TimerTrigger `json:"timerTriggers,omitempty"`
	// SourceTriggers - The collection of triggers based on source code repository.
	SourceTriggers *[]SourceTrigger `json:"sourceTriggers,omitempty"`
	// BaseImageTrigger - The trigger based on base image dependencies.
	BaseImageTrigger *BaseImageTrigger `json:"baseImageTrigger,omitempty"`
}

TriggerProperties the properties of a trigger.

type TriggerStatus

type TriggerStatus string

TriggerStatus enumerates the values for trigger status.

const (
	// TriggerStatusDisabled ...
	TriggerStatusDisabled TriggerStatus = "Disabled"
	// TriggerStatusEnabled ...
	TriggerStatusEnabled TriggerStatus = "Enabled"
)

func PossibleTriggerStatusValues

func PossibleTriggerStatusValues() []TriggerStatus

PossibleTriggerStatusValues returns an array of possible values for the TriggerStatus const type.

type TriggerUpdateParameters

type TriggerUpdateParameters struct {
	// TimerTriggers - The collection of timer triggers.
	TimerTriggers *[]TimerTriggerUpdateParameters `json:"timerTriggers,omitempty"`
	// SourceTriggers - The collection of triggers based on source code repository.
	SourceTriggers *[]SourceTriggerUpdateParameters `json:"sourceTriggers,omitempty"`
	// BaseImageTrigger - The trigger based on base image dependencies.
	BaseImageTrigger *BaseImageTriggerUpdateParameters `json:"baseImageTrigger,omitempty"`
}

TriggerUpdateParameters the properties for updating triggers.

type TrustPolicy

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 the content trust policy for a container registry.

type TrustPolicyType

type TrustPolicyType string

TrustPolicyType enumerates the values for trust policy type.

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

func PossibleTrustPolicyTypeValues

func PossibleTrustPolicyTypeValues() []TrustPolicyType

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

type Type

type Type string

Type enumerates the values for type.

const (
	// TypeDockerBuildRequest ...
	TypeDockerBuildRequest Type = "DockerBuildRequest"
	// TypeEncodedTaskRunRequest ...
	TypeEncodedTaskRunRequest Type = "EncodedTaskRunRequest"
	// TypeFileTaskRunRequest ...
	TypeFileTaskRunRequest Type = "FileTaskRunRequest"
	// TypeRunRequest ...
	TypeRunRequest Type = "RunRequest"
	// TypeTaskRunRequest ...
	TypeTaskRunRequest Type = "TaskRunRequest"
)

func PossibleTypeValues

func PossibleTypeValues() []Type

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

type TypeBasicTaskStepProperties

type TypeBasicTaskStepProperties string

TypeBasicTaskStepProperties enumerates the values for type basic task step properties.

const (
	// TypeDocker ...
	TypeDocker TypeBasicTaskStepProperties = "Docker"
	// TypeEncodedTask ...
	TypeEncodedTask TypeBasicTaskStepProperties = "EncodedTask"
	// TypeFileTask ...
	TypeFileTask TypeBasicTaskStepProperties = "FileTask"
	// TypeTaskStepProperties ...
	TypeTaskStepProperties TypeBasicTaskStepProperties = "TaskStepProperties"
)

func PossibleTypeBasicTaskStepPropertiesValues

func PossibleTypeBasicTaskStepPropertiesValues() []TypeBasicTaskStepProperties

PossibleTypeBasicTaskStepPropertiesValues returns an array of possible values for the TypeBasicTaskStepProperties const type.

type TypeBasicTaskStepUpdateParameters

type TypeBasicTaskStepUpdateParameters string

TypeBasicTaskStepUpdateParameters enumerates the values for type basic task step update parameters.

const (
	// TypeBasicTaskStepUpdateParametersTypeDocker ...
	TypeBasicTaskStepUpdateParametersTypeDocker TypeBasicTaskStepUpdateParameters = "Docker"
	// TypeBasicTaskStepUpdateParametersTypeEncodedTask ...
	TypeBasicTaskStepUpdateParametersTypeEncodedTask TypeBasicTaskStepUpdateParameters = "EncodedTask"
	// TypeBasicTaskStepUpdateParametersTypeFileTask ...
	TypeBasicTaskStepUpdateParametersTypeFileTask TypeBasicTaskStepUpdateParameters = "FileTask"
	// TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters ...
	TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters TypeBasicTaskStepUpdateParameters = "TaskStepUpdateParameters"
)

func PossibleTypeBasicTaskStepUpdateParametersValues

func PossibleTypeBasicTaskStepUpdateParametersValues() []TypeBasicTaskStepUpdateParameters

PossibleTypeBasicTaskStepUpdateParametersValues returns an array of possible values for the TypeBasicTaskStepUpdateParameters const type.

type UpdateTriggerPayloadType

type UpdateTriggerPayloadType string

UpdateTriggerPayloadType enumerates the values for update trigger payload type.

const (
	// UpdateTriggerPayloadTypeDefault ...
	UpdateTriggerPayloadTypeDefault UpdateTriggerPayloadType = "Default"
	// UpdateTriggerPayloadTypeToken ...
	UpdateTriggerPayloadTypeToken UpdateTriggerPayloadType = "Token"
)

func PossibleUpdateTriggerPayloadTypeValues

func PossibleUpdateTriggerPayloadTypeValues() []UpdateTriggerPayloadType

PossibleUpdateTriggerPayloadTypeValues returns an array of possible values for the UpdateTriggerPayloadType const type.

type UserIdentityProperties

type UserIdentityProperties struct {
	// PrincipalID - The principal id of user assigned identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// ClientID - The client id of user assigned identity.
	ClientID *string `json:"clientId,omitempty"`
}

UserIdentityProperties ...

type Variant

type Variant string

Variant enumerates the values for variant.

const (
	// V6 ...
	V6 Variant = "v6"
	// V7 ...
	V7 Variant = "v7"
	// V8 ...
	V8 Variant = "v8"
)

func PossibleVariantValues

func PossibleVariantValues() []Variant

PossibleVariantValues returns an array of possible values for the Variant const type.

type VirtualNetworkRule

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

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"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty"`
}

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

func (Webhook) MarshalJSON

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

MarshalJSON is the custom marshaler for Webhook.

func (*Webhook) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Webhook struct.

type WebhookAction

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

func PossibleWebhookActionValues() []WebhookAction

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

type WebhookCreateParameters

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

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

MarshalJSON is the custom marshaler for WebhookCreateParameters.

func (*WebhookCreateParameters) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for WebhookCreateParameters struct.

type WebhookListResult

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

func (wlr WebhookListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type WebhookListResultIterator

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

WebhookListResultIterator provides access to a complete listing of Webhook values.

func NewWebhookListResultIterator

func NewWebhookListResultIterator(page WebhookListResultPage) WebhookListResultIterator

Creates a new instance of the WebhookListResultIterator type.

func (*WebhookListResultIterator) Next

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

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

func (iter WebhookListResultIterator) NotDone() bool

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

func (WebhookListResultIterator) Response

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

func (WebhookListResultIterator) Value

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

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

WebhookListResultPage contains a page of Webhook values.

func NewWebhookListResultPage

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

Creates a new instance of the WebhookListResultPage type.

func (*WebhookListResultPage) Next

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

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

func (page WebhookListResultPage) NotDone() bool

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

func (WebhookListResultPage) Response

func (page WebhookListResultPage) Response() WebhookListResult

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

func (WebhookListResultPage) Values

func (page WebhookListResultPage) Values() []Webhook

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

type WebhookProperties

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: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

WebhookProperties the properties of a webhook.

func (WebhookProperties) MarshalJSON

func (wp WebhookProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookProperties.

type WebhookPropertiesCreateParameters

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

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

MarshalJSON is the custom marshaler for WebhookPropertiesCreateParameters.

type WebhookPropertiesUpdateParameters

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

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

MarshalJSON is the custom marshaler for WebhookPropertiesUpdateParameters.

type WebhookStatus

type WebhookStatus string

WebhookStatus enumerates the values for webhook status.

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

func PossibleWebhookStatusValues

func PossibleWebhookStatusValues() []WebhookStatus

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

type WebhookUpdateParameters

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

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

MarshalJSON is the custom marshaler for WebhookUpdateParameters.

func (*WebhookUpdateParameters) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for WebhookUpdateParameters struct.

type WebhooksClient

type WebhooksClient struct {
	BaseClient
}

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

func NewWebhooksClient

func NewWebhooksClient(subscriptionID string) WebhooksClient

NewWebhooksClient creates an instance of the WebhooksClient client.

func NewWebhooksClientWithBaseURI

func NewWebhooksClientWithBaseURI(baseURI string, subscriptionID string) WebhooksClient

NewWebhooksClientWithBaseURI creates an instance of the WebhooksClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (WebhooksClient) Create

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (WebhooksClient) DeleteResponder

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

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

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

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

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

GetCallbackConfigPreparer prepares the GetCallbackConfig request.

func (WebhooksClient) GetCallbackConfigResponder

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

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

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

GetPreparer prepares the Get request.

func (WebhooksClient) GetResponder

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

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

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

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

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

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

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

ListEventsPreparer prepares the ListEvents request.

func (WebhooksClient) ListEventsResponder

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

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

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

ListPreparer prepares the List request.

func (WebhooksClient) ListResponder

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

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

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

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

PingPreparer prepares the Ping request.

func (WebhooksClient) PingResponder

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

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

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

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

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

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

type WebhooksCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(WebhooksClient) (Webhook, error)
}

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

func (*WebhooksCreateFuture) UnmarshalJSON

func (future *WebhooksCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type WebhooksDeleteFuture

type WebhooksDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(WebhooksClient) (autorest.Response, error)
}

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

func (*WebhooksDeleteFuture) UnmarshalJSON

func (future *WebhooksDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type WebhooksUpdateFuture

type WebhooksUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(WebhooksClient) (Webhook, error)
}

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

func (*WebhooksUpdateFuture) UnmarshalJSON

func (future *WebhooksUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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