containerregistry

package
v34.2.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package containerregistry implements the Azure ARM Containerregistry service API version 2019-07-15-preview.

Metadata API definition for the Azure Container Registry runtime

Index

Constants

This section is empty.

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 AccessToken

type AccessToken struct {
	autorest.Response `json:"-"`
	// AccessToken - The access token for performing authenticated requests
	AccessToken *string `json:"access_token,omitempty"`
}

AccessToken ...

type AcrErrorInfo

type AcrErrorInfo struct {
	// Code - Error code
	Code *string `json:"code,omitempty"`
	// Message - Error message
	Message *string `json:"message,omitempty"`
	// Detail - Error details
	Detail interface{} `json:"detail,omitempty"`
}

AcrErrorInfo error information

type AcrErrors

type AcrErrors struct {
	// Errors - Array of detailed error
	Errors *[]AcrErrorInfo `json:"errors,omitempty"`
}

AcrErrors acr error response describing why the operation failed

type AcrManifestAttributes

type AcrManifestAttributes struct {
	autorest.Response `json:"-"`
	// Registry - Registry name
	Registry *string `json:"registry,omitempty"`
	// ImageName - Image name
	ImageName *string `json:"imageName,omitempty"`
	// ManifestAttributes - Manifest attributes
	ManifestAttributes *AcrManifestAttributesBase `json:"manifest,omitempty"`
}

AcrManifestAttributes manifest attributes details

type AcrManifestAttributesBase

type AcrManifestAttributesBase struct {
	// Digest - Manifest
	Digest *string `json:"digest,omitempty"`
	// ImageSize - Image size
	ImageSize *int32 `json:"imageSize,omitempty"`
	// CreatedTime - Created time
	CreatedTime *string `json:"createdTime,omitempty"`
	// LastUpdateTime - Last update time
	LastUpdateTime *string `json:"lastUpdateTime,omitempty"`
	// Architecture - CPU architecture
	Architecture *string `json:"architecture,omitempty"`
	// Os - Operating system
	Os *string `json:"os,omitempty"`
	// MediaType - Media type
	MediaType *string `json:"mediaType,omitempty"`
	// ConfigMediaType - Config blob media type
	ConfigMediaType *string `json:"configMediaType,omitempty"`
	// Tags - List of tags
	Tags *[]string `json:"tags,omitempty"`
	// ChangeableAttributes - Changeable attributes
	ChangeableAttributes *ChangeableAttributes `json:"changeableAttributes,omitempty"`
}

AcrManifestAttributesBase manifest details

type AcrManifests

type AcrManifests struct {
	autorest.Response `json:"-"`
	// Registry - Registry name
	Registry *string `json:"registry,omitempty"`
	// ImageName - Image name
	ImageName *string `json:"imageName,omitempty"`
	// ManifestsAttributes - List of manifests
	ManifestsAttributes *[]AcrManifestAttributesBase `json:"manifests,omitempty"`
}

AcrManifests manifest attributes

type AcrRepositoryTags

type AcrRepositoryTags struct {
	autorest.Response `json:"-"`
	// Registry - Registry name
	Registry *string `json:"registry,omitempty"`
	// ImageName - Image name
	ImageName *string `json:"imageName,omitempty"`
	// TagsAttributes - List of tag attribute details
	TagsAttributes *[]AcrTagAttributesBase `json:"tags,omitempty"`
}

AcrRepositoryTags list of tag details

type AcrTagAttributes

type AcrTagAttributes struct {
	autorest.Response `json:"-"`
	// Registry - Registry name
	Registry *string `json:"registry,omitempty"`
	// ImageName - Image name
	ImageName *string `json:"imageName,omitempty"`
	// TagAttributes - List of tag attribute details
	TagAttributes *AcrTagAttributesBase `json:"tag,omitempty"`
}

AcrTagAttributes tag attributes

type AcrTagAttributesBase

