ecr

package
v1.2.2-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2016 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ecr provides a client for Amazon EC2 Container Registry.

Index

Constants

View Source
const (
	// @enum ImageFailureCode
	ImageFailureCodeInvalidImageDigest = "InvalidImageDigest"
	// @enum ImageFailureCode
	ImageFailureCodeInvalidImageTag = "InvalidImageTag"
	// @enum ImageFailureCode
	ImageFailureCodeImageTagDoesNotMatchDigest = "ImageTagDoesNotMatchDigest"
	// @enum ImageFailureCode
	ImageFailureCodeImageNotFound = "ImageNotFound"
	// @enum ImageFailureCode
	ImageFailureCodeMissingDigestAndTag = "MissingDigestAndTag"
)
View Source
const (
	// @enum LayerAvailability
	LayerAvailabilityAvailable = "AVAILABLE"
	// @enum LayerAvailability
	LayerAvailabilityUnavailable = "UNAVAILABLE"
)
View Source
const (
	// @enum LayerFailureCode
	LayerFailureCodeInvalidLayerDigest = "InvalidLayerDigest"
	// @enum LayerFailureCode
	LayerFailureCodeMissingLayerDigest = "MissingLayerDigest"
)
View Source
const ServiceName = "ecr"

A ServiceName is the name of the service the client will make API calls to.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationData

type AuthorizationData struct {

	// A base64-encoded string that contains authorization data for the specified
	// Amazon ECR registry. When the string is decoded, it is presented in the format
	// user:password for private registry authentication using docker login.
	AuthorizationToken *string `locationName:"authorizationToken" type:"string"`

	// The Unix time in seconds and milliseconds when the authorization token expires.
	// Authorization tokens are valid for 12 hours.
	ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unix"`

	// The registry URL to use for this authorization token in a docker login command.
	// The Amazon ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com.
	// For example, https://012345678910.dkr.ecr.us-east-1.amazonaws.com.
	ProxyEndpoint *string `locationName:"proxyEndpoint" type:"string"`
	// contains filtered or unexported fields
}

An object representing authorization data for an Amazon ECR registry.

func (AuthorizationData) GoString

func (s AuthorizationData) GoString() string

GoString returns the string representation

func (AuthorizationData) String

func (s AuthorizationData) String() string

String returns the string representation

type BatchCheckLayerAvailabilityInput

