containerregistry

package
v11.1.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package containerregistry implements the Azure ARM Containerregistry service API version 2017-10-01.

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 Actor

type Actor struct {
	Name *string `json:"name,omitempty"`
}

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

type CallbackConfig

type CallbackConfig struct {
	autorest.Response `json:"-"`
	ServiceURI        *string             `json:"serviceUri,omitempty"`
	CustomHeaders     *map[string]*string `json:"customHeaders,omitempty"`
}

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

type Event

type Event struct {
	ID                   *string               `json:"id,omitempty"`
	EventRequestMessage  *EventRequestMessage  `json:"eventRequestMessage,omitempty"`
	EventResponseMessage *EventResponseMessage `json:"eventResponseMessage,omitempty"`
}

Event is the event for a webhook.

type EventContent

type EventContent struct {
	ID        *string    `json:"id,omitempty"`
	Timestamp *date.Time `json:"timestamp,omitempty"`
	Action    *string    `json:"action,omitempty"`
	Target    *Target    `json:"target,omitempty"`
	Request   *Request   `json:"request,omitempty"`
	Actor     *Actor     `json:"actor,omitempty"`
	Source    *Source    `json:"source,omitempty"`
}

EventContent is the content of the event request message.

type EventInfo

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

EventInfo is the basic information of an event.

type EventListResult

type EventListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Event `json:"value,omitempty"`
	NextLink          *string  `json:"nextLink,omitempty"`
}

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

func (EventListResult) EventListResultPreparer

func (client EventListResult) EventListResultPreparer() (*http.Request, error)

EventListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type EventRequestMessage

type EventRequestMessage struct {
	Content    *EventContent       `json:"content,omitempty"`
	Headers    *map[string]*string `json:"headers,omitempty"`
	Method     *string             `json:"method,omitempty"`
	RequestURI *string             `json:"requestUri,omitempty"`
	Version    *string             `json:"version,omitempty"`
}

EventRequestMessage is the event request message sent to the service URI.

type EventResponseMessage

type EventResponseMessage struct {
	Content      *string             `json:"content,omitempty"`
	Headers      *map[string]*string `json:"headers,omitempty"`
	ReasonPhrase *string             `json:"reasonPhrase,omitempty"`
	StatusCode   *string             `json:"statusCode,omitempty"`
	Version      *string             `json:"version,omitempty"`
}

EventResponseMessage is the event response message received from the service URI.

type ManagementClient

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

ManagementClient is the base client for Containerregistry.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type OperationDefinition

type OperationDefinition struct {
	Name    *string                     `json:"name,omitempty"`
	Display *OperationDisplayDefinition `json:"display,omitempty"`
}

OperationDefinition is the definition of a container registry operation.

type OperationDisplayDefinition

type OperationDisplayDefinition struct {
	Provider    *string `json:"provider,omitempty"`
	Resource    *string `json:"resource,omitempty"`
	Operation   *string `json:"operation,omitempty"`
	Description *string `json:"description,omitempty"`
}

OperationDisplayDefinition is the display information for a container registry operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]OperationDefinition `json:"value,omitempty"`
	NextLink          *string                `json:"nextLink,omitempty"`
}

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

func (OperationListResult) OperationListResultPreparer

func (client OperationListResult) OperationListResultPreparer() (*http.Request, error)

OperationListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type OperationsClient

type OperationsClient struct {
	ManagementClient
}

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.

func (OperationsClient) List

func (client OperationsClient) List() (result OperationListResult, err error)

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

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(cancel <-chan struct{}) (<-chan OperationDefinition, <-chan error)

ListComplete gets all elements from the list without paging.

func (OperationsClient) ListNextResults

