containerregistry

package
v45.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 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 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 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 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 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 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(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 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 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 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 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 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(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 metrics 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 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 PolicyStatus

type PolicyStatus string

PolicyStatus enumerates the values for policy status.

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

func PossiblePolicyStatusValues

func PossiblePolicyStatusValues() []PolicyStatus

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

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

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

type QuarantinePolicy

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

QuarantinePolicy an object that represents 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) 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) ListPolicies

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

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

func (RegistriesClient) ListPoliciesPreparer

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

ListPoliciesPreparer prepares the ListPolicies request.

func (RegistriesClient) ListPoliciesResponder

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

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

func (RegistriesClient) ListPoliciesSender

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

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

func (RegistriesClient) ListPreparer

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

ListPreparer prepares the List request.

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

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

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

func (RegistriesClient) UpdatePoliciesPreparer

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

UpdatePoliciesPreparer prepares the UpdatePolicies request.

func (RegistriesClient) UpdatePoliciesResponder

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

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

func (RegistriesClient) UpdatePoliciesSender

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

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

func (RegistriesClient) UpdatePreparer

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.Future
}

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

func (*RegistriesCreateFuture) Result

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

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

type RegistriesDeleteFuture

type RegistriesDeleteFuture struct {
	azure.Future
}

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

func (*RegistriesDeleteFuture) Result

func (future *RegistriesDeleteFuture) Result(client RegistriesClient) (ar autorest.Response, err error)

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

type RegistriesGenerateCredentialsFuture

type RegistriesGenerateCredentialsFuture struct {
	azure.Future
}

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

func (*RegistriesGenerateCredentialsFuture) Result

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

type RegistriesImportImageFuture

type RegistriesImportImageFuture struct {
	azure.Future
}

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

func (*RegistriesImportImageFuture) Result

func (future *RegistriesImportImageFuture) Result(client RegistriesClient) (ar autorest.Response, err error)

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

type RegistriesUpdateFuture

type RegistriesUpdateFuture struct {
	azure.Future
}

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

func (*RegistriesUpdateFuture) Result

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

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

type RegistriesUpdatePoliciesFuture

type RegistriesUpdatePoliciesFuture struct {
	azure.Future
}

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

func (*RegistriesUpdatePoliciesFuture) Result

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

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

type Registry

type Registry struct {
	autorest.Response `json:"-"`
	// Sku - The SKU of the container registry.
	Sku *Sku `json:"sku,omitempty"`
	// RegistryProperties - The properties of the container registry.
	*RegistryProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource. This cannot be changed after the resource is created.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

Registry an object that represents a container registry.

func (Registry) MarshalJSON

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(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 RegistryPolicies

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

RegistryPolicies an object that represents policies for a container registry.

type RegistryProperties

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

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"`
	// StorageAccount - The parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry.
	StorageAccount *StorageAccountProperties `json:"storageAccount,omitempty"`
	// NetworkRuleSet - The network rule set for a container registry.
	NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"`
}

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

type RegistryUpdateParameters

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"`
	// 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"`
}

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

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

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

ReplicationProperties the properties of a replication.

type ReplicationUpdateParameters

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

ReplicationUpdateParameters the parameters for updating a replication.

func (ReplicationUpdateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for ReplicationUpdateParameters.

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.Future
}

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

func (*ReplicationsCreateFuture) Result

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

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

type ReplicationsDeleteFuture

type ReplicationsDeleteFuture struct {
	azure.Future
}

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

func (*ReplicationsDeleteFuture) Result

func (future *ReplicationsDeleteFuture) Result(client ReplicationsClient) (ar autorest.Response, err error)

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

type ReplicationsUpdateFuture

type ReplicationsUpdateFuture struct {
	azure.Future
}

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

func (*ReplicationsUpdateFuture) Result

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

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

type Request

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

Resource an Azure resource.

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

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

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(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.Future
}

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

func (*ScopeMapsCreateFuture) Result

func (future *ScopeMapsCreateFuture) Result(client ScopeMapsClient) (sm ScopeMap, err error)

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

type ScopeMapsDeleteFuture

type ScopeMapsDeleteFuture struct {
	azure.Future
}

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

func (*ScopeMapsDeleteFuture) Result

func (future *ScopeMapsDeleteFuture) Result(client ScopeMapsClient) (ar autorest.Response, err error)

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

type ScopeMapsUpdateFuture

type ScopeMapsUpdateFuture struct {
	azure.Future
}

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

func (*ScopeMapsUpdateFuture) Result

func (future *ScopeMapsUpdateFuture) Result(client ScopeMapsClient) (sm ScopeMap, err error)

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

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 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.

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

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(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 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.Future
}

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

func (*TokensCreateFuture) Result

func (future *TokensCreateFuture) Result(client TokensClient) (t Token, err error)

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

type TokensDeleteFuture

type TokensDeleteFuture struct {
	azure.Future
}

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

func (*TokensDeleteFuture) Result

func (future *TokensDeleteFuture) Result(client TokensClient) (ar autorest.Response, err error)

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

type TokensUpdateFuture

type TokensUpdateFuture struct {
	azure.Future
}

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

func (*TokensUpdateFuture) Result

func (future *TokensUpdateFuture) Result(client TokensClient) (t Token, err error)

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

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: 'Enabled', 'Disabled'
	Status PolicyStatus `json:"status,omitempty"`
}

TrustPolicy an object that represents 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 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"`
}

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(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.Future
}

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

func (*WebhooksCreateFuture) Result

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

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

type WebhooksDeleteFuture

type WebhooksDeleteFuture struct {
	azure.Future
}

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

func (*WebhooksDeleteFuture) Result

func (future *WebhooksDeleteFuture) Result(client WebhooksClient) (ar autorest.Response, err error)

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

type WebhooksUpdateFuture

type WebhooksUpdateFuture struct {
	azure.Future
}

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

func (*WebhooksUpdateFuture) Result

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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