type BatchCheckLayerAvailabilityInput struct {

	// The digests of the image layers to check.
	LayerDigests []*string `locationName:"layerDigests" min:"1" type:"list" required:"true"`

	// The AWS account ID associated with the registry that contains the image layers
	// to check. If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository that is associated with the image layers to check.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (BatchCheckLayerAvailabilityInput) GoString

GoString returns the string representation

func (BatchCheckLayerAvailabilityInput) String

String returns the string representation

type BatchCheckLayerAvailabilityOutput

type BatchCheckLayerAvailabilityOutput struct {

	// Any failures associated with the call.
	Failures []*LayerFailure `locationName:"failures" type:"list"`

	// A list of image layer objects corresponding to the image layer references
	// in the request.
	Layers []*Layer `locationName:"layers" type:"list"`
	// contains filtered or unexported fields
}

func (BatchCheckLayerAvailabilityOutput) GoString

GoString returns the string representation

func (BatchCheckLayerAvailabilityOutput) String

String returns the string representation

type BatchDeleteImageInput

type BatchDeleteImageInput struct {

	// A list of image ID references that correspond to images to delete. The format
	// of the imageIds reference is imageTag=tag or imageDigest=digest.
	ImageIds []*ImageIdentifier `locationName:"imageIds" min:"1" type:"list" required:"true"`

	// The AWS account ID associated with the registry that contains the image to
	// delete. If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The repository that contains the image to delete.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Deletes specified images within a specified repository. Images are specified with either the imageTag or imageDigest.

func (BatchDeleteImageInput) GoString

func (s BatchDeleteImageInput) GoString() string

GoString returns the string representation

func (BatchDeleteImageInput) String

func (s BatchDeleteImageInput) String() string

String returns the string representation

type BatchDeleteImageOutput

type BatchDeleteImageOutput struct {

	// Any failures associated with the call.
	Failures []*ImageFailure `locationName:"failures" type:"list"`

	// The image IDs of the deleted images.
	ImageIds []*ImageIdentifier `locationName:"imageIds" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (BatchDeleteImageOutput) GoString

func (s BatchDeleteImageOutput) GoString() string

GoString returns the string representation

func (BatchDeleteImageOutput) String

func (s BatchDeleteImageOutput) String() string

String returns the string representation

type BatchGetImageInput

type BatchGetImageInput struct {

	// A list of image ID references that correspond to images to describe. The
	// format of the imageIds reference is imageTag=tag or imageDigest=digest.
	ImageIds []*ImageIdentifier `locationName:"imageIds" min:"1" type:"list" required:"true"`

	// The AWS account ID associated with the registry that contains the images
	// to describe. If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The repository that contains the images to describe.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (BatchGetImageInput) GoString

func (s BatchGetImageInput) GoString() string

GoString returns the string representation

func (BatchGetImageInput) String

func (s BatchGetImageInput) String() string

String returns the string representation

type BatchGetImageOutput

type BatchGetImageOutput struct {

	// Any failures associated with the call.
	Failures []*ImageFailure `locationName:"failures" type:"list"`

	// A list of image objects corresponding to the image references in the request.
	Images []*Image `locationName:"images" type:"list"`
	// contains filtered or unexported fields
}

func (BatchGetImageOutput) GoString

func (s BatchGetImageOutput) GoString() string

GoString returns the string representation

func (BatchGetImageOutput) String

func (s BatchGetImageOutput) String() string

String returns the string representation

type CompleteLayerUploadInput

type CompleteLayerUploadInput struct {

	// The sha256 digest of the image layer.
	LayerDigests []*string `locationName:"layerDigests" min:"1" type:"list" required:"true"`

	// The AWS account ID associated with the registry to which to upload layers.
	// If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository to associate with the image layer.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`

	// The upload ID from a previous InitiateLayerUpload operation to associate
	// with the image layer.
	UploadId *string `locationName:"uploadId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CompleteLayerUploadInput) GoString

func (s CompleteLayerUploadInput) GoString() string

GoString returns the string representation

func (CompleteLayerUploadInput) String

func (s CompleteLayerUploadInput) String() string

String returns the string representation

type CompleteLayerUploadOutput

type CompleteLayerUploadOutput struct {

	// The sha256 digest of the image layer.
	LayerDigest *string `locationName:"layerDigest" type:"string"`

	// The registry ID associated with the request.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The repository name associated with the request.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`

	// The upload ID associated with the layer.
	UploadId *string `locationName:"uploadId" type:"string"`
	// contains filtered or unexported fields
}

func (CompleteLayerUploadOutput) GoString

func (s CompleteLayerUploadOutput) GoString() string

GoString returns the string representation

func (CompleteLayerUploadOutput) String

func (s CompleteLayerUploadOutput) String() string

String returns the string representation

type CreateRepositoryInput

type CreateRepositoryInput struct {

	// The name to use for the repository. The repository name may be specified
	// on its own (such as nginx-web-app) or it can be prepended with a namespace
	// to group the repository into a category (such as project-a/nginx-web-app).
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateRepositoryInput) GoString

func (s CreateRepositoryInput) GoString() string

GoString returns the string representation

func (CreateRepositoryInput) String

func (s CreateRepositoryInput) String() string

String returns the string representation

type CreateRepositoryOutput

type CreateRepositoryOutput struct {

	// Object representing a repository.
	Repository *Repository `locationName:"repository" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateRepositoryOutput) GoString

func (s CreateRepositoryOutput) GoString() string

GoString returns the string representation

func (CreateRepositoryOutput) String

func (s CreateRepositoryOutput) String() string

String returns the string representation

type DeleteRepositoryInput

type DeleteRepositoryInput struct {

	// Force the deletion of the repository if it contains images.
	Force *bool `locationName:"force" type:"boolean"`

	// The AWS account ID associated with the registry that contains the repository
	// to delete. If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository to delete.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteRepositoryInput) GoString

func (s DeleteRepositoryInput) GoString() string

GoString returns the string representation

func (DeleteRepositoryInput) String

func (s DeleteRepositoryInput) String() string

String returns the string representation

type DeleteRepositoryOutput

type DeleteRepositoryOutput struct {

	// Object representing a repository.
	Repository *Repository `locationName:"repository" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteRepositoryOutput) GoString

func (s DeleteRepositoryOutput) GoString() string

GoString returns the string representation

func (DeleteRepositoryOutput) String

func (s DeleteRepositoryOutput) String() string

String returns the string representation

type DeleteRepositoryPolicyInput

type DeleteRepositoryPolicyInput struct {

	// The AWS account ID associated with the registry that contains the repository
	// policy to delete. If you do not specify a registry, the default registry
	// is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository that is associated with the repository policy
	// to delete.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteRepositoryPolicyInput) GoString

func (s DeleteRepositoryPolicyInput) GoString() string

GoString returns the string representation

func (DeleteRepositoryPolicyInput) String

String returns the string representation

type DeleteRepositoryPolicyOutput

type DeleteRepositoryPolicyOutput struct {

	// The JSON repository policy that was deleted from the repository.
	PolicyText *string `locationName:"policyText" type:"string"`

	// The registry ID associated with the request.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The repository name associated with the request.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteRepositoryPolicyOutput) GoString

func (s DeleteRepositoryPolicyOutput) GoString() string

GoString returns the string representation

func (DeleteRepositoryPolicyOutput) String

String returns the string representation

type DescribeRepositoriesInput

type DescribeRepositoriesInput struct {

	// The maximum number of repository results returned by DescribeRepositories
	// in paginated output. When this parameter is used, DescribeRepositories only
	// returns maxResults results in a single page along with a nextToken response
	// element. The remaining results of the initial request can be seen by sending
	// another DescribeRepositories request with the returned nextToken value. This
	// value can be between 1 and 100. If this parameter is not used, then DescribeRepositories
	// returns up to 100 results and a nextToken value, if applicable.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The nextToken value returned from a previous paginated DescribeRepositories
	// request where maxResults was used and the results exceeded the value of that
	// parameter. Pagination continues from the end of the previous results that
	// returned the nextToken value. This value is null when there are no more results
	// to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The AWS account ID associated with the registry that contains the repositories
	// to be described. If you do not specify a registry, the default registry is
	// assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// A list of repositories to describe. If this parameter is omitted, then all
	// repositories in a registry are described.
	RepositoryNames []*string `locationName:"repositoryNames" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeRepositoriesInput) GoString

func (s DescribeRepositoriesInput) GoString() string

GoString returns the string representation

func (DescribeRepositoriesInput) String

func (s DescribeRepositoriesInput) String() string

String returns the string representation

type DescribeRepositoriesOutput

type DescribeRepositoriesOutput struct {

	// The nextToken value to include in a future DescribeRepositories request.
	// When the results of a DescribeRepositories request exceed maxResults, this
	// value can be used to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// A list of repository objects corresponding to valid repositories.
	Repositories []*Repository `locationName:"repositories" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeRepositoriesOutput) GoString

func (s DescribeRepositoriesOutput) GoString() string

GoString returns the string representation

func (DescribeRepositoriesOutput) String

String returns the string representation

type ECR

type ECR struct {
	*client.Client
}

The Amazon EC2 Container Registry makes it easier to manage public and private Docker images for AWS or on-premises environments. Amazon ECR supports resource-level permissions to control who can create, update, use, or delete images. Users and groups can be created individually in AWS Identity and Access Management (IAM) or federated with enterprise directories such as Microsoft Active Directory. Images are stored on highly durable AWS infrastructure and include built-in caching so that starting hundreds of containers is as fast as starting a single container. The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *ECR

New creates a new instance of the ECR client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a ECR client from just a session.
svc := ecr.New(mySession)

// Create a ECR client with additional configuration
svc := ecr.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*ECR) BatchCheckLayerAvailability

func (c *ECR) BatchCheckLayerAvailability(input *BatchCheckLayerAvailabilityInput) (*BatchCheckLayerAvailabilityOutput, error)

Check the availability of multiple image layers in a specified registry and repository.

This operation is used by the Amazon ECR proxy, and it is not intended

for general use by customers. Use the docker CLI to pull, tag, and push images.

func (*ECR) BatchCheckLayerAvailabilityRequest

func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabilityInput) (req *request.Request, output *BatchCheckLayerAvailabilityOutput)

BatchCheckLayerAvailabilityRequest generates a request for the BatchCheckLayerAvailability operation.

func (*ECR) BatchDeleteImage

func (c *ECR) BatchDeleteImage(input *BatchDeleteImageInput) (*BatchDeleteImageOutput, error)

Deletes a list of specified images within a specified repository. Images are specified with either imageTag or imageDigest.

func (*ECR) BatchDeleteImageRequest

func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *request.Request, output *BatchDeleteImageOutput)

BatchDeleteImageRequest generates a request for the BatchDeleteImage operation.

func (*ECR) BatchGetImage

func (c *ECR) BatchGetImage(input *BatchGetImageInput) (*BatchGetImageOutput, error)

Gets detailed information for specified images within a specified repository. Images are specified with either imageTag or imageDigest.

func (*ECR) BatchGetImageRequest

func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Request, output *BatchGetImageOutput)