func (client OperationsClient) ListNextResults(lastResults OperationListResult) (result OperationListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer() (*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 specifies the password state for password name.
	Password PasswordName = "password"
	// Password2 specifies the password 2 state for password name.
	Password2 PasswordName = "password2"
)

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Canceled specifies the canceled state for provisioning state.
	Canceled ProvisioningState = "Canceled"
	// Creating specifies the creating state for provisioning state.
	Creating ProvisioningState = "Creating"
	// Deleting specifies the deleting state for provisioning state.
	Deleting ProvisioningState = "Deleting"
	// Failed specifies the failed state for provisioning state.
	Failed ProvisioningState = "Failed"
	// Succeeded specifies the succeeded state for provisioning state.
	Succeeded ProvisioningState = "Succeeded"
	// Updating specifies the updating state for provisioning state.
	Updating ProvisioningState = "Updating"
)

type RegenerateCredentialParameters

type RegenerateCredentialParameters struct {
	Name PasswordName `json:"name,omitempty"`
}

RegenerateCredentialParameters is the parameters used to regenerate the login credential.

type RegistriesClient

type RegistriesClient struct {
	ManagementClient
}

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

func NewRegistriesClient

func NewRegistriesClient(subscriptionID string) RegistriesClient

NewRegistriesClient creates an instance of the RegistriesClient client.

func NewRegistriesClientWithBaseURI

func NewRegistriesClientWithBaseURI(baseURI string, subscriptionID string) RegistriesClient

NewRegistriesClientWithBaseURI creates an instance of the RegistriesClient client.

func (RegistriesClient) CheckNameAvailability

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

registryNameCheckRequest is the object containing information for the availability request.

func (RegistriesClient) CheckNameAvailabilityPreparer