type AcrTagAttributesBase struct {
	// Name - Tag name
	Name *string `json:"name,omitempty"`
	// Digest - Tag digest
	Digest *string `json:"digest,omitempty"`
	// CreatedTime - Tag created time
	CreatedTime *string `json:"createdTime,omitempty"`
	// LastUpdateTime - Tag last update time
	LastUpdateTime *string `json:"lastUpdateTime,omitempty"`
	// Signed - Is signed
	Signed *bool `json:"signed,omitempty"`
	// ChangeableAttributes - Changeable attributes
	ChangeableAttributes *ChangeableAttributes `json:"changeableAttributes,omitempty"`
}

AcrTagAttributesBase tag attribute details

type BaseClient

type BaseClient struct {
	autorest.Client
	LoginURI string
}

BaseClient is the base client for Containerregistry.

func New

func New(loginURI string) BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults

func NewWithoutDefaults(loginURI string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

func (BaseClient) CreateManifest

func (client BaseClient) CreateManifest(ctx context.Context, name string, reference string, payload Manifest) (result SetObject, err error)

CreateManifest put the manifest identified by `name` and `reference` where `reference` can be a tag or digest. Parameters: name - name of the image (including the namespace) reference - a tag or a digest, pointing to a specific image payload - manifest body, can take v1 or v2 values depending on accept header

func (BaseClient) CreateManifestPreparer

func (client BaseClient) CreateManifestPreparer(ctx context.Context, name string, reference string, payload Manifest) (*http.Request, error)

CreateManifestPreparer prepares the CreateManifest request.

func (BaseClient) CreateManifestResponder

func (client BaseClient) CreateManifestResponder(resp *http.Response) (result SetObject, err error)

CreateManifestResponder handles the response to the CreateManifest request. The method always closes the http.Response Body.

func (BaseClient) CreateManifestSender

func (client BaseClient) CreateManifestSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) DeleteAcrRepository

func (client BaseClient) DeleteAcrRepository(ctx context.Context, name string) (result DeletedRepository, err error)

DeleteAcrRepository delete the repository identified by `name` Parameters: name - name of the image (including the namespace)

func (BaseClient) DeleteAcrRepositoryPreparer

func (client BaseClient) DeleteAcrRepositoryPreparer(ctx context.Context, name string) (*http.Request, error)

DeleteAcrRepositoryPreparer prepares the DeleteAcrRepository request.

func (BaseClient) DeleteAcrRepositoryResponder

func (client BaseClient) DeleteAcrRepositoryResponder(resp *http.Response) (result DeletedRepository, err error)

DeleteAcrRepositoryResponder handles the response to the DeleteAcrRepository request. The method always closes the http.Response Body.

func (BaseClient) DeleteAcrRepositorySender

func (client BaseClient) DeleteAcrRepositorySender(req *http.Request) (*http.Response, error)

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

func (BaseClient) DeleteAcrTag

func (client BaseClient) DeleteAcrTag(ctx context.Context, name string, reference string) (result autorest.Response, err error)

DeleteAcrTag delete tag Parameters: name - name of the image (including the namespace) reference - tag or digest of the target manifest

func (BaseClient) DeleteAcrTagPreparer

func (client BaseClient) DeleteAcrTagPreparer(ctx context.Context, name string, reference string) (*http.Request, error)

DeleteAcrTagPreparer prepares the DeleteAcrTag request.

func (BaseClient) DeleteAcrTagResponder

func (client BaseClient) DeleteAcrTagResponder(resp *http.Response) (result autorest.Response, err error)

DeleteAcrTagResponder handles the response to the DeleteAcrTag request. The method always closes the http.Response Body.

func (BaseClient) DeleteAcrTagSender

func (client BaseClient) DeleteAcrTagSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) DeleteManifest

func (client BaseClient) DeleteManifest(ctx context.Context, name string, reference string) (result autorest.Response, err error)

DeleteManifest delete the manifest identified by `name` and `reference`. Note that a manifest can _only_ be deleted by `digest`. Parameters: name - name of the image (including the namespace) reference - a tag or a digest, pointing to a specific image

func (BaseClient) DeleteManifestPreparer

func (client BaseClient) DeleteManifestPreparer(ctx context.Context, name string, reference string) (*http.Request, error)

DeleteManifestPreparer prepares the DeleteManifest request.

func (BaseClient) DeleteManifestResponder