BatchGetImageRequest generates a request for the BatchGetImage operation.

func (*ECR) CompleteLayerUpload

func (c *ECR) CompleteLayerUpload(input *CompleteLayerUploadInput) (*CompleteLayerUploadOutput, error)

Inform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed. You can optionally provide a sha256 digest of the image layer for data validation purposes.

This operation is used by the Amazon ECR proxy, and it is not intended

for general use by customers. Use the docker CLI to pull, tag, and push images.

func (*ECR) CompleteLayerUploadRequest

func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req *request.Request, output *CompleteLayerUploadOutput)

CompleteLayerUploadRequest generates a request for the CompleteLayerUpload operation.

func (*ECR) CreateRepository

func (c *ECR) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error)

Creates an image repository.

func (*ECR) CreateRepositoryRequest

func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput)

CreateRepositoryRequest generates a request for the CreateRepository operation.

func (*ECR) DeleteRepository

func (c *ECR) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error)

Deletes an existing image repository. If a repository contains images, you must use the force option to delete it.

func (*ECR) DeleteRepositoryPolicy

func (c *ECR) DeleteRepositoryPolicy(input *DeleteRepositoryPolicyInput) (*DeleteRepositoryPolicyOutput, error)

Deletes the repository policy from a specified repository.

func (*ECR) DeleteRepositoryPolicyRequest

