containerregistry

package
v8.0.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package containerregistry implements the Azure ARM Containerregistry service API version 2016-06-27-preview.

Index

Constants

View Source
const (
	// APIVersion is the version of the Containerregistry
	APIVersion = "2016-06-27-preview"

	// 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
	APIVersion     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 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) CreateOrUpdate

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

CreateOrUpdate creates or 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. registry is the parameters for creating or updating a container registry.

func (RegistriesClient) CreateOrUpdatePreparer

func (client RegistriesClient) CreateOrUpdatePreparer(resourceGroupName string, registryName string, registry Registry) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (RegistriesClient) CreateOrUpdateResponder

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

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

func (RegistriesClient) CreateOrUpdateSender

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

CreateOrUpdateSender sends the CreateOrUpdate 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) GetCredentials

func (client RegistriesClient) GetCredentials(resourceGroupName string, registryName string) (result RegistryCredentials, err error)

GetCredentials gets the administrator 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) GetCredentialsPreparer

func (client RegistriesClient) GetCredentialsPreparer(resourceGroupName string, registryName string) (*http.Request, error)

GetCredentialsPreparer prepares the GetCredentials request.

func (RegistriesClient) GetCredentialsResponder

func (client RegistriesClient) GetCredentialsResponder(resp *http.Response) (result RegistryCredentials, err error)

GetCredentialsResponder handles the response to the GetCredentials request. The method always closes the http.Response Body.

func (RegistriesClient) GetCredentialsSender

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

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

func (RegistriesClient) GetProperties

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

GetProperties 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) GetPropertiesPreparer

func (client RegistriesClient) GetPropertiesPreparer(resourceGroupName string, registryName string) (*http.Request, error)

GetPropertiesPreparer prepares the GetProperties request.

func (RegistriesClient) GetPropertiesResponder

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

GetPropertiesResponder handles the response to the GetProperties request. The method always closes the http.Response Body.

func (RegistriesClient) GetPropertiesSender

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

GetPropertiesSender sends the GetProperties 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 available container registries under the specified subscription.

func (RegistriesClient) ListByResourceGroup

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

ListByResourceGroup lists all the available 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) 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) RegenerateCredentials

func (client RegistriesClient) RegenerateCredentials(resourceGroupName string, registryName string) (result RegistryCredentials, err error)

RegenerateCredentials regenerates the administrator 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) RegenerateCredentialsPreparer

func (client RegistriesClient) RegenerateCredentialsPreparer(resourceGroupName string, registryName string) (*http.Request, error)

RegenerateCredentialsPreparer prepares the RegenerateCredentials request.

func (RegistriesClient) RegenerateCredentialsResponder

func (client RegistriesClient) RegenerateCredentialsResponder(resp *http.Response) (result RegistryCredentials, err error)

RegenerateCredentialsResponder handles the response to the RegenerateCredentials request. The method always closes the http.Response Body.

func (RegistriesClient) RegenerateCredentialsSender

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

RegenerateCredentialsSender sends the RegenerateCredentials 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"`
	*RegistryProperties `json:"properties,omitempty"`
}

Registry is an object that represents a container registry.

type RegistryCredentials

type RegistryCredentials struct {
	autorest.Response `json:"-"`
	Username          *string `json:"username,omitempty"`
	Password          *string `json:"password,omitempty"`
}

RegistryCredentials is the result of a request to get the administrator login credentials for a container registry.

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 the 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 RegistryProperties

type RegistryProperties struct {
	LoginServer      *string                   `json:"loginServer,omitempty"`
	CreationDate     *date.Time                `json:"creationDate,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"`
	*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 StorageAccountProperties

type StorageAccountProperties struct {
	Name      *string `json:"name,omitempty"`
	AccessKey *string `json:"accessKey,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