func (client BaseClient) DeleteManifestResponder(resp *http.Response) (result autorest.Response, err error)

DeleteManifestResponder handles the response to the DeleteManifest request. The method always closes the http.Response Body.

func (BaseClient) DeleteManifestSender

func (client BaseClient) DeleteManifestSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrAccessToken

func (client BaseClient) GetAcrAccessToken(ctx context.Context, service string, scope string, refreshToken string) (result AccessToken, err error)

GetAcrAccessToken exchange ACR Refresh token for an ACR Access Token Parameters: service - indicates the name of your Azure container registry. scope - which is expected to be a valid scope, and can be specified more than once for multiple scope requests. You obtained this from the Www-Authenticate response header from the challenge. refreshToken - must be a valid ACR refresh token

func (BaseClient) GetAcrAccessTokenFromLogin

func (client BaseClient) GetAcrAccessTokenFromLogin(ctx context.Context, service string, scope string) (result AccessToken, err error)

GetAcrAccessTokenFromLogin exchange Username, Password and Scope an ACR Access Token Parameters: service - indicates the name of your Azure container registry. scope - expected to be a valid scope, and can be specified more than once for multiple scope requests. You can obtain this from the Www-Authenticate response header from the challenge.

func (BaseClient) GetAcrAccessTokenFromLoginPreparer

func (client BaseClient) GetAcrAccessTokenFromLoginPreparer(ctx context.Context, service string, scope string) (*http.Request, error)

GetAcrAccessTokenFromLoginPreparer prepares the GetAcrAccessTokenFromLogin request.

func (BaseClient) GetAcrAccessTokenFromLoginResponder

func (client BaseClient) GetAcrAccessTokenFromLoginResponder(resp *http.Response) (result AccessToken, err error)

GetAcrAccessTokenFromLoginResponder handles the response to the GetAcrAccessTokenFromLogin request. The method always closes the http.Response Body.

func (BaseClient) GetAcrAccessTokenFromLoginSender

func (client BaseClient) GetAcrAccessTokenFromLoginSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrAccessTokenPreparer

func (client BaseClient) GetAcrAccessTokenPreparer(ctx context.Context, service string, scope string, refreshToken string) (*http.Request, error)

GetAcrAccessTokenPreparer prepares the GetAcrAccessToken request.

func (BaseClient) GetAcrAccessTokenResponder

func (client BaseClient) GetAcrAccessTokenResponder(resp *http.Response) (result AccessToken, err error)

GetAcrAccessTokenResponder handles the response to the GetAcrAccessToken request. The method always closes the http.Response Body.

func (BaseClient) GetAcrAccessTokenSender

func (client BaseClient) GetAcrAccessTokenSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrManifestAttributes

func (client BaseClient) GetAcrManifestAttributes(ctx context.Context, name string, reference string) (result AcrManifestAttributes, err error)

GetAcrManifestAttributes get manifest attributes Parameters: name - name of the image (including the namespace) reference - a tag or a digest, pointing to a specific image

func (BaseClient) GetAcrManifestAttributesPreparer

func (client BaseClient) GetAcrManifestAttributesPreparer(ctx context.Context, name string, reference string) (*http.Request, error)

GetAcrManifestAttributesPreparer prepares the GetAcrManifestAttributes request.

func (BaseClient) GetAcrManifestAttributesResponder

func (client BaseClient) GetAcrManifestAttributesResponder(resp *http.Response) (result AcrManifestAttributes, err error)

GetAcrManifestAttributesResponder handles the response to the GetAcrManifestAttributes request. The method always closes the http.Response Body.

func (BaseClient) GetAcrManifestAttributesSender

func (client BaseClient) GetAcrManifestAttributesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrManifests

func (client BaseClient) GetAcrManifests(ctx context.Context, name string, last string, n *int32, orderby string) (result AcrManifests, err error)

GetAcrManifests list manifests of a repository Parameters: name - name of the image (including the namespace) last - query parameter for the last item in previous query. Result set will include values lexically after last. n - query parameter for max number of items orderby - orderby query parameter

func (BaseClient) GetAcrManifestsPreparer