func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) (req *request.Request, output *DeleteRepositoryPolicyOutput)

DeleteRepositoryPolicyRequest generates a request for the DeleteRepositoryPolicy operation.

func (*ECR) DeleteRepositoryRequest

func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput)

DeleteRepositoryRequest generates a request for the DeleteRepository operation.

func (*ECR) DescribeRepositories

func (c *ECR) DescribeRepositories(input *DescribeRepositoriesInput) (*DescribeRepositoriesOutput, error)

Describes image repositories in a registry.

func (*ECR) DescribeRepositoriesRequest

func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req *request.Request, output *DescribeRepositoriesOutput)

DescribeRepositoriesRequest generates a request for the DescribeRepositories operation.

func (*ECR) GetAuthorizationToken

func (c *ECR) GetAuthorizationToken(input *GetAuthorizationTokenInput) (*GetAuthorizationTokenOutput, error)

Retrieves a token that is valid for a specified registry for 12 hours. This command allows you to use the docker CLI to push and pull images with Amazon ECR. If you do not specify a registry, the default registry is assumed.

The authorizationToken returned for each registry specified is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. The AWS CLI offers an aws ecr get-login command that simplifies the login process.

func (*ECR) GetAuthorizationTokenRequest

func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (req *request.Request, output *GetAuthorizationTokenOutput)

GetAuthorizationTokenRequest generates a request for the GetAuthorizationToken operation.

func (*ECR) GetDownloadUrlForLayer

func (c *ECR) GetDownloadUrlForLayer(input *GetDownloadUrlForLayerInput) (*GetDownloadUrlForLayerOutput, error)

Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image.

This operation is used by the Amazon ECR proxy, and it is not intended

