containerregistry

package
v10.0.1-beta+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package containerregistry implements the Azure ARM Containerregistry service API version 2017-03-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 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) 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 (
	// Creating specifies the creating state for provisioning state.
	Creating ProvisioningState = "Creating"
	// Succeeded specifies the succeeded state for provisioning state.
	Succeeded ProvisioningState = "Succeeded"
)

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 60 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, registryCreateParameters RegistryCreateParameters, 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. registryCreateParameters is the parameters for creating a container registry.

func (RegistriesClient) CreatePreparer

func (client RegistriesClient) CreatePreparer(resourceGroupName string, registryName string, registryCreateParameters RegistryCreateParameters, 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) (result autorest.Response, err error)

Delete deletes a 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) DeletePreparer

func (client RegistriesClient) DeletePreparer(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) (*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) 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) 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) 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) (result Registry, err error)

Update updates a container registry with the specified parameters.

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) (*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 RegistryCreateParameters

type RegistryCreateParameters struct {
	Tags                                *map[string]*string `json:"tags,omitempty"`
	Location                            *string             `json:"location,omitempty"`
	Sku                                 *Sku                `json:"sku,omitempty"`
	*RegistryPropertiesCreateParameters `json:"properties,omitempty"`
}

RegistryCreateParameters is the parameters for creating 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"`
	AdminUserEnabled  *bool                     `json:"adminUserEnabled,omitempty"`
	StorageAccount    *StorageAccountProperties `json:"storageAccount,omitempty"`
}

RegistryProperties is the properties of a container registry.

type RegistryPropertiesCreateParameters

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

RegistryPropertiesCreateParameters is the parameters for creating the properties of a container registry.

type RegistryPropertiesUpdateParameters

type RegistryPropertiesUpdateParameters struct {
	AdminUserEnabled *bool                     `json:"adminUserEnabled,omitempty"`
	StorageAccount   *StorageAccountParameters `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"`
	*RegistryPropertiesUpdateParameters `json:"properties,omitempty"`
}

RegistryUpdateParameters is the parameters for updating a container registry.

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 *string `json:"name,omitempty"`
	Tier SkuTier `json:"tier,omitempty"`
}

Sku is the SKU of a container registry.

type SkuTier

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
	// Basic specifies the basic state for sku tier.
	Basic SkuTier = "Basic"
)

type StorageAccountParameters

type StorageAccountParameters struct {
	Name      *string `json:"name,omitempty"`
	AccessKey *string `json:"accessKey,omitempty"`
}

StorageAccountParameters is the parameters of a storage account for a container registry.

type StorageAccountProperties

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

StorageAccountProperties is the properties of a storage account for a container registry.

Jump to

Keyboard shortcuts

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