func (client BaseClient) GetAcrManifestsPreparer(ctx context.Context, name string, last string, n *int32, orderby string) (*http.Request, error)

GetAcrManifestsPreparer prepares the GetAcrManifests request.

func (BaseClient) GetAcrManifestsResponder

func (client BaseClient) GetAcrManifestsResponder(resp *http.Response) (result AcrManifests, err error)

GetAcrManifestsResponder handles the response to the GetAcrManifests request. The method always closes the http.Response Body.

func (BaseClient) GetAcrManifestsSender

func (client BaseClient) GetAcrManifestsSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrRefreshTokenFromExchange

func (client BaseClient) GetAcrRefreshTokenFromExchange(ctx context.Context, grantType string, service string, tenant string, refreshToken string, accessToken string) (result RefreshToken, err error)

GetAcrRefreshTokenFromExchange exchange AAD tokens for an ACR refresh Token Parameters: grantType - can take a value of access_token_refresh_token, or access_token, or refresh_token service - indicates the name of your Azure container registry. tenant - AAD tenant associated to the AAD credentials. refreshToken - AAD refresh token, mandatory when grant_type is access_token_refresh_token or refresh_token accessToken - AAD access token, mandatory when grant_type is access_token_refresh_token or access_token.

func (BaseClient) GetAcrRefreshTokenFromExchangePreparer

func (client BaseClient) GetAcrRefreshTokenFromExchangePreparer(ctx context.Context, grantType string, service string, tenant string, refreshToken string, accessToken string) (*http.Request, error)

GetAcrRefreshTokenFromExchangePreparer prepares the GetAcrRefreshTokenFromExchange request.

func (BaseClient) GetAcrRefreshTokenFromExchangeResponder

func (client BaseClient) GetAcrRefreshTokenFromExchangeResponder(resp *http.Response) (result RefreshToken, err error)

GetAcrRefreshTokenFromExchangeResponder handles the response to the GetAcrRefreshTokenFromExchange request. The method always closes the http.Response Body.

func (BaseClient) GetAcrRefreshTokenFromExchangeSender

func (client BaseClient) GetAcrRefreshTokenFromExchangeSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrRepositories

func (client BaseClient) GetAcrRepositories(ctx context.Context, last string, n *int32) (result Repositories, err error)

GetAcrRepositories list repositories Parameters: last - query parameter for the last item in previous query. Result set will include values lexically after last. n - query parameter for max number of items

func (BaseClient) GetAcrRepositoriesPreparer

func (client BaseClient) GetAcrRepositoriesPreparer(ctx context.Context, last string, n *int32) (*http.Request, error)

GetAcrRepositoriesPreparer prepares the GetAcrRepositories request.

func (BaseClient) GetAcrRepositoriesResponder

func (client BaseClient) GetAcrRepositoriesResponder(resp *http.Response) (result Repositories, err error)

GetAcrRepositoriesResponder handles the response to the GetAcrRepositories request. The method always closes the http.Response Body.

func (BaseClient) GetAcrRepositoriesSender

func (client BaseClient) GetAcrRepositoriesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrRepositoryAttributes

func (client BaseClient) GetAcrRepositoryAttributes(ctx context.Context, name string) (result RepositoryAttributes, err error)

GetAcrRepositoryAttributes get repository attributes Parameters: name - name of the image (including the namespace)

func (BaseClient) GetAcrRepositoryAttributesPreparer

func (client BaseClient) GetAcrRepositoryAttributesPreparer(ctx context.Context, name string) (*http.Request, error)

GetAcrRepositoryAttributesPreparer prepares the GetAcrRepositoryAttributes request.

func (BaseClient) GetAcrRepositoryAttributesResponder

func (client BaseClient) GetAcrRepositoryAttributesResponder(resp *http.Response) (result RepositoryAttributes, err error)

GetAcrRepositoryAttributesResponder handles the response to the GetAcrRepositoryAttributes request. The method always closes the http.Response Body.

func (BaseClient) GetAcrRepositoryAttributesSender

func (client BaseClient) GetAcrRepositoryAttributesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrTagAttributes

func (client BaseClient) GetAcrTagAttributes(ctx context.Context, name string, reference string) (result AcrTagAttributes, err error)