for general use by customers. Use the docker CLI to pull, tag, and push images.

func (*ECR) GetDownloadUrlForLayerRequest

func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) (req *request.Request, output *GetDownloadUrlForLayerOutput)

GetDownloadUrlForLayerRequest generates a request for the GetDownloadUrlForLayer operation.

func (*ECR) GetRepositoryPolicy

func (c *ECR) GetRepositoryPolicy(input *GetRepositoryPolicyInput) (*GetRepositoryPolicyOutput, error)

Retrieves the repository policy for a specified repository.

func (*ECR) GetRepositoryPolicyRequest

func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req *request.Request, output *GetRepositoryPolicyOutput)

GetRepositoryPolicyRequest generates a request for the GetRepositoryPolicy operation.

func (*ECR) InitiateLayerUpload

func (c *ECR) InitiateLayerUpload(input *InitiateLayerUploadInput) (*InitiateLayerUploadOutput, error)

Notify Amazon ECR that you intend to upload an image layer.

This operation is used by the Amazon ECR proxy, and it is not intended

for general use by customers. Use the docker CLI to pull, tag, and push images.

func (*ECR) InitiateLayerUploadRequest

func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req *request.Request, output *InitiateLayerUploadOutput)

InitiateLayerUploadRequest generates a request for the InitiateLayerUpload operation.

func (*ECR) ListImages

func (c *ECR) ListImages(input *ListImagesInput) (*ListImagesOutput, error)

Lists all the image IDs for a given repository.

func (*ECR) ListImagesRequest

func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, output *ListImagesOutput)

ListImagesRequest generates a request for the ListImages operation.

func (*ECR) PutImage

func (c *ECR) PutImage(input *PutImageInput) (*PutImageOutput, error)

Creates or updates the image manifest associated with an image.

This operation is used by the Amazon ECR proxy, and it is not intended

for general use by customers. Use the docker CLI to pull, tag, and push images.

func (*ECR) PutImageRequest

func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, output *PutImageOutput)

PutImageRequest generates a request for the PutImage operation.

func (*ECR) SetRepositoryPolicy

func (c *ECR) SetRepositoryPolicy(input *SetRepositoryPolicyInput) (*SetRepositoryPolicyOutput, error)

Applies a repository policy on a specified repository to control access permissions.

func (*ECR) SetRepositoryPolicyRequest

func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req *request.Request, output *SetRepositoryPolicyOutput)

SetRepositoryPolicyRequest generates a request for the SetRepositoryPolicy operation.

func (*ECR) UploadLayerPart

func (c *ECR) UploadLayerPart(input *UploadLayerPartInput) (*UploadLayerPartOutput, error)

Uploads an image layer part to Amazon ECR.

This operation is used by the Amazon ECR proxy, and it is not intended

for general use by customers. Use the docker CLI to pull, tag, and push images.

func (*ECR) UploadLayerPartRequest

func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request.Request, output *UploadLayerPartOutput)

UploadLayerPartRequest generates a request for the UploadLayerPart operation.

type GetAuthorizationTokenInput