func (client RegistriesClient) CheckNameAvailabilityPreparer(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(resourceGroupName string, registryName string, registry Registry, cancel <-chan struct{}) (<-chan Registry, <-chan error)

Create creates a container registry with the specified parameters. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

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

func (RegistriesClient) CreatePreparer

func (client RegistriesClient) CreatePreparer(resourceGroupName string, registryName string, registry Registry, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, registryName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes a container registry. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

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

func (RegistriesClient) DeletePreparer

func (client RegistriesClient) DeletePreparer(resourceGroupName string, registryName string, cancel <-chan struct{}) (*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) (*http.Response, error)

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

func (RegistriesClient) Get

func (client RegistriesClient) Get(resourceGroupName string, registryName string) (result Registry, err error)

Get gets the properties of the specified container registry.

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

func (RegistriesClient) GetPreparer

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

func (client RegistriesClient) List() (result RegistryListResult, err error)

List lists all the container registries under the specified subscription.

func (RegistriesClient) ListByResourceGroup

func (client RegistriesClient) ListByResourceGroup(resourceGroupName string) (result RegistryListResult, err error)

ListByResourceGroup lists all the container registries under the specified resource group.

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

func (RegistriesClient) ListByResourceGroupComplete

func (client RegistriesClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan Registry, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (RegistriesClient) ListByResourceGroupNextResults

func (client RegistriesClient) ListByResourceGroupNextResults(lastResults RegistryListResult) (result RegistryListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (RegistriesClient) ListByResourceGroupPreparer

func (client RegistriesClient) ListByResourceGroupPreparer(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(cancel <-chan struct{}) (<-chan Registry, <-chan error)

ListComplete gets all elements from the list without paging.

func (RegistriesClient) ListCredentials

func (client RegistriesClient) ListCredentials(resourceGroupName string, registryName string) (result RegistryListCredentialsResult, err error)

ListCredentials lists the login credentials for the specified container registry.

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

func (RegistriesClient) ListCredentialsPreparer

func (client RegistriesClient) ListCredentialsPreparer(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) ListNextResults

func (client RegistriesClient) ListNextResults(lastResults RegistryListResult) (result RegistryListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (RegistriesClient) ListPreparer

func (client RegistriesClient) ListPreparer() (*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(resourceGroupName string, registryName string) (result RegistryUsageListResult, err error)

ListUsages gets the quota usages for the specified container registry.

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

func (RegistriesClient) ListUsagesPreparer

func (client RegistriesClient) ListUsagesPreparer(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(resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters) (result RegistryListCredentialsResult, err error)

RegenerateCredential regenerates one of the login credentials for the specified container registry.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. regenerateCredentialParameters is specifies name of the password which should be regenerated -- password or password2.

func (RegistriesClient) RegenerateCredentialPreparer

func (client RegistriesClient) RegenerateCredentialPreparer(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(resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters, cancel <-chan struct{}) (<-chan Registry, <-chan error)

Update updates a container registry with the specified parameters. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. registryUpdateParameters is the parameters for updating a container registry.

func (RegistriesClient) UpdatePreparer

func (client RegistriesClient) UpdatePreparer(resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters, cancel <-chan struct{}) (*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) (*http.Response, error)

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

type Registry

type Registry struct {
	autorest.Response   `json:"-"`
	ID                  *string             `json:"id,omitempty"`
	Name                *string             `json:"name,omitempty"`
	Type                *string             `json:"type,omitempty"`
	Location            *string             `json:"location,omitempty"`
	Tags                *map[string]*string `json:"tags,omitempty"`
	Sku                 *Sku                `json:"sku,omitempty"`
	*RegistryProperties `json:"properties,omitempty"`
}

Registry is an object that represents a container registry.

type RegistryListCredentialsResult

type RegistryListCredentialsResult struct {
	autorest.Response `json:"-"`
	Username          *string             `json:"username,omitempty"`
	Passwords         *[]RegistryPassword `json:"passwords,omitempty"`
}

RegistryListCredentialsResult is the response from the ListCredentials operation.

type RegistryListResult

type RegistryListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Registry `json:"value,omitempty"`
	NextLink          *string     `json:"nextLink,omitempty"`
}

RegistryListResult is the result of a request to list container registries.

func (RegistryListResult) RegistryListResultPreparer

func (client RegistryListResult) RegistryListResultPreparer() (*http.Request, error)

RegistryListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type RegistryNameCheckRequest

type RegistryNameCheckRequest struct {
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

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

type RegistryNameStatus

type RegistryNameStatus struct {
	autorest.Response `json:"-"`
	NameAvailable     *bool   `json:"nameAvailable,omitempty"`
	Reason            *string `json:"reason,omitempty"`
	Message           *string `json:"message,omitempty"`
}

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

type RegistryPassword

type RegistryPassword struct {
	Name  PasswordName `json:"name,omitempty"`
	Value *string      `json:"value,omitempty"`
}

RegistryPassword is the login password for the container registry.

type RegistryProperties

type RegistryProperties struct {
	LoginServer       *string                   `json:"loginServer,omitempty"`
	CreationDate      *date.Time                `json:"creationDate,omitempty"`
	ProvisioningState ProvisioningState         `json:"provisioningState,omitempty"`
	Status            *Status                   `json:"status,omitempty"`
	AdminUserEnabled  *bool                     `json:"adminUserEnabled,omitempty"`
	StorageAccount    *StorageAccountProperties `json:"storageAccount,omitempty"`
}

RegistryProperties is the properties of a container registry.

type RegistryPropertiesUpdateParameters

type RegistryPropertiesUpdateParameters struct {
	AdminUserEnabled *bool                     `json:"adminUserEnabled,omitempty"`
	StorageAccount   *StorageAccountProperties `json:"storageAccount,omitempty"`
}

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

type RegistryUpdateParameters

type RegistryUpdateParameters struct {
	Tags                                *map[string]*string `json:"tags,omitempty"`
	Sku                                 *Sku                `json:"sku,omitempty"`
	*RegistryPropertiesUpdateParameters `json:"properties,omitempty"`
}

RegistryUpdateParameters is the parameters for updating a container registry.

type RegistryUsage

type RegistryUsage struct {
	Name         *string           `json:"name,omitempty"`
	Limit        *int64            `json:"limit,omitempty"`
	CurrentValue *int64            `json:"currentValue,omitempty"`
	Unit         RegistryUsageUnit `json:"unit,omitempty"`
}

RegistryUsage is the quota usage for a container registry.

type RegistryUsageListResult

type RegistryUsageListResult struct {
	autorest.Response `json:"-"`
	Value             *[]RegistryUsage `json:"value,omitempty"`
}

RegistryUsageListResult is 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 specifies the bytes state for registry usage unit.
	Bytes RegistryUsageUnit = "Bytes"
	// Count specifies the count state for registry usage unit.
	Count RegistryUsageUnit = "Count"
)

type Replication

type Replication struct {
	autorest.Response      `json:"-"`
	ID                     *string             `json:"id,omitempty"`
	Name                   *string             `json:"name,omitempty"`
	Type                   *string             `json:"type,omitempty"`
	Location               *string             `json:"location,omitempty"`
	Tags                   *map[string]*string `json:"tags,omitempty"`
	*ReplicationProperties `json:"properties,omitempty"`
}

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

type ReplicationListResult

type ReplicationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Replication `json:"value,omitempty"`
	NextLink          *string        `json:"nextLink,omitempty"`
}

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

func (ReplicationListResult) ReplicationListResultPreparer

func (client ReplicationListResult) ReplicationListResultPreparer() (*http.Request, error)

ReplicationListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ReplicationProperties

type ReplicationProperties struct {
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	Status            *Status           `json:"status,omitempty"`
}

ReplicationProperties is the properties of a replication.

type ReplicationUpdateParameters

type ReplicationUpdateParameters struct {
	Tags *map[string]*string `json:"tags,omitempty"`
}

ReplicationUpdateParameters is the parameters for updating a replication.

type ReplicationsClient

type ReplicationsClient struct {
	ManagementClient
}

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.

func (ReplicationsClient) Create

func (client ReplicationsClient) Create(resourceGroupName string, registryName string, replicationName string, replication Replication, cancel <-chan struct{}) (<-chan Replication, <-chan error)

Create creates a replication for a container registry with the specified parameters. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. replicationName is the name of the replication. replication is the parameters for creating a replication.

func (ReplicationsClient) CreatePreparer

func (client ReplicationsClient) CreatePreparer(resourceGroupName string, registryName string, replicationName string, replication Replication, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, registryName string, replicationName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes a replication from a container registry. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

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

func (ReplicationsClient) DeletePreparer

func (client ReplicationsClient) DeletePreparer(resourceGroupName string, registryName string, replicationName string, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, registryName string, replicationName string) (result Replication, err error)

Get gets the properties of the specified replication.

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

func (ReplicationsClient) GetPreparer

func (client ReplicationsClient) GetPreparer(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(resourceGroupName string, registryName string) (result ReplicationListResult, err error)

List lists all the replications for the specified container registry.

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

func (ReplicationsClient) ListComplete

func (client ReplicationsClient) ListComplete(resourceGroupName string, registryName string, cancel <-chan struct{}) (<-chan Replication, <-chan error)

ListComplete gets all elements from the list without paging.

func (ReplicationsClient) ListNextResults

func (client ReplicationsClient) ListNextResults(lastResults ReplicationListResult) (result ReplicationListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (ReplicationsClient) ListPreparer

func (client ReplicationsClient) ListPreparer(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(resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters, cancel <-chan struct{}) (<-chan Replication, <-chan error)

Update updates a replication for a container registry with the specified parameters. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. replicationName is the name of the replication. replicationUpdateParameters is the parameters for updating a replication.

func (ReplicationsClient) UpdatePreparer

func (client ReplicationsClient) UpdatePreparer(resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters, cancel <-chan struct{}) (*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) (*http.Response, error)

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

type Request

type Request struct {
	ID        *string `json:"id,omitempty"`
	Addr      *string `json:"addr,omitempty"`
	Host      *string `json:"host,omitempty"`
	Method    *string `json:"method,omitempty"`
	Useragent *string `json:"useragent,omitempty"`
}

Request is the request that generated the event.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is an Azure resource.

type Sku

type Sku struct {
	Name SkuName `json:"name,omitempty"`
	Tier SkuTier `json:"tier,omitempty"`
}

Sku is the SKU of a container registry.

type SkuName

type SkuName string

SkuName enumerates the values for sku name.

const (
	// Basic specifies the basic state for sku name.
	Basic SkuName = "Basic"
	// Classic specifies the classic state for sku name.
	Classic SkuName = "Classic"
	// Premium specifies the premium state for sku name.
	Premium SkuName = "Premium"
	// Standard specifies the standard state for sku name.
	Standard SkuName = "Standard"
)

type SkuTier

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
	// SkuTierBasic specifies the sku tier basic state for sku tier.
	SkuTierBasic SkuTier = "Basic"
	// SkuTierClassic specifies the sku tier classic state for sku tier.
	SkuTierClassic SkuTier = "Classic"
	// SkuTierPremium specifies the sku tier premium state for sku tier.
	SkuTierPremium SkuTier = "Premium"
	// SkuTierStandard specifies the sku tier standard state for sku tier.
	SkuTierStandard SkuTier = "Standard"
)

type Source

type Source struct {
	Addr       *string `json:"addr,omitempty"`
	InstanceID *string `json:"instanceID,omitempty"`
}

Source is 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 *string    `json:"displayStatus,omitempty"`
	Message       *string    `json:"message,omitempty"`
	Timestamp     *date.Time `json:"timestamp,omitempty"`
}

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

type StorageAccountProperties

type StorageAccountProperties struct {
	ID *string `json:"id,omitempty"`
}

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

type Target

type Target struct {
	MediaType  *string `json:"mediaType,omitempty"`
	Size       *int64  `json:"size,omitempty"`
	Digest     *string `json:"digest,omitempty"`
	Length     *int64  `json:"length,omitempty"`
	Repository *string `json:"repository,omitempty"`
	URL        *string `json:"url,omitempty"`
	Tag        *string `json:"tag,omitempty"`
}

Target is the target of the event.

type Webhook

type Webhook struct {
	autorest.Response  `json:"-"`
	ID                 *string             `json:"id,omitempty"`
	Name               *string             `json:"name,omitempty"`
	Type               *string             `json:"type,omitempty"`
	Location           *string             `json:"location,omitempty"`
	Tags               *map[string]*string `json:"tags,omitempty"`
	*WebhookProperties `json:"properties,omitempty"`
}

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

type WebhookAction

type WebhookAction string

WebhookAction enumerates the values for webhook action.

const (
	// Delete specifies the delete state for webhook action.
	Delete WebhookAction = "delete"
	// Push specifies the push state for webhook action.
	Push WebhookAction = "push"
)

type WebhookCreateParameters

type WebhookCreateParameters struct {
	Tags                               *map[string]*string `json:"tags,omitempty"`
	Location                           *string             `json:"location,omitempty"`
	*WebhookPropertiesCreateParameters `json:"properties,omitempty"`
}

WebhookCreateParameters is the parameters for creating a webhook.

type WebhookListResult

type WebhookListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Webhook `json:"value,omitempty"`
	NextLink          *string    `json:"nextLink,omitempty"`
}

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

func (WebhookListResult) WebhookListResultPreparer

func (client WebhookListResult) WebhookListResultPreparer() (*http.Request, error)

WebhookListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type WebhookProperties

type WebhookProperties struct {
	Status            WebhookStatus     `json:"status,omitempty"`
	Scope             *string           `json:"scope,omitempty"`
	Actions           *[]WebhookAction  `json:"actions,omitempty"`
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

WebhookProperties is the properties of a webhook.

type WebhookPropertiesCreateParameters

type WebhookPropertiesCreateParameters struct {
	ServiceURI    *string             `json:"serviceUri,omitempty"`
	CustomHeaders *map[string]*string `json:"customHeaders,omitempty"`
	Status        WebhookStatus       `json:"status,omitempty"`
	Scope         *string             `json:"scope,omitempty"`
	Actions       *[]WebhookAction    `json:"actions,omitempty"`
}

WebhookPropertiesCreateParameters is the parameters for creating the properties of a webhook.

type WebhookPropertiesUpdateParameters

type WebhookPropertiesUpdateParameters struct {
	ServiceURI    *string             `json:"serviceUri,omitempty"`
	CustomHeaders *map[string]*string `json:"customHeaders,omitempty"`
	Status        WebhookStatus       `json:"status,omitempty"`
	Scope         *string             `json:"scope,omitempty"`
	Actions       *[]WebhookAction    `json:"actions,omitempty"`
}

WebhookPropertiesUpdateParameters is the parameters for updating the properties of a webhook.

type WebhookStatus

type WebhookStatus string

WebhookStatus enumerates the values for webhook status.

const (
	// Disabled specifies the disabled state for webhook status.
	Disabled WebhookStatus = "disabled"
	// Enabled specifies the enabled state for webhook status.
	Enabled WebhookStatus = "enabled"
)

type WebhookUpdateParameters

type WebhookUpdateParameters struct {
	Tags                               *map[string]*string `json:"tags,omitempty"`
	*WebhookPropertiesUpdateParameters `json:"properties,omitempty"`
}

WebhookUpdateParameters is the parameters for updating a webhook.

type WebhooksClient

type WebhooksClient struct {
	ManagementClient
}

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.

func (WebhooksClient) Create

func (client WebhooksClient) Create(resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters, cancel <-chan struct{}) (<-chan Webhook, <-chan error)

Create creates a webhook for a container registry with the specified parameters. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. webhookName is the name of the webhook. webhookCreateParameters is the parameters for creating a webhook.

func (WebhooksClient) CreatePreparer

func (client WebhooksClient) CreatePreparer(resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, registryName string, webhookName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes a webhook from a container registry. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

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

func (WebhooksClient) DeletePreparer

func (client WebhooksClient) DeletePreparer(resourceGroupName string, registryName string, webhookName string, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, registryName string, webhookName string) (result Webhook, err error)

Get gets the properties of the specified webhook.

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

func (WebhooksClient) GetCallbackConfig

func (client WebhooksClient) GetCallbackConfig(resourceGroupName string, registryName string, webhookName string) (result CallbackConfig, err error)

GetCallbackConfig gets the configuration of service URI and custom headers for the webhook.

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

func (WebhooksClient) GetCallbackConfigPreparer

func (client WebhooksClient) GetCallbackConfigPreparer(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(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(resourceGroupName string, registryName string) (result WebhookListResult, err error)

List lists all the webhooks for the specified container registry.

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

func (WebhooksClient) ListComplete

func (client WebhooksClient) ListComplete(resourceGroupName string, registryName string, cancel <-chan struct{}) (<-chan Webhook, <-chan error)

ListComplete gets all elements from the list without paging.

func (WebhooksClient) ListEvents

func (client WebhooksClient) ListEvents(resourceGroupName string, registryName string, webhookName string) (result EventListResult, err error)

ListEvents lists recent events for the specified webhook.

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

func (WebhooksClient) ListEventsComplete

func (client WebhooksClient) ListEventsComplete(resourceGroupName string, registryName string, webhookName string, cancel <-chan struct{}) (<-chan Event, <-chan error)

ListEventsComplete gets all elements from the list without paging.

func (WebhooksClient) ListEventsNextResults

func (client WebhooksClient) ListEventsNextResults(lastResults EventListResult) (result EventListResult, err error)

ListEventsNextResults retrieves the next set of results, if any.

func (WebhooksClient) ListEventsPreparer

func (client WebhooksClient) ListEventsPreparer(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) ListNextResults

func (client WebhooksClient) ListNextResults(lastResults WebhookListResult) (result WebhookListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (WebhooksClient) ListPreparer

func (client WebhooksClient) ListPreparer(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(resourceGroupName string, registryName string, webhookName string) (result EventInfo, err error)

Ping triggers a ping event to be sent to the webhook.

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

func (WebhooksClient) PingPreparer

func (client WebhooksClient) PingPreparer(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(resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters, cancel <-chan struct{}) (<-chan Webhook, <-chan error)

Update updates a webhook with the specified parameters. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group to which the container registry belongs. registryName is the name of the container registry. webhookName is the name of the webhook. webhookUpdateParameters is the parameters for updating a webhook.

func (WebhooksClient) UpdatePreparer

func (client WebhooksClient) UpdatePreparer(resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters, cancel <-chan struct{}) (*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) (*http.Response, error)

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

Jump to

Keyboard shortcuts

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