GetAcrTagAttributes get tag attributes by tag Parameters: name - name of the image (including the namespace) reference - tag or digest of the target manifest

func (BaseClient) GetAcrTagAttributesPreparer

func (client BaseClient) GetAcrTagAttributesPreparer(ctx context.Context, name string, reference string) (*http.Request, error)

GetAcrTagAttributesPreparer prepares the GetAcrTagAttributes request.

func (BaseClient) GetAcrTagAttributesResponder

func (client BaseClient) GetAcrTagAttributesResponder(resp *http.Response) (result AcrTagAttributes, err error)

GetAcrTagAttributesResponder handles the response to the GetAcrTagAttributes request. The method always closes the http.Response Body.

func (BaseClient) GetAcrTagAttributesSender

func (client BaseClient) GetAcrTagAttributesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetAcrTags

func (client BaseClient) GetAcrTags(ctx context.Context, name string, last string, n *int32, orderby string, digest string) (result AcrRepositoryTags, err error)

GetAcrTags list tags of a repository Parameters: name - name of the image (including the namespace) last - query parameter for the last item in previous query. Result set will include values lexically after last. n - query parameter for max number of items orderby - orderby query parameter digest - filter by digest

func (BaseClient) GetAcrTagsPreparer

func (client BaseClient) GetAcrTagsPreparer(ctx context.Context, name string, last string, n *int32, orderby string, digest string) (*http.Request, error)

GetAcrTagsPreparer prepares the GetAcrTags request.

func (BaseClient) GetAcrTagsResponder

func (client BaseClient) GetAcrTagsResponder(resp *http.Response) (result AcrRepositoryTags, err error)

GetAcrTagsResponder handles the response to the GetAcrTags request. The method always closes the http.Response Body.

func (BaseClient) GetAcrTagsSender

func (client BaseClient) GetAcrTagsSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetDockerRegistryV2Support

func (client BaseClient) GetDockerRegistryV2Support(ctx context.Context) (result autorest.Response, err error)

GetDockerRegistryV2Support tells whether this Docker Registry instance supports Docker Registry HTTP API v2

func (BaseClient) GetDockerRegistryV2SupportPreparer

func (client BaseClient) GetDockerRegistryV2SupportPreparer(ctx context.Context) (*http.Request, error)

GetDockerRegistryV2SupportPreparer prepares the GetDockerRegistryV2Support request.

func (BaseClient) GetDockerRegistryV2SupportResponder

func (client BaseClient) GetDockerRegistryV2SupportResponder(resp *http.Response) (result autorest.Response, err error)

GetDockerRegistryV2SupportResponder handles the response to the GetDockerRegistryV2Support request. The method always closes the http.Response Body.

func (BaseClient) GetDockerRegistryV2SupportSender

func (client BaseClient) GetDockerRegistryV2SupportSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetManifest

func (client BaseClient) GetManifest(ctx context.Context, name string, reference string, accept string) (result Manifest, err error)

GetManifest pulls the image manifest file associated with the specified name and reference. Reference may be a tag or a digest Parameters: name - name of the image (including the namespace) reference - a tag or a digest, pointing to a specific image accept - accept header string delimited by comma. For example, application/vnd.docker.distribution.manifest.v2+json

func (BaseClient) GetManifestPreparer

func (client BaseClient) GetManifestPreparer(ctx context.Context, name string, reference string, accept string) (*http.Request, error)

GetManifestPreparer prepares the GetManifest request.

func (BaseClient) GetManifestResponder

func (client BaseClient) GetManifestResponder(resp *http.Response) (result Manifest, err error)

GetManifestResponder handles the response to the GetManifest request. The method always closes the http.Response Body.

func (BaseClient) GetManifestSender

func (client BaseClient) GetManifestSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetRepositories

func (client BaseClient) GetRepositories(ctx context.Context, last string, n *int32) (result Repositories, err error)

GetRepositories list repositories Parameters: last - query parameter for the last item in previous query. Result set will include values lexically after last. n - query parameter for max number of items

func (BaseClient) GetRepositoriesPreparer

func (client BaseClient) GetRepositoriesPreparer(ctx context.Context, last string, n *int32) (*http.Request, error)