type GetAuthorizationTokenInput struct {

	// A list of AWS account IDs that are associated with the registries for which
	// to get authorization tokens. If you do not specify a registry, the default
	// registry is assumed.
	RegistryIds []*string `locationName:"registryIds" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (GetAuthorizationTokenInput) GoString

func (s GetAuthorizationTokenInput) GoString() string

GoString returns the string representation

func (GetAuthorizationTokenInput) String

String returns the string representation

type GetAuthorizationTokenOutput

type GetAuthorizationTokenOutput struct {

	// A list of authorization token data objects that correspond to the registryIds
	// values in the request.
	AuthorizationData []*AuthorizationData `locationName:"authorizationData" type:"list"`
	// contains filtered or unexported fields
}

func (GetAuthorizationTokenOutput) GoString

func (s GetAuthorizationTokenOutput) GoString() string

GoString returns the string representation

func (GetAuthorizationTokenOutput) String

String returns the string representation

type GetDownloadUrlForLayerInput

type GetDownloadUrlForLayerInput struct {

	// The digest of the image layer to download.
	LayerDigest *string `locationName:"layerDigest" type:"string" required:"true"`

	// The AWS account ID associated with the registry that contains the image layer
	// to download. If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository that is associated with the image layer to download.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetDownloadUrlForLayerInput) GoString

func (s GetDownloadUrlForLayerInput) GoString() string

GoString returns the string representation

func (GetDownloadUrlForLayerInput) String

String returns the string representation

type GetDownloadUrlForLayerOutput

type GetDownloadUrlForLayerOutput struct {

	// The pre-signed Amazon S3 download URL for the requested layer.
	DownloadUrl *string `locationName:"downloadUrl" type:"string"`

	// The digest of the image layer to download.
	LayerDigest *string `locationName:"layerDigest" type:"string"`
	// contains filtered or unexported fields
}

func (GetDownloadUrlForLayerOutput) GoString

func (s GetDownloadUrlForLayerOutput) GoString() string

GoString returns the string representation

func (GetDownloadUrlForLayerOutput) String

String returns the string representation

type GetRepositoryPolicyInput

type GetRepositoryPolicyInput struct {

	// The AWS account ID associated with the registry that contains the repository.
	// If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository whose policy you want to retrieve.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetRepositoryPolicyInput) GoString

func (s GetRepositoryPolicyInput) GoString() string

GoString returns the string representation

func (GetRepositoryPolicyInput) String

func (s GetRepositoryPolicyInput) String() string

String returns the string representation

type GetRepositoryPolicyOutput

type GetRepositoryPolicyOutput struct {

	// The JSON repository policy text associated with the repository.
	PolicyText *string `locationName:"policyText" type:"string"`

	// The registry ID associated with the request.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The repository name associated with the request.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`
	// contains filtered or unexported fields
}

func (GetRepositoryPolicyOutput) GoString

func (s GetRepositoryPolicyOutput) GoString() string

GoString returns the string representation

func (GetRepositoryPolicyOutput) String

func (s GetRepositoryPolicyOutput) String() string

String returns the string representation

type Image

type Image struct {

	// An object containing the image tag and image digest associated with an image.
	ImageId *ImageIdentifier `locationName:"imageId" type:"structure"`

	// The image manifest associated with the image.
	ImageManifest *string `locationName:"imageManifest" type:"string"`

	// The AWS account ID associated with the registry containing the image.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository associated with the image.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`
	// contains filtered or unexported fields
}

Object representing an image.

func (Image) GoString

func (s Image) GoString() string

GoString returns the string representation

func (Image) String

func (s Image) String() string

String returns the string representation

type ImageFailure

type ImageFailure struct {

	// The code associated with the failure.
	FailureCode *string `locationName:"failureCode" type:"string" enum:"ImageFailureCode"`

	// The reason for the failure.
	FailureReason *string `locationName:"failureReason" type:"string"`

	// The image ID associated with the failure.
	ImageId *ImageIdentifier `locationName:"imageId" type:"structure"`
	// contains filtered or unexported fields
}

func (ImageFailure) GoString

func (s ImageFailure) GoString() string

GoString returns the string representation

func (ImageFailure) String

func (s ImageFailure) String() string

String returns the string representation

type ImageIdentifier

type ImageIdentifier struct {

	// The sha256 digest of the image manifest.
	ImageDigest *string `locationName:"imageDigest" type:"string"`

	// The tag used for the image.
	ImageTag *string `locationName:"imageTag" type:"string"`
	// contains filtered or unexported fields
}

func (ImageIdentifier) GoString

func (s ImageIdentifier) GoString() string

GoString returns the string representation

func (ImageIdentifier) String

func (s ImageIdentifier) String() string

String returns the string representation

type InitiateLayerUploadInput