GetRepositoriesPreparer prepares the GetRepositories request.

func (BaseClient) GetRepositoriesResponder

func (client BaseClient) GetRepositoriesResponder(resp *http.Response) (result Repositories, err error)

GetRepositoriesResponder handles the response to the GetRepositories request. The method always closes the http.Response Body.

func (BaseClient) GetRepositoriesSender

func (client BaseClient) GetRepositoriesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetTagList

func (client BaseClient) GetTagList(ctx context.Context, name string) (result RepositoryTags, err error)

GetTagList fetch the tags under the repository identified by name Parameters: name - name of the image (including the namespace)

func (BaseClient) GetTagListPreparer

func (client BaseClient) GetTagListPreparer(ctx context.Context, name string) (*http.Request, error)

GetTagListPreparer prepares the GetTagList request.

func (BaseClient) GetTagListResponder

func (client BaseClient) GetTagListResponder(resp *http.Response) (result RepositoryTags, err error)

GetTagListResponder handles the response to the GetTagList request. The method always closes the http.Response Body.

func (BaseClient) GetTagListSender

func (client BaseClient) GetTagListSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) UpdateAcrManifestAttributes

func (client BaseClient) UpdateAcrManifestAttributes(ctx context.Context, name string, reference string, value *ChangeableAttributes) (result autorest.Response, err error)

UpdateAcrManifestAttributes update attributes of a manifest Parameters: name - name of the image (including the namespace) reference - a tag or a digest, pointing to a specific image value - repository attribute value

func (BaseClient) UpdateAcrManifestAttributesPreparer

func (client BaseClient) UpdateAcrManifestAttributesPreparer(ctx context.Context, name string, reference string, value *ChangeableAttributes) (*http.Request, error)

UpdateAcrManifestAttributesPreparer prepares the UpdateAcrManifestAttributes request.

func (BaseClient) UpdateAcrManifestAttributesResponder

func (client BaseClient) UpdateAcrManifestAttributesResponder(resp *http.Response) (result autorest.Response, err error)

UpdateAcrManifestAttributesResponder handles the response to the UpdateAcrManifestAttributes request. The method always closes the http.Response Body.

func (BaseClient) UpdateAcrManifestAttributesSender

func (client BaseClient) UpdateAcrManifestAttributesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) UpdateAcrRepositoryAttributes

func (client BaseClient) UpdateAcrRepositoryAttributes(ctx context.Context, name string, value *ChangeableAttributes) (result autorest.Response, err error)

UpdateAcrRepositoryAttributes update the attribute identified by `name` where `reference` is the name of the repository. Parameters: name - name of the image (including the namespace) value - repository attribute value

func (BaseClient) UpdateAcrRepositoryAttributesPreparer

func (client BaseClient) UpdateAcrRepositoryAttributesPreparer(ctx context.Context, name string, value *ChangeableAttributes) (*http.Request, error)

UpdateAcrRepositoryAttributesPreparer prepares the UpdateAcrRepositoryAttributes request.

func (BaseClient) UpdateAcrRepositoryAttributesResponder

func (client BaseClient) UpdateAcrRepositoryAttributesResponder(resp *http.Response) (result autorest.Response, err error)

UpdateAcrRepositoryAttributesResponder handles the response to the UpdateAcrRepositoryAttributes request. The method always closes the http.Response Body.

func (BaseClient) UpdateAcrRepositoryAttributesSender

func (client BaseClient) UpdateAcrRepositoryAttributesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) UpdateAcrTagAttributes

func (client BaseClient) UpdateAcrTagAttributes(ctx context.Context, name string, reference string, value *ChangeableAttributes) (result autorest.Response, err error)

UpdateAcrTagAttributes update tag attributes Parameters: name - name of the image (including the namespace) reference - tag or digest of the target manifest value - repository attribute value

func (BaseClient) UpdateAcrTagAttributesPreparer

func (client BaseClient) UpdateAcrTagAttributesPreparer(ctx context.Context, name string, reference string, value *ChangeableAttributes) (*http.Request, error)

UpdateAcrTagAttributesPreparer prepares the UpdateAcrTagAttributes request.

func (BaseClient) UpdateAcrTagAttributesResponder

func (client BaseClient) UpdateAcrTagAttributesResponder(resp *http.Response) (result autorest.Response, err error)

UpdateAcrTagAttributesResponder handles the response to the UpdateAcrTagAttributes request. The method always closes the http.Response Body.

func (BaseClient) UpdateAcrTagAttributesSender

func (client BaseClient) UpdateAcrTagAttributesSender(req *http.Request) (*http.Response, error)

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

type ChangeableAttributes

type ChangeableAttributes struct {
	// DeleteEnabled - Delete enabled
	DeleteEnabled *bool `json:"deleteEnabled,omitempty"`
	// WriteEnabled - Write enabled
	WriteEnabled *bool `json:"writeEnabled,omitempty"`
	// ListEnabled - List enabled
	ListEnabled *bool `json:"listEnabled,omitempty"`
	// ReadEnabled - Read enabled
	ReadEnabled *bool `json:"readEnabled,omitempty"`
}

ChangeableAttributes ...

type DeletedRepository

type DeletedRepository struct {
	autorest.Response `json:"-"`
	// ManifestsDeleted - SHA of the deleted image
	ManifestsDeleted *[]string `json:"manifestsDeleted,omitempty"`
	// TagsDeleted - Tag of the deleted image
	TagsDeleted *[]string `json:"tagsDeleted,omitempty"`
}

DeletedRepository deleted repository

type FsLayer

type FsLayer struct {
	// BlobSum - SHA of an image layer
	BlobSum *string `json:"blobSum,omitempty"`
}

FsLayer image layer information

type History

type History struct {
	// V1Compatibility - The raw v1 compatibility information
	V1Compatibility *string `json:"v1Compatibility,omitempty"`
}

History a list of unstructured historical data for v1 compatibility

type ImageSignature

type ImageSignature struct {
	// Header - A JSON web signature
	Header *JWK `json:"header,omitempty"`
	// Signature - A signature for the image manifest, signed by a libtrust private key
	Signature *string `json:"signature,omitempty"`
	// Protected - The signed protected header
	Protected *string `json:"protected,omitempty"`
}

ImageSignature signature of a signed manifest

type JWK

type JWK struct {
	Jwk *JWKHeader `json:"jwk,omitempty"`
	// Alg - The algorithm used to sign or encrypt the JWT
	Alg *string `json:"alg,omitempty"`
}

JWK a JSON web signature

type JWKHeader

type JWKHeader struct {
	// Crv - crv value
	Crv *string `json:"crv,omitempty"`
	// Kid - kid value
	Kid *string `json:"kid,omitempty"`
	// Kty - kty value
	Kty *string `json:"kty,omitempty"`
	// X - x value
	X *string `json:"x,omitempty"`
	// Y - y value
	Y *string `json:"y,omitempty"`
}

JWKHeader JSON web key parameter

type Manifest

type Manifest struct {
	autorest.Response `json:"-"`
	// SchemaVersion - Schema version
	SchemaVersion *int32 `json:"schemaVersion,omitempty"`
	// MediaType - Media type usually application/vnd.docker.distribution.manifest.v2+json if this is in the accept header
	MediaType *string `json:"mediaType,omitempty"`
	// Config - V2 image config descriptor
	Config *V2Descriptor `json:"config,omitempty"`
	// Layers - List of V2 image layer information
	Layers *[]V2Descriptor `json:"layers,omitempty"`
	// Architecture - CPU architecture
	Architecture *string `json:"architecture,omitempty"`
	// Name - Image name
	Name *string `json:"name,omitempty"`
	// Tag - Image tag
	Tag *string `json:"tag,omitempty"`
	// FsLayers - List of layer information
	FsLayers *[]FsLayer `json:"fsLayers,omitempty"`
	// History - Image history
	History *[]History `json:"history,omitempty"`
	// Signatures - Image signature
	Signatures *[]ImageSignature `json:"signatures,omitempty"`
}

Manifest returns the requested manifest file

type ManifestAttributesManifest