type InitiateLayerUploadInput struct {

	// The AWS account ID associated with the registry that you intend to upload
	// layers to. If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository that you intend to upload layers to.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (InitiateLayerUploadInput) GoString

func (s InitiateLayerUploadInput) GoString() string

GoString returns the string representation

func (InitiateLayerUploadInput) String

func (s InitiateLayerUploadInput) String() string

String returns the string representation

type InitiateLayerUploadOutput

type InitiateLayerUploadOutput struct {

	// The size, in bytes, that Amazon ECR expects future layer part uploads to
	// be.
	PartSize *int64 `locationName:"partSize" type:"long"`

	// The upload ID for the layer upload. This parameter is passed to further UploadLayerPart
	// and CompleteLayerUpload operations.
	UploadId *string `locationName:"uploadId" type:"string"`
	// contains filtered or unexported fields
}

func (InitiateLayerUploadOutput) GoString

func (s InitiateLayerUploadOutput) GoString() string

GoString returns the string representation

func (InitiateLayerUploadOutput) String

func (s InitiateLayerUploadOutput) String() string

String returns the string representation

type Layer

type Layer struct {

	// The availability status of the image layer. Valid values are AVAILABLE and
	// UNAVAILABLE.
	LayerAvailability *string `locationName:"layerAvailability" type:"string" enum:"LayerAvailability"`

	// The sha256 digest of the image layer.
	LayerDigest *string `locationName:"layerDigest" type:"string"`

	// The size, in bytes, of the image layer.
	LayerSize *int64 `locationName:"layerSize" type:"long"`
	// contains filtered or unexported fields
}

func (Layer) GoString

func (s Layer) GoString() string

GoString returns the string representation

func (Layer) String

func (s Layer) String() string

String returns the string representation

type LayerFailure

type LayerFailure struct {

	// The failure code associated with the failure.
	FailureCode *string `locationName:"failureCode" type:"string" enum:"LayerFailureCode"`

	// The reason for the failure.
	FailureReason *string `locationName:"failureReason" type:"string"`

	// The layer digest associated with the failure.
	LayerDigest *string `locationName:"layerDigest" type:"string"`
	// contains filtered or unexported fields
}

func (LayerFailure) GoString

func (s LayerFailure) GoString() string

GoString returns the string representation

func (LayerFailure) String

func (s LayerFailure) String() string

String returns the string representation

type ListImagesInput

type ListImagesInput struct {

	// The maximum number of image results returned by ListImages in paginated output.
	// When this parameter is used, ListImages only returns maxResults results in
	// a single page along with a nextToken response element. The remaining results
	// of the initial request can be seen by sending another ListImages request
	// with the returned nextToken value. This value can be between 1 and 100. If
	// this parameter is not used, then ListImages returns up to 100 results and
	// a nextToken value, if applicable.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The nextToken value returned from a previous paginated ListImages request
	// where maxResults was used and the results exceeded the value of that parameter.
	// Pagination continues from the end of the previous results that returned the
	// nextToken value. This value is null when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The AWS account ID associated with the registry that contains the repository
	// to list images in. If you do not specify a registry, the default registry
	// is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The repository whose image IDs are to be listed.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListImagesInput) GoString

func (s ListImagesInput) GoString() string

GoString returns the string representation

func (ListImagesInput) String

func (s ListImagesInput) String() string

String returns the string representation

type ListImagesOutput

type ListImagesOutput struct {

	// The list of image IDs for the requested repository.
	ImageIds []*ImageIdentifier `locationName:"imageIds" min:"1" type:"list"`

	// The nextToken value to include in a future ListImages request. When the results
	// of a ListImages request exceed maxResults, this value can be used to retrieve
	// the next page of results. This value is null when there are no more results
	// to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListImagesOutput) GoString

func (s ListImagesOutput) GoString() string

GoString returns the string representation

func (ListImagesOutput) String

func (s ListImagesOutput) String() string

String returns the string representation

type PutImageInput

type PutImageInput struct {

	// The image manifest corresponding to the image to be uploaded.
	ImageManifest *string `locationName:"imageManifest" type:"string" required:"true"`

	// The AWS account ID associated with the registry that contains the repository
	// in which to put the image. If you do not specify a registry, the default
	// registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository in which to put the image.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutImageInput) GoString

func (s PutImageInput) GoString() string

GoString returns the string representation

func (PutImageInput) String

func (s PutImageInput) String() string

String returns the string representation

type PutImageOutput

type PutImageOutput struct {

	// Details of the image uploaded.
	Image *Image `locationName:"image" type:"structure"`
	// contains filtered or unexported fields
}

func (PutImageOutput) GoString

func (s PutImageOutput) GoString() string

GoString returns the string representation

func (PutImageOutput) String

func (s PutImageOutput) String() string

String returns the string representation

type Repository

type Repository struct {

	// The AWS account ID associated with the registry that contains the repository.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The Amazon Resource Name (ARN) that identifies the repository. The ARN contains
	// the arn:aws:ecr namespace, followed by the region of the repository, the
	// AWS account ID of the repository owner, the repository namespace, and then
	// the repository name. For example, arn:aws:ecr:region:012345678910:repository/test.
	RepositoryArn *string `locationName:"repositoryArn" type:"string"`

	// The name of the repository.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`
	// contains filtered or unexported fields
}

Object representing a repository.

func (Repository) GoString

func (s Repository) GoString() string

GoString returns the string representation

func (Repository) String

func (s Repository) String() string

String returns the string representation

type SetRepositoryPolicyInput

type SetRepositoryPolicyInput struct {

	// If the policy you are attempting to set on a repository policy would prevent
	// you from setting another policy in the future, you must force the SetRepositoryPolicy
	// operation. This is intended to prevent accidental repository lock outs.
	Force *bool `locationName:"force" type:"boolean"`

	// The JSON repository policy text to apply to the repository.
	PolicyText *string `locationName:"policyText" type:"string" required:"true"`

	// The AWS account ID associated with the registry that contains the repository.
	// If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository to receive the policy.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (SetRepositoryPolicyInput) GoString

func (s SetRepositoryPolicyInput) GoString() string

GoString returns the string representation

func (SetRepositoryPolicyInput) String

func (s SetRepositoryPolicyInput) String() string

String returns the string representation

type SetRepositoryPolicyOutput

type SetRepositoryPolicyOutput struct {

	// The JSON repository policy text applied to the repository.
	PolicyText *string `locationName:"policyText" type:"string"`

	// The registry ID associated with the request.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The repository name associated with the request.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`
	// contains filtered or unexported fields
}

func (SetRepositoryPolicyOutput) GoString

func (s SetRepositoryPolicyOutput) GoString() string

GoString returns the string representation

func (SetRepositoryPolicyOutput) String

func (s SetRepositoryPolicyOutput) String() string

String returns the string representation

type UploadLayerPartInput

type UploadLayerPartInput struct {

	// The base64-encoded layer part payload.
	LayerPartBlob []byte `locationName:"layerPartBlob" type:"blob" required:"true"`

	// The integer value of the first byte of the layer part.
	PartFirstByte *int64 `locationName:"partFirstByte" type:"long" required:"true"`

	// The integer value of the last byte of the layer part.
	PartLastByte *int64 `locationName:"partLastByte" type:"long" required:"true"`

	// The AWS account ID associated with the registry that you are uploading layer
	// parts to. If you do not specify a registry, the default registry is assumed.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The name of the repository that you are uploading layer parts to.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`

	// The upload ID from a previous InitiateLayerUpload operation to associate
	// with the layer part upload.
	UploadId *string `locationName:"uploadId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UploadLayerPartInput) GoString

func (s UploadLayerPartInput) GoString() string

GoString returns the string representation

func (UploadLayerPartInput) String

func (s UploadLayerPartInput) String() string

String returns the string representation

type UploadLayerPartOutput

type UploadLayerPartOutput struct {

	// The integer value of the last byte received in the request.
	LastByteReceived *int64 `locationName:"lastByteReceived" type:"long"`

	// The registry ID associated with the request.
	RegistryId *string `locationName:"registryId" type:"string"`

	// The repository name associated with the request.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`

	// The upload ID associated with the request.
	UploadId *string `locationName:"uploadId" type:"string"`
	// contains filtered or unexported fields
}

func (UploadLayerPartOutput) GoString

func (s UploadLayerPartOutput) GoString() string

GoString returns the string representation

func (UploadLayerPartOutput) String

func (s UploadLayerPartOutput) String() string

String returns the string representation

Directories

Path Synopsis
Package ecriface provides an interface for the Amazon EC2 Container Registry.
Package ecriface provides an interface for the Amazon EC2 Container Registry.

Jump to

Keyboard shortcuts

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