type ManifestAttributesManifest struct {
	// References - List of manifest attributes details
	References *[]ManifestAttributesManifestReferences `json:"references,omitempty"`
	// QuarantineTag - Quarantine tag name
	QuarantineTag *string `json:"quarantineTag,omitempty"`
}

ManifestAttributesManifest list of manifest attributes

type ManifestAttributesManifestReferences

type ManifestAttributesManifestReferences struct {
	// Digest - Manifest digest
	Digest *string `json:"digest,omitempty"`
	// Architecture - CPU architecture
	Architecture *string `json:"architecture,omitempty"`
	// Os - Operating system
	Os *string `json:"os,omitempty"`
}

ManifestAttributesManifestReferences manifest attributes details

type ManifestChangeableAttributes

type ManifestChangeableAttributes struct {
	// DeleteEnabled - Delete enabled
	DeleteEnabled *bool `json:"deleteEnabled,omitempty"`
	// WriteEnabled - Write enabled
	WriteEnabled *bool `json:"writeEnabled,omitempty"`
	// ListEnabled - List enabled
	ListEnabled *bool `json:"listEnabled,omitempty"`
	// ReadEnabled - Read enabled
	ReadEnabled *bool `json:"readEnabled,omitempty"`
	// QuarantineState - Quarantine state
	QuarantineState *string `json:"quarantineState,omitempty"`
	// QuarantineDetails - Quarantine details
	QuarantineDetails *string `json:"quarantineDetails,omitempty"`
}

ManifestChangeableAttributes changeable attributes

type RefreshToken

type RefreshToken struct {
	autorest.Response `json:"-"`
	// RefreshToken - The refresh token to be used for generating access tokens
	RefreshToken *string `json:"refresh_token,omitempty"`
}

RefreshToken ...

type Repositories

type Repositories struct {
	autorest.Response `json:"-"`
	// Names - Repository names
	Names *[]string `json:"repositories,omitempty"`
}

Repositories list of repositories

type RepositoryAttributes

type RepositoryAttributes struct {
	autorest.Response `json:"-"`
	// Registry - Registry name
	Registry *string `json:"registry,omitempty"`
	// ImageName - Image name
	ImageName *string `json:"imageName,omitempty"`
	// CreatedTime - Image created time
	CreatedTime *string `json:"createdTime,omitempty"`
	// LastUpdateTime - Image last update time
	LastUpdateTime *string `json:"lastUpdateTime,omitempty"`
	// ManifestCount - Number of the manifests
	ManifestCount *int32 `json:"manifestCount,omitempty"`
	// TagCount - Number of the tags
	TagCount *int32 `json:"tagCount,omitempty"`
	// ChangeableAttributes - Changeable attributes
	ChangeableAttributes *ChangeableAttributes `json:"changeableAttributes,omitempty"`
}

RepositoryAttributes repository attributes

type RepositoryTags

type RepositoryTags struct {
	autorest.Response `json:"-"`
	// Name - Name of the image
	Name *string `json:"name,omitempty"`
	// Tags - List of tags
	Tags *[]string `json:"tags,omitempty"`
}

RepositoryTags result of the request to list tags of the image

type SetObject

type SetObject struct {
	autorest.Response `json:"-"`
	Value             interface{} `json:"value,omitempty"`
}

SetObject ...

type TagAttributes

type TagAttributes struct {
	// Registry - Registry name
	Registry *string `json:"registry,omitempty"`
	// ImageName - Image name
	ImageName *string `json:"imageName,omitempty"`
	// Tag - Tag attributes
	Tag *TagAttributesTag `json:"tag,omitempty"`
}

TagAttributes tag attributes

type TagAttributesTag

type TagAttributesTag struct {
	// SignatureRecord - SignatureRecord value
	SignatureRecord *string `json:"signatureRecord,omitempty"`
}

TagAttributesTag tag

type V2Descriptor

type V2Descriptor struct {
	// MediaType - Layer media type
	MediaType *string `json:"mediaType,omitempty"`
	// Size - Layer size
	Size *int32 `json:"size,omitempty"`
	// Digest - Layer digest
	Digest *string `json:"digest,omitempty"`
}

V2Descriptor docker V2 image layer descriptor including config and layers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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