Documentation ¶
Overview ¶
Package ecr provides the API client, operations, and parameter types for Amazon EC2 Container Registry.
Amazon Elastic Container Registry ¶
Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Customers can use the familiar Docker CLI, or their preferred client, to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry for your Docker or Open Container Initiative (OCI) images. Amazon ECR supports private repositories with resource-based permissions using IAM so that specific users or Amazon EC2 instances can access repositories and images.
Amazon ECR has service endpoints in each supported Region. For more information, see Amazon ECR endpointsin the Amazon Web Services General Reference.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type BatchCheckLayerAvailabilityInput
- type BatchCheckLayerAvailabilityOutput
- type BatchDeleteImageInput
- type BatchDeleteImageOutput
- type BatchGetImageInput
- type BatchGetImageOutput
- type BatchGetRepositoryScanningConfigurationInput
- type BatchGetRepositoryScanningConfigurationOutput
- type Client
- func (c *Client) BatchCheckLayerAvailability(ctx context.Context, params *BatchCheckLayerAvailabilityInput, ...) (*BatchCheckLayerAvailabilityOutput, error)
- func (c *Client) BatchDeleteImage(ctx context.Context, params *BatchDeleteImageInput, optFns ...func(*Options)) (*BatchDeleteImageOutput, error)
- func (c *Client) BatchGetImage(ctx context.Context, params *BatchGetImageInput, optFns ...func(*Options)) (*BatchGetImageOutput, error)
- func (c *Client) BatchGetRepositoryScanningConfiguration(ctx context.Context, params *BatchGetRepositoryScanningConfigurationInput, ...) (*BatchGetRepositoryScanningConfigurationOutput, error)
- func (c *Client) CompleteLayerUpload(ctx context.Context, params *CompleteLayerUploadInput, ...) (*CompleteLayerUploadOutput, error)
- func (c *Client) CreatePullThroughCacheRule(ctx context.Context, params *CreatePullThroughCacheRuleInput, ...) (*CreatePullThroughCacheRuleOutput, error)
- func (c *Client) CreateRepository(ctx context.Context, params *CreateRepositoryInput, optFns ...func(*Options)) (*CreateRepositoryOutput, error)
- func (c *Client) CreateRepositoryCreationTemplate(ctx context.Context, params *CreateRepositoryCreationTemplateInput, ...) (*CreateRepositoryCreationTemplateOutput, error)
- func (c *Client) DeleteLifecyclePolicy(ctx context.Context, params *DeleteLifecyclePolicyInput, ...) (*DeleteLifecyclePolicyOutput, error)
- func (c *Client) DeletePullThroughCacheRule(ctx context.Context, params *DeletePullThroughCacheRuleInput, ...) (*DeletePullThroughCacheRuleOutput, error)
- func (c *Client) DeleteRegistryPolicy(ctx context.Context, params *DeleteRegistryPolicyInput, ...) (*DeleteRegistryPolicyOutput, error)
- func (c *Client) DeleteRepository(ctx context.Context, params *DeleteRepositoryInput, optFns ...func(*Options)) (*DeleteRepositoryOutput, error)
- func (c *Client) DeleteRepositoryCreationTemplate(ctx context.Context, params *DeleteRepositoryCreationTemplateInput, ...) (*DeleteRepositoryCreationTemplateOutput, error)
- func (c *Client) DeleteRepositoryPolicy(ctx context.Context, params *DeleteRepositoryPolicyInput, ...) (*DeleteRepositoryPolicyOutput, error)
- func (c *Client) DescribeImageReplicationStatus(ctx context.Context, params *DescribeImageReplicationStatusInput, ...) (*DescribeImageReplicationStatusOutput, error)
- func (c *Client) DescribeImageScanFindings(ctx context.Context, params *DescribeImageScanFindingsInput, ...) (*DescribeImageScanFindingsOutput, error)
- func (c *Client) DescribeImages(ctx context.Context, params *DescribeImagesInput, optFns ...func(*Options)) (*DescribeImagesOutput, error)
- func (c *Client) DescribePullThroughCacheRules(ctx context.Context, params *DescribePullThroughCacheRulesInput, ...) (*DescribePullThroughCacheRulesOutput, error)
- func (c *Client) DescribeRegistry(ctx context.Context, params *DescribeRegistryInput, optFns ...func(*Options)) (*DescribeRegistryOutput, error)
- func (c *Client) DescribeRepositories(ctx context.Context, params *DescribeRepositoriesInput, ...) (*DescribeRepositoriesOutput, error)
- func (c *Client) DescribeRepositoryCreationTemplates(ctx context.Context, params *DescribeRepositoryCreationTemplatesInput, ...) (*DescribeRepositoryCreationTemplatesOutput, error)
- func (c *Client) GetAccountSetting(ctx context.Context, params *GetAccountSettingInput, optFns ...func(*Options)) (*GetAccountSettingOutput, error)
- func (c *Client) GetAuthorizationToken(ctx context.Context, params *GetAuthorizationTokenInput, ...) (*GetAuthorizationTokenOutput, error)
- func (c *Client) GetDownloadUrlForLayer(ctx context.Context, params *GetDownloadUrlForLayerInput, ...) (*GetDownloadUrlForLayerOutput, error)
- func (c *Client) GetLifecyclePolicy(ctx context.Context, params *GetLifecyclePolicyInput, optFns ...func(*Options)) (*GetLifecyclePolicyOutput, error)
- func (c *Client) GetLifecyclePolicyPreview(ctx context.Context, params *GetLifecyclePolicyPreviewInput, ...) (*GetLifecyclePolicyPreviewOutput, error)
- func (c *Client) GetRegistryPolicy(ctx context.Context, params *GetRegistryPolicyInput, optFns ...func(*Options)) (*GetRegistryPolicyOutput, error)
- func (c *Client) GetRegistryScanningConfiguration(ctx context.Context, params *GetRegistryScanningConfigurationInput, ...) (*GetRegistryScanningConfigurationOutput, error)
- func (c *Client) GetRepositoryPolicy(ctx context.Context, params *GetRepositoryPolicyInput, ...) (*GetRepositoryPolicyOutput, error)
- func (c *Client) InitiateLayerUpload(ctx context.Context, params *InitiateLayerUploadInput, ...) (*InitiateLayerUploadOutput, error)
- func (c *Client) ListImages(ctx context.Context, params *ListImagesInput, optFns ...func(*Options)) (*ListImagesOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) PutAccountSetting(ctx context.Context, params *PutAccountSettingInput, optFns ...func(*Options)) (*PutAccountSettingOutput, error)
- func (c *Client) PutImage(ctx context.Context, params *PutImageInput, optFns ...func(*Options)) (*PutImageOutput, error)
- func (c *Client) PutImageScanningConfiguration(ctx context.Context, params *PutImageScanningConfigurationInput, ...) (*PutImageScanningConfigurationOutput, error)
- func (c *Client) PutImageTagMutability(ctx context.Context, params *PutImageTagMutabilityInput, ...) (*PutImageTagMutabilityOutput, error)
- func (c *Client) PutLifecyclePolicy(ctx context.Context, params *PutLifecyclePolicyInput, optFns ...func(*Options)) (*PutLifecyclePolicyOutput, error)
- func (c *Client) PutRegistryPolicy(ctx context.Context, params *PutRegistryPolicyInput, optFns ...func(*Options)) (*PutRegistryPolicyOutput, error)
- func (c *Client) PutRegistryScanningConfiguration(ctx context.Context, params *PutRegistryScanningConfigurationInput, ...) (*PutRegistryScanningConfigurationOutput, error)
- func (c *Client) PutReplicationConfiguration(ctx context.Context, params *PutReplicationConfigurationInput, ...) (*PutReplicationConfigurationOutput, error)
- func (c *Client) SetRepositoryPolicy(ctx context.Context, params *SetRepositoryPolicyInput, ...) (*SetRepositoryPolicyOutput, error)
- func (c *Client) StartImageScan(ctx context.Context, params *StartImageScanInput, optFns ...func(*Options)) (*StartImageScanOutput, error)
- func (c *Client) StartLifecyclePolicyPreview(ctx context.Context, params *StartLifecyclePolicyPreviewInput, ...) (*StartLifecyclePolicyPreviewOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdatePullThroughCacheRule(ctx context.Context, params *UpdatePullThroughCacheRuleInput, ...) (*UpdatePullThroughCacheRuleOutput, error)
- func (c *Client) UpdateRepositoryCreationTemplate(ctx context.Context, params *UpdateRepositoryCreationTemplateInput, ...) (*UpdateRepositoryCreationTemplateOutput, error)
- func (c *Client) UploadLayerPart(ctx context.Context, params *UploadLayerPartInput, optFns ...func(*Options)) (*UploadLayerPartOutput, error)
- func (c *Client) ValidatePullThroughCacheRule(ctx context.Context, params *ValidatePullThroughCacheRuleInput, ...) (*ValidatePullThroughCacheRuleOutput, error)
- type CompleteLayerUploadInput
- type CompleteLayerUploadOutput
- type CreatePullThroughCacheRuleInput
- type CreatePullThroughCacheRuleOutput
- type CreateRepositoryCreationTemplateInput
- type CreateRepositoryCreationTemplateOutput
- type CreateRepositoryInput
- type CreateRepositoryOutput
- type DeleteLifecyclePolicyInput
- type DeleteLifecyclePolicyOutput
- type DeletePullThroughCacheRuleInput
- type DeletePullThroughCacheRuleOutput
- type DeleteRegistryPolicyInput
- type DeleteRegistryPolicyOutput
- type DeleteRepositoryCreationTemplateInput
- type DeleteRepositoryCreationTemplateOutput
- type DeleteRepositoryInput
- type DeleteRepositoryOutput
- type DeleteRepositoryPolicyInput
- type DeleteRepositoryPolicyOutput
- type DescribeImageReplicationStatusInput
- type DescribeImageReplicationStatusOutput
- type DescribeImageScanFindingsAPIClient
- type DescribeImageScanFindingsInput
- type DescribeImageScanFindingsOutput
- type DescribeImageScanFindingsPaginator
- type DescribeImageScanFindingsPaginatorOptions
- type DescribeImagesAPIClient
- type DescribeImagesInput
- type DescribeImagesOutput
- type DescribeImagesPaginator
- type DescribeImagesPaginatorOptions
- type DescribePullThroughCacheRulesAPIClient
- type DescribePullThroughCacheRulesInput
- type DescribePullThroughCacheRulesOutput
- type DescribePullThroughCacheRulesPaginator
- type DescribePullThroughCacheRulesPaginatorOptions
- type DescribeRegistryInput
- type DescribeRegistryOutput
- type DescribeRepositoriesAPIClient
- type DescribeRepositoriesInput
- type DescribeRepositoriesOutput
- type DescribeRepositoriesPaginator
- type DescribeRepositoriesPaginatorOptions
- type DescribeRepositoryCreationTemplatesAPIClient
- type DescribeRepositoryCreationTemplatesInput
- type DescribeRepositoryCreationTemplatesOutput
- type DescribeRepositoryCreationTemplatesPaginator
- type DescribeRepositoryCreationTemplatesPaginatorOptions
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetAccountSettingInput
- type GetAccountSettingOutput
- type GetAuthorizationTokenInput
- type GetAuthorizationTokenOutput
- type GetDownloadUrlForLayerInput
- type GetDownloadUrlForLayerOutput
- type GetLifecyclePolicyInput
- type GetLifecyclePolicyOutput
- type GetLifecyclePolicyPreviewAPIClient
- type GetLifecyclePolicyPreviewInput
- type GetLifecyclePolicyPreviewOutput
- type GetLifecyclePolicyPreviewPaginator
- type GetLifecyclePolicyPreviewPaginatorOptions
- type GetRegistryPolicyInput
- type GetRegistryPolicyOutput
- type GetRegistryScanningConfigurationInput
- type GetRegistryScanningConfigurationOutput
- type GetRepositoryPolicyInput
- type GetRepositoryPolicyOutput
- type HTTPClient
- type HTTPSignerV4
- type ImageScanCompleteWaiter
- type ImageScanCompleteWaiterOptions
- type InitiateLayerUploadInput
- type InitiateLayerUploadOutput
- type LifecyclePolicyPreviewCompleteWaiter
- type LifecyclePolicyPreviewCompleteWaiterOptions
- type ListImagesAPIClient
- type ListImagesInput
- type ListImagesOutput
- type ListImagesPaginator
- type ListImagesPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type PutAccountSettingInput
- type PutAccountSettingOutput
- type PutImageInput
- type PutImageOutput
- type PutImageScanningConfigurationInput
- type PutImageScanningConfigurationOutput
- type PutImageTagMutabilityInput
- type PutImageTagMutabilityOutput
- type PutLifecyclePolicyInput
- type PutLifecyclePolicyOutput
- type PutRegistryPolicyInput
- type PutRegistryPolicyOutput
- type PutRegistryScanningConfigurationInput
- type PutRegistryScanningConfigurationOutput
- type PutReplicationConfigurationInput
- type PutReplicationConfigurationOutput
- type ResolveEndpoint
- type SetRepositoryPolicyInput
- type SetRepositoryPolicyOutput
- type StartImageScanInput
- type StartImageScanOutput
- type StartLifecyclePolicyPreviewInput
- type StartLifecyclePolicyPreviewOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdatePullThroughCacheRuleInput
- type UpdatePullThroughCacheRuleOutput
- type UpdateRepositoryCreationTemplateInput
- type UpdateRepositoryCreationTemplateOutput
- type UploadLayerPartInput
- type UploadLayerPartOutput
- type ValidatePullThroughCacheRuleInput
- type ValidatePullThroughCacheRuleOutput
Constants ¶
const ServiceAPIVersion = "2015-09-21"
const ServiceID = "ECR"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.19.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.22.2
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.22.2
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.22.2
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.22.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type BatchCheckLayerAvailabilityInput ¶
type BatchCheckLayerAvailabilityInput struct { // The digests of the image layers to check. // // This member is required. LayerDigests []string // The name of the repository that is associated with the image layers to check. // // This member is required. RepositoryName *string // The Amazon Web Services 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 // contains filtered or unexported fields }
type BatchCheckLayerAvailabilityOutput ¶
type BatchCheckLayerAvailabilityOutput struct { // Any failures associated with the call. Failures []types.LayerFailure // A list of image layer objects corresponding to the image layer references in // the request. Layers []types.Layer // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 . // // This member is required. ImageIds []types.ImageIdentifier // The repository that contains the image to delete. // // This member is required. RepositoryName *string // The Amazon Web Services 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 // contains filtered or unexported fields }
Deletes specified images within a specified repository. Images are specified with either the imageTag or imageDigest .
type BatchDeleteImageOutput ¶
type BatchDeleteImageOutput struct { // Any failures associated with the call. Failures []types.ImageFailure // The image IDs of the deleted images. ImageIds []types.ImageIdentifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 . // // This member is required. ImageIds []types.ImageIdentifier // The repository that contains the images to describe. // // This member is required. RepositoryName *string // The accepted media types for the request. // // Valid values: application/vnd.docker.distribution.manifest.v1+json | // application/vnd.docker.distribution.manifest.v2+json | // application/vnd.oci.image.manifest.v1+json AcceptedMediaTypes []string // The Amazon Web Services 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 // contains filtered or unexported fields }
type BatchGetImageOutput ¶
type BatchGetImageOutput struct { // Any failures associated with the call. Failures []types.ImageFailure // A list of image objects corresponding to the image references in the request. Images []types.Image // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type BatchGetRepositoryScanningConfigurationInput ¶ added in v1.11.0
type BatchGetRepositoryScanningConfigurationInput struct { // One or more repository names to get the scanning configuration for. // // This member is required. RepositoryNames []string // contains filtered or unexported fields }
type BatchGetRepositoryScanningConfigurationOutput ¶ added in v1.11.0
type BatchGetRepositoryScanningConfigurationOutput struct { // Any failures associated with the call. Failures []types.RepositoryScanningConfigurationFailure // The scanning configuration for the requested repositories. ScanningConfigurations []types.RepositoryScanningConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon EC2 Container Registry.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) BatchCheckLayerAvailability ¶
func (c *Client) BatchCheckLayerAvailability(ctx context.Context, params *BatchCheckLayerAvailabilityInput, optFns ...func(*Options)) (*BatchCheckLayerAvailabilityOutput, error)
Checks the availability of one or more image layers in a repository.
When an image is pushed to a repository, each image layer is checked to verify if it has been uploaded before. If it has been uploaded, then the image layer is skipped.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
func (*Client) BatchDeleteImage ¶
func (c *Client) BatchDeleteImage(ctx context.Context, params *BatchDeleteImageInput, optFns ...func(*Options)) (*BatchDeleteImageOutput, error)
Deletes a list of specified images within a repository. Images are specified with either an imageTag or imageDigest .
You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.
You can completely delete an image (and all of its tags) by specifying the image's digest in your request.
func (*Client) BatchGetImage ¶
func (c *Client) BatchGetImage(ctx context.Context, params *BatchGetImageInput, optFns ...func(*Options)) (*BatchGetImageOutput, error)
Gets detailed information for an image. Images are specified with either an imageTag or imageDigest .
When an image is pulled, the BatchGetImage API is called once to retrieve the image manifest.
func (*Client) BatchGetRepositoryScanningConfiguration ¶ added in v1.11.0
func (c *Client) BatchGetRepositoryScanningConfiguration(ctx context.Context, params *BatchGetRepositoryScanningConfigurationInput, optFns ...func(*Options)) (*BatchGetRepositoryScanningConfigurationOutput, error)
Gets the scanning configuration for one or more repositories.
func (*Client) CompleteLayerUpload ¶
func (c *Client) CompleteLayerUpload(ctx context.Context, params *CompleteLayerUploadInput, optFns ...func(*Options)) (*CompleteLayerUploadOutput, error)
Informs Amazon ECR that the image layer upload has completed for a specified registry, repository name, and upload ID. You can optionally provide a sha256 digest of the image layer for data validation purposes.
When an image is pushed, the CompleteLayerUpload API is called once per each new image layer to verify that the upload has completed.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
func (*Client) CreatePullThroughCacheRule ¶ added in v1.11.0
func (c *Client) CreatePullThroughCacheRule(ctx context.Context, params *CreatePullThroughCacheRuleInput, optFns ...func(*Options)) (*CreatePullThroughCacheRuleOutput, error)
Creates a pull through cache rule. A pull through cache rule provides a way to cache images from an upstream registry source in your Amazon ECR private registry. For more information, see Using pull through cache rulesin the Amazon Elastic Container Registry User Guide.
func (*Client) CreateRepository ¶
func (c *Client) CreateRepository(ctx context.Context, params *CreateRepositoryInput, optFns ...func(*Options)) (*CreateRepositoryOutput, error)
Creates a repository. For more information, see Amazon ECR repositories in the Amazon Elastic Container Registry User Guide.
func (*Client) CreateRepositoryCreationTemplate ¶ added in v1.31.0
func (c *Client) CreateRepositoryCreationTemplate(ctx context.Context, params *CreateRepositoryCreationTemplateInput, optFns ...func(*Options)) (*CreateRepositoryCreationTemplateOutput, error)
Creates a repository creation template. This template is used to define the settings for repositories created by Amazon ECR on your behalf. For example, repositories created through pull through cache actions. For more information, see Private repository creation templatesin the Amazon Elastic Container Registry User Guide.
func (*Client) DeleteLifecyclePolicy ¶
func (c *Client) DeleteLifecyclePolicy(ctx context.Context, params *DeleteLifecyclePolicyInput, optFns ...func(*Options)) (*DeleteLifecyclePolicyOutput, error)
Deletes the lifecycle policy associated with the specified repository.
func (*Client) DeletePullThroughCacheRule ¶ added in v1.11.0
func (c *Client) DeletePullThroughCacheRule(ctx context.Context, params *DeletePullThroughCacheRuleInput, optFns ...func(*Options)) (*DeletePullThroughCacheRuleOutput, error)
Deletes a pull through cache rule.
func (*Client) DeleteRegistryPolicy ¶ added in v0.31.0
func (c *Client) DeleteRegistryPolicy(ctx context.Context, params *DeleteRegistryPolicyInput, optFns ...func(*Options)) (*DeleteRegistryPolicyOutput, error)
Deletes the registry permissions policy.
func (*Client) DeleteRepository ¶
func (c *Client) DeleteRepository(ctx context.Context, params *DeleteRepositoryInput, optFns ...func(*Options)) (*DeleteRepositoryOutput, error)
Deletes a repository. If the repository isn't empty, you must either delete the contents of the repository or use the force option to delete the repository and have Amazon ECR delete all of its contents on your behalf.
func (*Client) DeleteRepositoryCreationTemplate ¶ added in v1.31.0
func (c *Client) DeleteRepositoryCreationTemplate(ctx context.Context, params *DeleteRepositoryCreationTemplateInput, optFns ...func(*Options)) (*DeleteRepositoryCreationTemplateOutput, error)
Deletes a repository creation template.
func (*Client) DeleteRepositoryPolicy ¶
func (c *Client) DeleteRepositoryPolicy(ctx context.Context, params *DeleteRepositoryPolicyInput, optFns ...func(*Options)) (*DeleteRepositoryPolicyOutput, error)
Deletes the repository policy associated with the specified repository.
func (*Client) DescribeImageReplicationStatus ¶ added in v1.7.0
func (c *Client) DescribeImageReplicationStatus(ctx context.Context, params *DescribeImageReplicationStatusInput, optFns ...func(*Options)) (*DescribeImageReplicationStatusOutput, error)
Returns the replication status for a specified image.
func (*Client) DescribeImageScanFindings ¶
func (c *Client) DescribeImageScanFindings(ctx context.Context, params *DescribeImageScanFindingsInput, optFns ...func(*Options)) (*DescribeImageScanFindingsOutput, error)
Returns the scan findings for the specified image.
func (*Client) DescribeImages ¶
func (c *Client) DescribeImages(ctx context.Context, params *DescribeImagesInput, optFns ...func(*Options)) (*DescribeImagesOutput, error)
Returns metadata about the images in a repository.
Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker registry. The output of the docker images command shows the uncompressed image size, so it may return a larger image size than the image sizes returned by DescribeImages.
func (*Client) DescribePullThroughCacheRules ¶ added in v1.11.0
func (c *Client) DescribePullThroughCacheRules(ctx context.Context, params *DescribePullThroughCacheRulesInput, optFns ...func(*Options)) (*DescribePullThroughCacheRulesOutput, error)
Returns the pull through cache rules for a registry.
func (*Client) DescribeRegistry ¶ added in v0.31.0
func (c *Client) DescribeRegistry(ctx context.Context, params *DescribeRegistryInput, optFns ...func(*Options)) (*DescribeRegistryOutput, error)
Describes the settings for a registry. The replication configuration for a repository can be created or updated with the PutReplicationConfigurationAPI action.
func (*Client) DescribeRepositories ¶
func (c *Client) DescribeRepositories(ctx context.Context, params *DescribeRepositoriesInput, optFns ...func(*Options)) (*DescribeRepositoriesOutput, error)
Describes image repositories in a registry.
func (*Client) DescribeRepositoryCreationTemplates ¶ added in v1.31.0
func (c *Client) DescribeRepositoryCreationTemplates(ctx context.Context, params *DescribeRepositoryCreationTemplatesInput, optFns ...func(*Options)) (*DescribeRepositoryCreationTemplatesOutput, error)
Returns details about the repository creation templates in a registry. The prefixes request parameter can be used to return the details for a specific repository creation template.
func (*Client) GetAccountSetting ¶ added in v1.32.0
func (c *Client) GetAccountSetting(ctx context.Context, params *GetAccountSettingInput, optFns ...func(*Options)) (*GetAccountSettingOutput, error)
Retrieves the basic scan type version name.
func (*Client) GetAuthorizationToken ¶
func (c *Client) GetAuthorizationToken(ctx context.Context, params *GetAuthorizationTokenInput, optFns ...func(*Options)) (*GetAuthorizationTokenOutput, error)
Retrieves an authorization token. An authorization token represents your IAM authentication credentials and can be used to access any Amazon ECR registry that your IAM principal has access to. The authorization token is valid for 12 hours.
The authorizationToken returned is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. The CLI offers an get-login-password command that simplifies the login process. For more information, see Registry authenticationin the Amazon Elastic Container Registry User Guide.
func (*Client) GetDownloadUrlForLayer ¶
func (c *Client) GetDownloadUrlForLayer(ctx context.Context, params *GetDownloadUrlForLayerInput, optFns ...func(*Options)) (*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.
When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer that is not already cached.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
func (*Client) GetLifecyclePolicy ¶
func (c *Client) GetLifecyclePolicy(ctx context.Context, params *GetLifecyclePolicyInput, optFns ...func(*Options)) (*GetLifecyclePolicyOutput, error)
Retrieves the lifecycle policy for the specified repository.
func (*Client) GetLifecyclePolicyPreview ¶
func (c *Client) GetLifecyclePolicyPreview(ctx context.Context, params *GetLifecyclePolicyPreviewInput, optFns ...func(*Options)) (*GetLifecyclePolicyPreviewOutput, error)
Retrieves the results of the lifecycle policy preview request for the specified repository.
func (*Client) GetRegistryPolicy ¶ added in v0.31.0
func (c *Client) GetRegistryPolicy(ctx context.Context, params *GetRegistryPolicyInput, optFns ...func(*Options)) (*GetRegistryPolicyOutput, error)
Retrieves the permissions policy for a registry.
func (*Client) GetRegistryScanningConfiguration ¶ added in v1.11.0
func (c *Client) GetRegistryScanningConfiguration(ctx context.Context, params *GetRegistryScanningConfigurationInput, optFns ...func(*Options)) (*GetRegistryScanningConfigurationOutput, error)
Retrieves the scanning configuration for a registry.
func (*Client) GetRepositoryPolicy ¶
func (c *Client) GetRepositoryPolicy(ctx context.Context, params *GetRepositoryPolicyInput, optFns ...func(*Options)) (*GetRepositoryPolicyOutput, error)
Retrieves the repository policy for the specified repository.
func (*Client) InitiateLayerUpload ¶
func (c *Client) InitiateLayerUpload(ctx context.Context, params *InitiateLayerUploadInput, optFns ...func(*Options)) (*InitiateLayerUploadOutput, error)
Notifies Amazon ECR that you intend to upload an image layer.
When an image is pushed, the InitiateLayerUpload API is called once per image layer that has not already been uploaded. Whether or not an image layer has been uploaded is determined by the BatchCheckLayerAvailability API action.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
func (*Client) ListImages ¶
func (c *Client) ListImages(ctx context.Context, params *ListImagesInput, optFns ...func(*Options)) (*ListImagesOutput, error)
Lists all the image IDs for the specified repository.
You can filter images based on whether or not they are tagged by using the tagStatus filter and specifying either TAGGED , UNTAGGED or ANY . For example, you can filter your results to return only UNTAGGED images and then pipe that result to a BatchDeleteImageoperation to delete them. Or, you can filter your results to return only TAGGED images to list all of the tags in your repository.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
List the tags for an Amazon ECR resource.
func (*Client) Options ¶ added in v1.24.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) PutAccountSetting ¶ added in v1.32.0
func (c *Client) PutAccountSetting(ctx context.Context, params *PutAccountSettingInput, optFns ...func(*Options)) (*PutAccountSettingOutput, error)
Allows you to change the basic scan type version by setting the name parameter to either CLAIR to AWS_NATIVE .
func (*Client) PutImage ¶
func (c *Client) PutImage(ctx context.Context, params *PutImageInput, optFns ...func(*Options)) (*PutImageOutput, error)
Creates or updates the image manifest and tags associated with an image.
When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags associated with the image.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
func (*Client) PutImageScanningConfiguration ¶
func (c *Client) PutImageScanningConfiguration(ctx context.Context, params *PutImageScanningConfigurationInput, optFns ...func(*Options)) (*PutImageScanningConfigurationOutput, error)
The PutImageScanningConfiguration API is being deprecated, in favor of specifying the image scanning configuration at the registry level. For more information, see PutRegistryScanningConfiguration.
Updates the image scanning configuration for the specified repository.
func (*Client) PutImageTagMutability ¶
func (c *Client) PutImageTagMutability(ctx context.Context, params *PutImageTagMutabilityInput, optFns ...func(*Options)) (*PutImageTagMutabilityOutput, error)
Updates the image tag mutability settings for the specified repository. For more information, see Image tag mutabilityin the Amazon Elastic Container Registry User Guide.
func (*Client) PutLifecyclePolicy ¶
func (c *Client) PutLifecyclePolicy(ctx context.Context, params *PutLifecyclePolicyInput, optFns ...func(*Options)) (*PutLifecyclePolicyOutput, error)
Creates or updates the lifecycle policy for the specified repository. For more information, see Lifecycle policy template.
func (*Client) PutRegistryPolicy ¶ added in v0.31.0
func (c *Client) PutRegistryPolicy(ctx context.Context, params *PutRegistryPolicyInput, optFns ...func(*Options)) (*PutRegistryPolicyOutput, error)
Creates or updates the permissions policy for your registry.
A registry policy is used to specify permissions for another Amazon Web Services account and is used when configuring cross-account replication. For more information, see Registry permissionsin the Amazon Elastic Container Registry User Guide.
func (*Client) PutRegistryScanningConfiguration ¶ added in v1.11.0
func (c *Client) PutRegistryScanningConfiguration(ctx context.Context, params *PutRegistryScanningConfigurationInput, optFns ...func(*Options)) (*PutRegistryScanningConfigurationOutput, error)
Creates or updates the scanning configuration for your private registry.
func (*Client) PutReplicationConfiguration ¶ added in v0.31.0
func (c *Client) PutReplicationConfiguration(ctx context.Context, params *PutReplicationConfigurationInput, optFns ...func(*Options)) (*PutReplicationConfigurationOutput, error)
Creates or updates the replication configuration for a registry. The existing replication configuration for a repository can be retrieved with the DescribeRegistryAPI action. The first time the PutReplicationConfiguration API is called, a service-linked IAM role is created in your account for the replication process. For more information, see Using service-linked roles for Amazon ECRin the Amazon Elastic Container Registry User Guide. For more information on the custom role for replication, see Creating an IAM role for replication.
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a registry permissions policy. For more information, see PutRegistryPolicy.
func (*Client) SetRepositoryPolicy ¶
func (c *Client) SetRepositoryPolicy(ctx context.Context, params *SetRepositoryPolicyInput, optFns ...func(*Options)) (*SetRepositoryPolicyOutput, error)
Applies a repository policy to the specified repository to control access permissions. For more information, see Amazon ECR Repository policiesin the Amazon Elastic Container Registry User Guide.
func (*Client) StartImageScan ¶
func (c *Client) StartImageScan(ctx context.Context, params *StartImageScanInput, optFns ...func(*Options)) (*StartImageScanOutput, error)
Starts an image vulnerability scan. An image scan can only be started once per 24 hours on an individual image. This limit includes if an image was scanned on initial push. For more information, see Image scanningin the Amazon Elastic Container Registry User Guide.
func (*Client) StartLifecyclePolicyPreview ¶
func (c *Client) StartLifecyclePolicyPreview(ctx context.Context, params *StartLifecyclePolicyPreviewInput, optFns ...func(*Options)) (*StartLifecyclePolicyPreviewOutput, error)
Starts a preview of a lifecycle policy for the specified repository. This allows you to see the results before associating the lifecycle policy with the repository.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds specified tags to a resource with the specified ARN. Existing tags on a resource are not changed if they are not specified in the request parameters.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Deletes specified tags from a resource.
func (*Client) UpdatePullThroughCacheRule ¶ added in v1.23.0
func (c *Client) UpdatePullThroughCacheRule(ctx context.Context, params *UpdatePullThroughCacheRuleInput, optFns ...func(*Options)) (*UpdatePullThroughCacheRuleOutput, error)
Updates an existing pull through cache rule.
func (*Client) UpdateRepositoryCreationTemplate ¶ added in v1.31.0
func (c *Client) UpdateRepositoryCreationTemplate(ctx context.Context, params *UpdateRepositoryCreationTemplateInput, optFns ...func(*Options)) (*UpdateRepositoryCreationTemplateOutput, error)
Updates an existing repository creation template.
func (*Client) UploadLayerPart ¶
func (c *Client) UploadLayerPart(ctx context.Context, params *UploadLayerPartInput, optFns ...func(*Options)) (*UploadLayerPartOutput, error)
Uploads an image layer part to Amazon ECR.
When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API is called once per each new image layer part.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
func (*Client) ValidatePullThroughCacheRule ¶ added in v1.23.0
func (c *Client) ValidatePullThroughCacheRule(ctx context.Context, params *ValidatePullThroughCacheRuleInput, optFns ...func(*Options)) (*ValidatePullThroughCacheRuleOutput, error)
Validates an existing pull through cache rule for an upstream registry that requires authentication. This will retrieve the contents of the Amazon Web Services Secrets Manager secret, verify the syntax, and then validate that authentication to the upstream registry is successful.
type CompleteLayerUploadInput ¶
type CompleteLayerUploadInput struct { // The sha256 digest of the image layer. // // This member is required. LayerDigests []string // The name of the repository to associate with the image layer. // // This member is required. RepositoryName *string // The upload ID from a previous InitiateLayerUpload operation to associate with the image layer. // // This member is required. UploadId *string // The Amazon Web Services 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 // contains filtered or unexported fields }
type CompleteLayerUploadOutput ¶
type CompleteLayerUploadOutput struct { // The sha256 digest of the image layer. LayerDigest *string // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // The upload ID associated with the layer. UploadId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreatePullThroughCacheRuleInput ¶ added in v1.11.0
type CreatePullThroughCacheRuleInput struct { // The repository name prefix to use when caching images from the source registry. // // This member is required. EcrRepositoryPrefix *string // The registry URL of the upstream public registry to use as the source for the // pull through cache rule. The following is the syntax to use for each supported // upstream registry. // // - Amazon ECR Public ( ecr-public ) - public.ecr.aws // // - Docker Hub ( docker-hub ) - registry-1.docker.io // // - Quay ( quay ) - quay.io // // - Kubernetes ( k8s ) - registry.k8s.io // // - GitHub Container Registry ( github-container-registry ) - ghcr.io // // - Microsoft Azure Container Registry ( azure-container-registry ) - // .azurecr.io // // This member is required. UpstreamRegistryUrl *string // The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager // secret that identifies the credentials to authenticate to the upstream registry. CredentialArn *string // The Amazon Web Services account ID associated with the registry to create the // pull through cache rule for. If you do not specify a registry, the default // registry is assumed. RegistryId *string // The name of the upstream registry. UpstreamRegistry types.UpstreamRegistry // contains filtered or unexported fields }
type CreatePullThroughCacheRuleOutput ¶ added in v1.11.0
type CreatePullThroughCacheRuleOutput struct { // The date and time, in JavaScript date format, when the pull through cache rule // was created. CreatedAt *time.Time // The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager // secret associated with the pull through cache rule. CredentialArn *string // The Amazon ECR repository prefix associated with the pull through cache rule. EcrRepositoryPrefix *string // The registry ID associated with the request. RegistryId *string // The name of the upstream registry associated with the pull through cache rule. UpstreamRegistry types.UpstreamRegistry // The upstream registry URL associated with the pull through cache rule. UpstreamRegistryUrl *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateRepositoryCreationTemplateInput ¶ added in v1.31.0
type CreateRepositoryCreationTemplateInput struct { // A list of enumerable strings representing the Amazon ECR repository creation // scenarios that this template will apply towards. The two supported scenarios are // PULL_THROUGH_CACHE and REPLICATION // // This member is required. AppliedFor []types.RCTAppliedFor // The repository namespace prefix to associate with the template. All // repositories created using this namespace prefix will have the settings defined // in this template applied. For example, a prefix of prod would apply to all // repositories beginning with prod/ . Similarly, a prefix of prod/team would // apply to all repositories beginning with prod/team/ . // // To apply a template to all repositories in your registry that don't have an // associated creation template, you can use ROOT as the prefix. // // There is always an assumed / applied to the end of the prefix. If you specify // ecr-public as the prefix, Amazon ECR treats that as ecr-public/ . When using a // pull through cache rule, the repository prefix you specify during rule creation // is what you should specify as your repository creation template prefix as well. // // This member is required. Prefix *string // The ARN of the role to be assumed by Amazon ECR. This role must be in the same // account as the registry that you are configuring. Amazon ECR will assume your // supplied role when the customRoleArn is specified. When this field isn't // specified, Amazon ECR will use the service-linked role for the repository // creation template. CustomRoleArn *string // A description for the repository creation template. Description *string // The encryption configuration to use for repositories created using the template. EncryptionConfiguration *types.EncryptionConfigurationForRepositoryCreationTemplate // The tag mutability setting for the repository. If this parameter is omitted, // the default setting of MUTABLE will be used which will allow image tags to be // overwritten. If IMMUTABLE is specified, all image tags within the repository // will be immutable which will prevent them from being overwritten. ImageTagMutability types.ImageTagMutability // The lifecycle policy to use for repositories created using the template. LifecyclePolicy *string // The repository policy to apply to repositories created using the template. A // repository policy is a permissions policy associated with a repository to // control access permissions. RepositoryPolicy *string // The metadata to apply to the repository to help you categorize and organize. // Each tag consists of a key and an optional value, both of which you define. Tag // keys can have a maximum character length of 128 characters, and tag values can // have a maximum length of 256 characters. ResourceTags []types.Tag // contains filtered or unexported fields }
type CreateRepositoryCreationTemplateOutput ¶ added in v1.31.0
type CreateRepositoryCreationTemplateOutput struct { // The registry ID associated with the request. RegistryId *string // The details of the repository creation template associated with the request. RepositoryCreationTemplate *types.RepositoryCreationTemplate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 ). // // The repository name must start with a letter and can only contain lowercase // letters, numbers, hyphens, underscores, and forward slashes. // // This member is required. RepositoryName *string // The encryption configuration for the repository. This determines how the // contents of your repository are encrypted at rest. EncryptionConfiguration *types.EncryptionConfiguration // The image scanning configuration for the repository. This determines whether // images are scanned for known vulnerabilities after being pushed to the // repository. ImageScanningConfiguration *types.ImageScanningConfiguration // The tag mutability setting for the repository. If this parameter is omitted, // the default setting of MUTABLE will be used which will allow image tags to be // overwritten. If IMMUTABLE is specified, all image tags within the repository // will be immutable which will prevent them from being overwritten. ImageTagMutability types.ImageTagMutability // The Amazon Web Services account ID associated with the registry to create the // repository. If you do not specify a registry, the default registry is assumed. RegistryId *string // The metadata that you apply to the repository to help you categorize and // organize them. Each tag consists of a key and an optional value, both of which // you define. Tag keys can have a maximum character length of 128 characters, and // tag values can have a maximum length of 256 characters. Tags []types.Tag // contains filtered or unexported fields }
type CreateRepositoryOutput ¶
type CreateRepositoryOutput struct { // The repository that was created. Repository *types.Repository // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteLifecyclePolicyInput ¶
type DeleteLifecyclePolicyInput struct { // The name of the repository. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry that contains // the repository. If you do not specify a registry, the default registry is // assumed. RegistryId *string // contains filtered or unexported fields }
type DeleteLifecyclePolicyOutput ¶
type DeleteLifecyclePolicyOutput struct { // The time stamp of the last time that the lifecycle policy was run. LastEvaluatedAt *time.Time // The JSON lifecycle policy text. LifecyclePolicyText *string // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeletePullThroughCacheRuleInput ¶ added in v1.11.0
type DeletePullThroughCacheRuleInput struct { // The Amazon ECR repository prefix associated with the pull through cache rule to // delete. // // This member is required. EcrRepositoryPrefix *string // The Amazon Web Services account ID associated with the registry that contains // the pull through cache rule. If you do not specify a registry, the default // registry is assumed. RegistryId *string // contains filtered or unexported fields }
type DeletePullThroughCacheRuleOutput ¶ added in v1.11.0
type DeletePullThroughCacheRuleOutput struct { // The timestamp associated with the pull through cache rule. CreatedAt *time.Time // The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager // secret associated with the pull through cache rule. CredentialArn *string // The Amazon ECR repository prefix associated with the request. EcrRepositoryPrefix *string // The registry ID associated with the request. RegistryId *string // The upstream registry URL associated with the pull through cache rule. UpstreamRegistryUrl *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteRegistryPolicyInput ¶ added in v0.31.0
type DeleteRegistryPolicyInput struct {
// contains filtered or unexported fields
}
type DeleteRegistryPolicyOutput ¶ added in v0.31.0
type DeleteRegistryPolicyOutput struct { // The contents of the registry permissions policy that was deleted. PolicyText *string // The registry ID associated with the request. RegistryId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteRepositoryCreationTemplateInput ¶ added in v1.31.0
type DeleteRepositoryCreationTemplateInput struct { // The repository namespace prefix associated with the repository creation // template. // // This member is required. Prefix *string // contains filtered or unexported fields }
type DeleteRepositoryCreationTemplateOutput ¶ added in v1.31.0
type DeleteRepositoryCreationTemplateOutput struct { // The registry ID associated with the request. RegistryId *string // The details of the repository creation template that was deleted. RepositoryCreationTemplate *types.RepositoryCreationTemplate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteRepositoryInput ¶
type DeleteRepositoryInput struct { // The name of the repository to delete. // // This member is required. RepositoryName *string // If true, deleting the repository force deletes the contents of the repository. // If false, the repository must be empty before attempting to delete it. Force bool // The Amazon Web Services 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 // contains filtered or unexported fields }
type DeleteRepositoryOutput ¶
type DeleteRepositoryOutput struct { // The repository that was deleted. Repository *types.Repository // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteRepositoryPolicyInput ¶
type DeleteRepositoryPolicyInput struct { // The name of the repository that is associated with the repository policy to // delete. // // This member is required. RepositoryName *string // The Amazon Web Services 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 // contains filtered or unexported fields }
type DeleteRepositoryPolicyOutput ¶
type DeleteRepositoryPolicyOutput struct { // The JSON repository policy that was deleted from the repository. PolicyText *string // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeImageReplicationStatusInput ¶ added in v1.7.0
type DescribeImageReplicationStatusInput struct { // An object with identifying information for an image in an Amazon ECR repository. // // This member is required. ImageId *types.ImageIdentifier // The name of the repository that the image is in. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry. If you do not // specify a registry, the default registry is assumed. RegistryId *string // contains filtered or unexported fields }
type DescribeImageReplicationStatusOutput ¶ added in v1.7.0
type DescribeImageReplicationStatusOutput struct { // An object with identifying information for an image in an Amazon ECR repository. ImageId *types.ImageIdentifier // The replication status details for the images in the specified repository. ReplicationStatuses []types.ImageReplicationStatus // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeImageScanFindingsAPIClient ¶ added in v0.30.0
type DescribeImageScanFindingsAPIClient interface {
DescribeImageScanFindings(context.Context, *DescribeImageScanFindingsInput, ...func(*Options)) (*DescribeImageScanFindingsOutput, error)
}
DescribeImageScanFindingsAPIClient is a client that implements the DescribeImageScanFindings operation.
type DescribeImageScanFindingsInput ¶
type DescribeImageScanFindingsInput struct { // An object with identifying information for an image in an Amazon ECR repository. // // This member is required. ImageId *types.ImageIdentifier // The repository for the image for which to describe the scan findings. // // This member is required. RepositoryName *string // The maximum number of image scan results returned by DescribeImageScanFindings // in paginated output. When this parameter is used, DescribeImageScanFindings // 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 DescribeImageScanFindings request with the returned nextToken // value. This value can be between 1 and 1000. If this parameter is not used, then // DescribeImageScanFindings returns up to 100 results and a nextToken value, if // applicable. MaxResults *int32 // The nextToken value returned from a previous paginated DescribeImageScanFindings // 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 // The Amazon Web Services account ID associated with the registry that contains // the repository in which to describe the image scan findings for. If you do not // specify a registry, the default registry is assumed. RegistryId *string // contains filtered or unexported fields }
type DescribeImageScanFindingsOutput ¶
type DescribeImageScanFindingsOutput struct { // An object with identifying information for an image in an Amazon ECR repository. ImageId *types.ImageIdentifier // The information contained in the image scan findings. ImageScanFindings *types.ImageScanFindings // The current state of the scan. ImageScanStatus *types.ImageScanStatus // The nextToken value to include in a future DescribeImageScanFindings request. // When the results of a DescribeImageScanFindings 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 // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeImageScanFindingsPaginator ¶ added in v0.30.0
type DescribeImageScanFindingsPaginator struct {
// contains filtered or unexported fields
}
DescribeImageScanFindingsPaginator is a paginator for DescribeImageScanFindings
func NewDescribeImageScanFindingsPaginator ¶ added in v0.30.0
func NewDescribeImageScanFindingsPaginator(client DescribeImageScanFindingsAPIClient, params *DescribeImageScanFindingsInput, optFns ...func(*DescribeImageScanFindingsPaginatorOptions)) *DescribeImageScanFindingsPaginator
NewDescribeImageScanFindingsPaginator returns a new DescribeImageScanFindingsPaginator
func (*DescribeImageScanFindingsPaginator) HasMorePages ¶ added in v0.30.0
func (p *DescribeImageScanFindingsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeImageScanFindingsPaginator) NextPage ¶ added in v0.30.0
func (p *DescribeImageScanFindingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeImageScanFindingsOutput, error)
NextPage retrieves the next DescribeImageScanFindings page.
type DescribeImageScanFindingsPaginatorOptions ¶ added in v0.30.0
type DescribeImageScanFindingsPaginatorOptions struct { // The maximum number of image scan results returned by DescribeImageScanFindings // in paginated output. When this parameter is used, DescribeImageScanFindings // 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 DescribeImageScanFindings request with the returned nextToken // value. This value can be between 1 and 1000. If this parameter is not used, then // DescribeImageScanFindings returns up to 100 results and a nextToken value, if // applicable. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeImageScanFindingsPaginatorOptions is the paginator options for DescribeImageScanFindings
type DescribeImagesAPIClient ¶ added in v0.30.0
type DescribeImagesAPIClient interface {
DescribeImages(context.Context, *DescribeImagesInput, ...func(*Options)) (*DescribeImagesOutput, error)
}
DescribeImagesAPIClient is a client that implements the DescribeImages operation.
type DescribeImagesInput ¶
type DescribeImagesInput struct { // The repository that contains the images to describe. // // This member is required. RepositoryName *string // The filter key and value with which to filter your DescribeImages results. Filter *types.DescribeImagesFilter // The list of image IDs for the requested repository. ImageIds []types.ImageIdentifier // The maximum number of repository results returned by DescribeImages in // paginated output. When this parameter is used, DescribeImages 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 // DescribeImages request with the returned nextToken value. This value can be // between 1 and 1000. If this parameter is not used, then DescribeImages returns // up to 100 results and a nextToken value, if applicable. This option cannot be // used when you specify images with imageIds . MaxResults *int32 // The nextToken value returned from a previous paginated DescribeImages 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. // This option cannot be used when you specify images with imageIds . NextToken *string // The Amazon Web Services account ID associated with the registry that contains // the repository in which to describe images. If you do not specify a registry, // the default registry is assumed. RegistryId *string // contains filtered or unexported fields }
type DescribeImagesOutput ¶
type DescribeImagesOutput struct { // A list of ImageDetail objects that contain data about the image. ImageDetails []types.ImageDetail // The nextToken value to include in a future DescribeImages request. When the // results of a DescribeImages 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 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeImagesPaginator ¶ added in v0.30.0
type DescribeImagesPaginator struct {
// contains filtered or unexported fields
}
DescribeImagesPaginator is a paginator for DescribeImages
func NewDescribeImagesPaginator ¶ added in v0.30.0
func NewDescribeImagesPaginator(client DescribeImagesAPIClient, params *DescribeImagesInput, optFns ...func(*DescribeImagesPaginatorOptions)) *DescribeImagesPaginator
NewDescribeImagesPaginator returns a new DescribeImagesPaginator
func (*DescribeImagesPaginator) HasMorePages ¶ added in v0.30.0
func (p *DescribeImagesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeImagesPaginator) NextPage ¶ added in v0.30.0
func (p *DescribeImagesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeImagesOutput, error)
NextPage retrieves the next DescribeImages page.
type DescribeImagesPaginatorOptions ¶ added in v0.30.0
type DescribeImagesPaginatorOptions struct { // The maximum number of repository results returned by DescribeImages in // paginated output. When this parameter is used, DescribeImages 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 // DescribeImages request with the returned nextToken value. This value can be // between 1 and 1000. If this parameter is not used, then DescribeImages returns // up to 100 results and a nextToken value, if applicable. This option cannot be // used when you specify images with imageIds . Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeImagesPaginatorOptions is the paginator options for DescribeImages
type DescribePullThroughCacheRulesAPIClient ¶ added in v1.11.0
type DescribePullThroughCacheRulesAPIClient interface {
DescribePullThroughCacheRules(context.Context, *DescribePullThroughCacheRulesInput, ...func(*Options)) (*DescribePullThroughCacheRulesOutput, error)
}
DescribePullThroughCacheRulesAPIClient is a client that implements the DescribePullThroughCacheRules operation.
type DescribePullThroughCacheRulesInput ¶ added in v1.11.0
type DescribePullThroughCacheRulesInput struct { // The Amazon ECR repository prefixes associated with the pull through cache rules // to return. If no repository prefix value is specified, all pull through cache // rules are returned. EcrRepositoryPrefixes []string // The maximum number of pull through cache rules returned by // DescribePullThroughCacheRulesRequest in paginated output. When this parameter is // used, DescribePullThroughCacheRulesRequest 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 // DescribePullThroughCacheRulesRequest request with the returned nextToken value. // This value can be between 1 and 1000. If this parameter is not used, then // DescribePullThroughCacheRulesRequest returns up to 100 results and a nextToken // value, if applicable. MaxResults *int32 // The nextToken value returned from a previous paginated // DescribePullThroughCacheRulesRequest 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 // The Amazon Web Services account ID associated with the registry to return the // pull through cache rules for. If you do not specify a registry, the default // registry is assumed. RegistryId *string // contains filtered or unexported fields }
type DescribePullThroughCacheRulesOutput ¶ added in v1.11.0
type DescribePullThroughCacheRulesOutput struct { // The nextToken value to include in a future DescribePullThroughCacheRulesRequest // request. When the results of a DescribePullThroughCacheRulesRequest 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 // The details of the pull through cache rules. PullThroughCacheRules []types.PullThroughCacheRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribePullThroughCacheRulesPaginator ¶ added in v1.11.0
type DescribePullThroughCacheRulesPaginator struct {
// contains filtered or unexported fields
}
DescribePullThroughCacheRulesPaginator is a paginator for DescribePullThroughCacheRules
func NewDescribePullThroughCacheRulesPaginator ¶ added in v1.11.0
func NewDescribePullThroughCacheRulesPaginator(client DescribePullThroughCacheRulesAPIClient, params *DescribePullThroughCacheRulesInput, optFns ...func(*DescribePullThroughCacheRulesPaginatorOptions)) *DescribePullThroughCacheRulesPaginator
NewDescribePullThroughCacheRulesPaginator returns a new DescribePullThroughCacheRulesPaginator
func (*DescribePullThroughCacheRulesPaginator) HasMorePages ¶ added in v1.11.0
func (p *DescribePullThroughCacheRulesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribePullThroughCacheRulesPaginator) NextPage ¶ added in v1.11.0
func (p *DescribePullThroughCacheRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribePullThroughCacheRulesOutput, error)
NextPage retrieves the next DescribePullThroughCacheRules page.
type DescribePullThroughCacheRulesPaginatorOptions ¶ added in v1.11.0
type DescribePullThroughCacheRulesPaginatorOptions struct { // The maximum number of pull through cache rules returned by // DescribePullThroughCacheRulesRequest in paginated output. When this parameter is // used, DescribePullThroughCacheRulesRequest 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 // DescribePullThroughCacheRulesRequest request with the returned nextToken value. // This value can be between 1 and 1000. If this parameter is not used, then // DescribePullThroughCacheRulesRequest returns up to 100 results and a nextToken // value, if applicable. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribePullThroughCacheRulesPaginatorOptions is the paginator options for DescribePullThroughCacheRules
type DescribeRegistryInput ¶ added in v0.31.0
type DescribeRegistryInput struct {
// contains filtered or unexported fields
}
type DescribeRegistryOutput ¶ added in v0.31.0
type DescribeRegistryOutput struct { // The registry ID associated with the request. RegistryId *string // The replication configuration for the registry. ReplicationConfiguration *types.ReplicationConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeRepositoriesAPIClient ¶ added in v0.30.0
type DescribeRepositoriesAPIClient interface {
DescribeRepositories(context.Context, *DescribeRepositoriesInput, ...func(*Options)) (*DescribeRepositoriesOutput, error)
}
DescribeRepositoriesAPIClient is a client that implements the DescribeRepositories operation.
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 1000. If this parameter is not used, then // DescribeRepositories returns up to 100 results and a nextToken value, if // applicable. This option cannot be used when you specify repositories with // repositoryNames . MaxResults *int32 // 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. This option cannot be used when you specify repositories with // repositoryNames . // // This token should be treated as an opaque identifier that is only used to // retrieve the next items in a list and not for other programmatic purposes. NextToken *string // The Amazon Web Services 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 // A list of repositories to describe. If this parameter is omitted, then all // repositories in a registry are described. RepositoryNames []string // contains filtered or unexported fields }
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 // A list of repository objects corresponding to valid repositories. Repositories []types.Repository // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeRepositoriesPaginator ¶ added in v0.30.0
type DescribeRepositoriesPaginator struct {
// contains filtered or unexported fields
}
DescribeRepositoriesPaginator is a paginator for DescribeRepositories
func NewDescribeRepositoriesPaginator ¶ added in v0.30.0
func NewDescribeRepositoriesPaginator(client DescribeRepositoriesAPIClient, params *DescribeRepositoriesInput, optFns ...func(*DescribeRepositoriesPaginatorOptions)) *DescribeRepositoriesPaginator
NewDescribeRepositoriesPaginator returns a new DescribeRepositoriesPaginator
func (*DescribeRepositoriesPaginator) HasMorePages ¶ added in v0.30.0
func (p *DescribeRepositoriesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeRepositoriesPaginator) NextPage ¶ added in v0.30.0
func (p *DescribeRepositoriesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeRepositoriesOutput, error)
NextPage retrieves the next DescribeRepositories page.
type DescribeRepositoriesPaginatorOptions ¶ added in v0.30.0
type DescribeRepositoriesPaginatorOptions 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 1000. If this parameter is not used, then // DescribeRepositories returns up to 100 results and a nextToken value, if // applicable. This option cannot be used when you specify repositories with // repositoryNames . Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeRepositoriesPaginatorOptions is the paginator options for DescribeRepositories
type DescribeRepositoryCreationTemplatesAPIClient ¶ added in v1.31.0
type DescribeRepositoryCreationTemplatesAPIClient interface {
DescribeRepositoryCreationTemplates(context.Context, *DescribeRepositoryCreationTemplatesInput, ...func(*Options)) (*DescribeRepositoryCreationTemplatesOutput, error)
}
DescribeRepositoryCreationTemplatesAPIClient is a client that implements the DescribeRepositoryCreationTemplates operation.
type DescribeRepositoryCreationTemplatesInput ¶ added in v1.31.0
type DescribeRepositoryCreationTemplatesInput struct { // The maximum number of repository results returned by // DescribeRepositoryCreationTemplatesRequest in paginated output. When this // parameter is used, DescribeRepositoryCreationTemplatesRequest 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 // DescribeRepositoryCreationTemplatesRequest request with the returned nextToken // value. This value can be between 1 and 1000. If this parameter is not used, then // DescribeRepositoryCreationTemplatesRequest returns up to 100 results and a // nextToken value, if applicable. MaxResults *int32 // The nextToken value returned from a previous paginated // DescribeRepositoryCreationTemplates 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. // // This token should be treated as an opaque identifier that is only used to // retrieve the next items in a list and not for other programmatic purposes. NextToken *string // The repository namespace prefixes associated with the repository creation // templates to describe. If this value is not specified, all repository creation // templates are returned. Prefixes []string // contains filtered or unexported fields }
type DescribeRepositoryCreationTemplatesOutput ¶ added in v1.31.0
type DescribeRepositoryCreationTemplatesOutput struct { // The nextToken value to include in a future DescribeRepositoryCreationTemplates // request. When the results of a DescribeRepositoryCreationTemplates 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 // The registry ID associated with the request. RegistryId *string // The details of the repository creation templates. RepositoryCreationTemplates []types.RepositoryCreationTemplate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeRepositoryCreationTemplatesPaginator ¶ added in v1.31.0
type DescribeRepositoryCreationTemplatesPaginator struct {
// contains filtered or unexported fields
}
DescribeRepositoryCreationTemplatesPaginator is a paginator for DescribeRepositoryCreationTemplates
func NewDescribeRepositoryCreationTemplatesPaginator ¶ added in v1.31.0
func NewDescribeRepositoryCreationTemplatesPaginator(client DescribeRepositoryCreationTemplatesAPIClient, params *DescribeRepositoryCreationTemplatesInput, optFns ...func(*DescribeRepositoryCreationTemplatesPaginatorOptions)) *DescribeRepositoryCreationTemplatesPaginator
NewDescribeRepositoryCreationTemplatesPaginator returns a new DescribeRepositoryCreationTemplatesPaginator
func (*DescribeRepositoryCreationTemplatesPaginator) HasMorePages ¶ added in v1.31.0
func (p *DescribeRepositoryCreationTemplatesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeRepositoryCreationTemplatesPaginator) NextPage ¶ added in v1.31.0
func (p *DescribeRepositoryCreationTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeRepositoryCreationTemplatesOutput, error)
NextPage retrieves the next DescribeRepositoryCreationTemplates page.
type DescribeRepositoryCreationTemplatesPaginatorOptions ¶ added in v1.31.0
type DescribeRepositoryCreationTemplatesPaginatorOptions struct { // The maximum number of repository results returned by // DescribeRepositoryCreationTemplatesRequest in paginated output. When this // parameter is used, DescribeRepositoryCreationTemplatesRequest 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 // DescribeRepositoryCreationTemplatesRequest request with the returned nextToken // value. This value can be between 1 and 1000. If this parameter is not used, then // DescribeRepositoryCreationTemplatesRequest returns up to 100 results and a // nextToken value, if applicable. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeRepositoryCreationTemplatesPaginatorOptions is the paginator options for DescribeRepositoryCreationTemplates
type EndpointParameters ¶ added in v1.19.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.19.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.19.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶ added in v1.1.0
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶ added in v0.29.0
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.19.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.19.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetAccountSettingInput ¶ added in v1.32.0
type GetAccountSettingInput struct { // Basic scan type version name. // // This member is required. Name *string // contains filtered or unexported fields }
type GetAccountSettingOutput ¶ added in v1.32.0
type GetAccountSettingOutput struct { // Retrieves the basic scan type version name. Name *string // Retrieves the value that specifies what basic scan type is being used: // AWS_NATIVE or CLAIR . Value *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetAuthorizationTokenInput ¶
type GetAuthorizationTokenInput struct { // A list of Amazon Web Services account IDs that are associated with the // registries for which to get AuthorizationData objects. If you do not specify a // registry, the default registry is assumed. // // Deprecated: This field is deprecated. The returned authorization token can be // used to access any Amazon ECR registry that the IAM principal has access to, // specifying a registry ID doesn't change the permissions scope of the // authorization token. RegistryIds []string // contains filtered or unexported fields }
type GetAuthorizationTokenOutput ¶
type GetAuthorizationTokenOutput struct { // A list of authorization token data objects that correspond to the registryIds // values in the request. AuthorizationData []types.AuthorizationData // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetDownloadUrlForLayerInput ¶
type GetDownloadUrlForLayerInput struct { // The digest of the image layer to download. // // This member is required. LayerDigest *string // The name of the repository that is associated with the image layer to download. // // This member is required. RepositoryName *string // The Amazon Web Services 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 // contains filtered or unexported fields }
type GetDownloadUrlForLayerOutput ¶
type GetDownloadUrlForLayerOutput struct { // The pre-signed Amazon S3 download URL for the requested layer. DownloadUrl *string // The digest of the image layer to download. LayerDigest *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetLifecyclePolicyInput ¶
type GetLifecyclePolicyInput struct { // The name of the repository. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry that contains // the repository. If you do not specify a registry, the default registry is // assumed. RegistryId *string // contains filtered or unexported fields }
type GetLifecyclePolicyOutput ¶
type GetLifecyclePolicyOutput struct { // The time stamp of the last time that the lifecycle policy was run. LastEvaluatedAt *time.Time // The JSON lifecycle policy text. LifecyclePolicyText *string // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetLifecyclePolicyPreviewAPIClient ¶ added in v0.30.0
type GetLifecyclePolicyPreviewAPIClient interface {
GetLifecyclePolicyPreview(context.Context, *GetLifecyclePolicyPreviewInput, ...func(*Options)) (*GetLifecyclePolicyPreviewOutput, error)
}
GetLifecyclePolicyPreviewAPIClient is a client that implements the GetLifecyclePolicyPreview operation.
type GetLifecyclePolicyPreviewInput ¶
type GetLifecyclePolicyPreviewInput struct { // The name of the repository. // // This member is required. RepositoryName *string // An optional parameter that filters results based on image tag status and all // tags, if tagged. Filter *types.LifecyclePolicyPreviewFilter // The list of imageIDs to be included. ImageIds []types.ImageIdentifier // The maximum number of repository results returned by // GetLifecyclePolicyPreviewRequest in paginated output. When this parameter is // used, GetLifecyclePolicyPreviewRequest 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 // GetLifecyclePolicyPreviewRequest request with the returned nextToken value. // This value can be between 1 and 1000. If this parameter is not used, then // GetLifecyclePolicyPreviewRequest returns up to 100 results and a nextToken // value, if applicable. This option cannot be used when you specify images with // imageIds . MaxResults *int32 // The nextToken value returned from a previous paginated // GetLifecyclePolicyPreviewRequest 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. This option cannot be used when you // specify images with imageIds . NextToken *string // The Amazon Web Services account ID associated with the registry that contains // the repository. If you do not specify a registry, the default registry is // assumed. RegistryId *string // contains filtered or unexported fields }
type GetLifecyclePolicyPreviewOutput ¶
type GetLifecyclePolicyPreviewOutput struct { // The JSON lifecycle policy text. LifecyclePolicyText *string // The nextToken value to include in a future GetLifecyclePolicyPreview request. // When the results of a GetLifecyclePolicyPreview 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 // The results of the lifecycle policy preview request. PreviewResults []types.LifecyclePolicyPreviewResult // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // The status of the lifecycle policy preview request. Status types.LifecyclePolicyPreviewStatus // The list of images that is returned as a result of the action. Summary *types.LifecyclePolicyPreviewSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetLifecyclePolicyPreviewPaginator ¶ added in v0.30.0
type GetLifecyclePolicyPreviewPaginator struct {
// contains filtered or unexported fields
}
GetLifecyclePolicyPreviewPaginator is a paginator for GetLifecyclePolicyPreview
func NewGetLifecyclePolicyPreviewPaginator ¶ added in v0.30.0
func NewGetLifecyclePolicyPreviewPaginator(client GetLifecyclePolicyPreviewAPIClient, params *GetLifecyclePolicyPreviewInput, optFns ...func(*GetLifecyclePolicyPreviewPaginatorOptions)) *GetLifecyclePolicyPreviewPaginator
NewGetLifecyclePolicyPreviewPaginator returns a new GetLifecyclePolicyPreviewPaginator
func (*GetLifecyclePolicyPreviewPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetLifecyclePolicyPreviewPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetLifecyclePolicyPreviewPaginator) NextPage ¶ added in v0.30.0
func (p *GetLifecyclePolicyPreviewPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetLifecyclePolicyPreviewOutput, error)
NextPage retrieves the next GetLifecyclePolicyPreview page.
type GetLifecyclePolicyPreviewPaginatorOptions ¶ added in v0.30.0
type GetLifecyclePolicyPreviewPaginatorOptions struct { // The maximum number of repository results returned by // GetLifecyclePolicyPreviewRequest in paginated output. When this parameter is // used, GetLifecyclePolicyPreviewRequest 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 // GetLifecyclePolicyPreviewRequest request with the returned nextToken value. // This value can be between 1 and 1000. If this parameter is not used, then // GetLifecyclePolicyPreviewRequest returns up to 100 results and a nextToken // value, if applicable. This option cannot be used when you specify images with // imageIds . Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetLifecyclePolicyPreviewPaginatorOptions is the paginator options for GetLifecyclePolicyPreview
type GetRegistryPolicyInput ¶ added in v0.31.0
type GetRegistryPolicyInput struct {
// contains filtered or unexported fields
}
type GetRegistryPolicyOutput ¶ added in v0.31.0
type GetRegistryPolicyOutput struct { // The JSON text of the permissions policy for a registry. PolicyText *string // The registry ID associated with the request. RegistryId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetRegistryScanningConfigurationInput ¶ added in v1.11.0
type GetRegistryScanningConfigurationInput struct {
// contains filtered or unexported fields
}
type GetRegistryScanningConfigurationOutput ¶ added in v1.11.0
type GetRegistryScanningConfigurationOutput struct { // The registry ID associated with the request. RegistryId *string // The scanning configuration for the registry. ScanningConfiguration *types.RegistryScanningConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetRepositoryPolicyInput ¶
type GetRepositoryPolicyInput struct { // The name of the repository with the policy to retrieve. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry that contains // the repository. If you do not specify a registry, the default registry is // assumed. RegistryId *string // contains filtered or unexported fields }
type GetRepositoryPolicyOutput ¶
type GetRepositoryPolicyOutput struct { // The JSON repository policy text associated with the repository. PolicyText *string // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type ImageScanCompleteWaiter ¶ added in v0.31.0
type ImageScanCompleteWaiter struct {
// contains filtered or unexported fields
}
ImageScanCompleteWaiter defines the waiters for ImageScanComplete
func NewImageScanCompleteWaiter ¶ added in v0.31.0
func NewImageScanCompleteWaiter(client DescribeImageScanFindingsAPIClient, optFns ...func(*ImageScanCompleteWaiterOptions)) *ImageScanCompleteWaiter
NewImageScanCompleteWaiter constructs a ImageScanCompleteWaiter.
func (*ImageScanCompleteWaiter) Wait ¶ added in v0.31.0
func (w *ImageScanCompleteWaiter) Wait(ctx context.Context, params *DescribeImageScanFindingsInput, maxWaitDur time.Duration, optFns ...func(*ImageScanCompleteWaiterOptions)) error
Wait calls the waiter function for ImageScanComplete waiter. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
func (*ImageScanCompleteWaiter) WaitForOutput ¶ added in v1.10.0
func (w *ImageScanCompleteWaiter) WaitForOutput(ctx context.Context, params *DescribeImageScanFindingsInput, maxWaitDur time.Duration, optFns ...func(*ImageScanCompleteWaiterOptions)) (*DescribeImageScanFindingsOutput, error)
WaitForOutput calls the waiter function for ImageScanComplete waiter and returns the output of the successful operation. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
type ImageScanCompleteWaiterOptions ¶ added in v0.31.0
type ImageScanCompleteWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. // // Passing options here is functionally equivalent to passing values to this // config's ClientOptions field that extend the inner client's APIOptions directly. APIOptions []func(*middleware.Stack) error // Functional options to be passed to all operations invoked by this client. // // Function values that modify the inner APIOptions are applied after the waiter // config's own APIOptions modifiers. ClientOptions []func(*Options) // MinDelay is the minimum amount of time to delay between retries. If unset, // ImageScanCompleteWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, ImageScanCompleteWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. // // By default service-modeled logic will populate this option. This option can // thus be used to define a custom waiter state with fall-back to service-modeled // waiter state mutators.The function returns an error in case of a failure state. // In case of retry state, this function returns a bool value of true and nil // error, while in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeImageScanFindingsInput, *DescribeImageScanFindingsOutput, error) (bool, error) }
ImageScanCompleteWaiterOptions are waiter options for ImageScanCompleteWaiter
type InitiateLayerUploadInput ¶
type InitiateLayerUploadInput struct { // The name of the repository to which you intend to upload layers. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry to which you // intend to upload layers. If you do not specify a registry, the default registry // is assumed. RegistryId *string // contains filtered or unexported fields }
type InitiateLayerUploadOutput ¶
type InitiateLayerUploadOutput struct { // The size, in bytes, that Amazon ECR expects future layer part uploads to be. PartSize *int64 // The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload // operations. UploadId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type LifecyclePolicyPreviewCompleteWaiter ¶ added in v0.31.0
type LifecyclePolicyPreviewCompleteWaiter struct {
// contains filtered or unexported fields
}
LifecyclePolicyPreviewCompleteWaiter defines the waiters for LifecyclePolicyPreviewComplete
func NewLifecyclePolicyPreviewCompleteWaiter ¶ added in v0.31.0
func NewLifecyclePolicyPreviewCompleteWaiter(client GetLifecyclePolicyPreviewAPIClient, optFns ...func(*LifecyclePolicyPreviewCompleteWaiterOptions)) *LifecyclePolicyPreviewCompleteWaiter
NewLifecyclePolicyPreviewCompleteWaiter constructs a LifecyclePolicyPreviewCompleteWaiter.
func (*LifecyclePolicyPreviewCompleteWaiter) Wait ¶ added in v0.31.0
func (w *LifecyclePolicyPreviewCompleteWaiter) Wait(ctx context.Context, params *GetLifecyclePolicyPreviewInput, maxWaitDur time.Duration, optFns ...func(*LifecyclePolicyPreviewCompleteWaiterOptions)) error
Wait calls the waiter function for LifecyclePolicyPreviewComplete waiter. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
func (*LifecyclePolicyPreviewCompleteWaiter) WaitForOutput ¶ added in v1.10.0
func (w *LifecyclePolicyPreviewCompleteWaiter) WaitForOutput(ctx context.Context, params *GetLifecyclePolicyPreviewInput, maxWaitDur time.Duration, optFns ...func(*LifecyclePolicyPreviewCompleteWaiterOptions)) (*GetLifecyclePolicyPreviewOutput, error)
WaitForOutput calls the waiter function for LifecyclePolicyPreviewComplete waiter and returns the output of the successful operation. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
type LifecyclePolicyPreviewCompleteWaiterOptions ¶ added in v0.31.0
type LifecyclePolicyPreviewCompleteWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. // // Passing options here is functionally equivalent to passing values to this // config's ClientOptions field that extend the inner client's APIOptions directly. APIOptions []func(*middleware.Stack) error // Functional options to be passed to all operations invoked by this client. // // Function values that modify the inner APIOptions are applied after the waiter // config's own APIOptions modifiers. ClientOptions []func(*Options) // MinDelay is the minimum amount of time to delay between retries. If unset, // LifecyclePolicyPreviewCompleteWaiter will use default minimum delay of 5 // seconds. Note that MinDelay must resolve to a value lesser than or equal to the // MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, LifecyclePolicyPreviewCompleteWaiter will use default max delay of // 120 seconds. Note that MaxDelay must resolve to value greater than or equal to // the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. // // By default service-modeled logic will populate this option. This option can // thus be used to define a custom waiter state with fall-back to service-modeled // waiter state mutators.The function returns an error in case of a failure state. // In case of retry state, this function returns a bool value of true and nil // error, while in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *GetLifecyclePolicyPreviewInput, *GetLifecyclePolicyPreviewOutput, error) (bool, error) }
LifecyclePolicyPreviewCompleteWaiterOptions are waiter options for LifecyclePolicyPreviewCompleteWaiter
type ListImagesAPIClient ¶ added in v0.30.0
type ListImagesAPIClient interface {
ListImages(context.Context, *ListImagesInput, ...func(*Options)) (*ListImagesOutput, error)
}
ListImagesAPIClient is a client that implements the ListImages operation.
type ListImagesInput ¶
type ListImagesInput struct { // The repository with image IDs to be listed. // // This member is required. RepositoryName *string // The filter key and value with which to filter your ListImages results. Filter *types.ListImagesFilter // 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 1000. If this // parameter is not used, then ListImages returns up to 100 results and a nextToken // value, if applicable. MaxResults *int32 // 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. // // This token should be treated as an opaque identifier that is only used to // retrieve the next items in a list and not for other programmatic purposes. NextToken *string // The Amazon Web Services account ID associated with the registry that contains // the repository in which to list images. If you do not specify a registry, the // default registry is assumed. RegistryId *string // contains filtered or unexported fields }
type ListImagesOutput ¶
type ListImagesOutput struct { // The list of image IDs for the requested repository. ImageIds []types.ImageIdentifier // 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 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListImagesPaginator ¶ added in v0.30.0
type ListImagesPaginator struct {
// contains filtered or unexported fields
}
ListImagesPaginator is a paginator for ListImages
func NewListImagesPaginator ¶ added in v0.30.0
func NewListImagesPaginator(client ListImagesAPIClient, params *ListImagesInput, optFns ...func(*ListImagesPaginatorOptions)) *ListImagesPaginator
NewListImagesPaginator returns a new ListImagesPaginator
func (*ListImagesPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListImagesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListImagesPaginator) NextPage ¶ added in v0.30.0
func (p *ListImagesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListImagesOutput, error)
NextPage retrieves the next ListImages page.
type ListImagesPaginatorOptions ¶ added in v0.30.0
type ListImagesPaginatorOptions 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 1000. If this // parameter is not used, then ListImages returns up to 100 results and a nextToken // value, if applicable. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListImagesPaginatorOptions is the paginator options for ListImages
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) that identifies the resource for which to list // the tags. Currently, the only supported resource is an Amazon ECR repository. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // The tags for the resource. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Indicates how aws account ID is applied in endpoint2.0 routing AccountIDEndpointMode aws.AccountIDEndpointMode // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.22.2
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type PutAccountSettingInput ¶ added in v1.32.0
type PutAccountSettingOutput ¶ added in v1.32.0
type PutAccountSettingOutput struct { // Retrieves the the basic scan type version name. Name *string // Retrieves the basic scan type value, either AWS_NATIVE or - . Value *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutImageInput ¶
type PutImageInput struct { // The image manifest corresponding to the image to be uploaded. // // This member is required. ImageManifest *string // The name of the repository in which to put the image. // // This member is required. RepositoryName *string // The image digest of the image manifest corresponding to the image. ImageDigest *string // The media type of the image manifest. If you push an image manifest that does // not contain the mediaType field, you must specify the imageManifestMediaType in // the request. ImageManifestMediaType *string // The tag to associate with the image. This parameter is required for images that // use the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) // formats. ImageTag *string // The Amazon Web Services 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 // contains filtered or unexported fields }
type PutImageOutput ¶
type PutImageOutput struct { // Details of the image uploaded. Image *types.Image // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutImageScanningConfigurationInput ¶
type PutImageScanningConfigurationInput struct { // The image scanning configuration for the repository. This setting determines // whether images are scanned for known vulnerabilities after being pushed to the // repository. // // This member is required. ImageScanningConfiguration *types.ImageScanningConfiguration // The name of the repository in which to update the image scanning configuration // setting. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry that contains // the repository in which to update the image scanning configuration setting. If // you do not specify a registry, the default registry is assumed. RegistryId *string // contains filtered or unexported fields }
type PutImageScanningConfigurationOutput ¶
type PutImageScanningConfigurationOutput struct { // The image scanning configuration setting for the repository. ImageScanningConfiguration *types.ImageScanningConfiguration // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutImageTagMutabilityInput ¶
type PutImageTagMutabilityInput struct { // The tag mutability setting for the repository. If MUTABLE is specified, image // tags can be overwritten. If IMMUTABLE is specified, all image tags within the // repository will be immutable which will prevent them from being overwritten. // // This member is required. ImageTagMutability types.ImageTagMutability // The name of the repository in which to update the image tag mutability settings. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry that contains // the repository in which to update the image tag mutability settings. If you do // not specify a registry, the default registry is assumed. RegistryId *string // contains filtered or unexported fields }
type PutImageTagMutabilityOutput ¶
type PutImageTagMutabilityOutput struct { // The image tag mutability setting for the repository. ImageTagMutability types.ImageTagMutability // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutLifecyclePolicyInput ¶
type PutLifecyclePolicyInput struct { // The JSON repository policy text to apply to the repository. // // This member is required. LifecyclePolicyText *string // The name of the repository to receive the policy. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry that contains // the repository. If you do not specify a registry, the default registry is // assumed. RegistryId *string // contains filtered or unexported fields }
type PutLifecyclePolicyOutput ¶
type PutLifecyclePolicyOutput struct { // The JSON repository policy text. LifecyclePolicyText *string // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutRegistryPolicyInput ¶ added in v0.31.0
type PutRegistryPolicyInput struct { // The JSON policy text to apply to your registry. The policy text follows the // same format as IAM policy text. For more information, see [Registry permissions]in the Amazon Elastic // Container Registry User Guide. // // [Registry permissions]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html // // This member is required. PolicyText *string // contains filtered or unexported fields }
type PutRegistryPolicyOutput ¶ added in v0.31.0
type PutRegistryPolicyOutput struct { // The JSON policy text for your registry. PolicyText *string // The registry ID associated with the request. RegistryId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutRegistryScanningConfigurationInput ¶ added in v1.11.0
type PutRegistryScanningConfigurationInput struct { // The scanning rules to use for the registry. A scanning rule is used to // determine which repository filters are used and at what frequency scanning will // occur. Rules []types.RegistryScanningRule // The scanning type to set for the registry. // // When a registry scanning configuration is not defined, by default the BASIC // scan type is used. When basic scanning is used, you may specify filters to // determine which individual repositories, or all repositories, are scanned when // new images are pushed to those repositories. Alternatively, you can do manual // scans of images with basic scanning. // // When the ENHANCED scan type is set, Amazon Inspector provides automated // vulnerability scanning. You may choose between continuous scanning or scan on // push and you may specify filters to determine which individual repositories, or // all repositories, are scanned. ScanType types.ScanType // contains filtered or unexported fields }
type PutRegistryScanningConfigurationOutput ¶ added in v1.11.0
type PutRegistryScanningConfigurationOutput struct { // The scanning configuration for your registry. RegistryScanningConfiguration *types.RegistryScanningConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutReplicationConfigurationInput ¶ added in v0.31.0
type PutReplicationConfigurationInput struct { // An object representing the replication configuration for a registry. // // This member is required. ReplicationConfiguration *types.ReplicationConfiguration // contains filtered or unexported fields }
type PutReplicationConfigurationOutput ¶ added in v0.31.0
type PutReplicationConfigurationOutput struct { // The contents of the replication configuration for the registry. ReplicationConfiguration *types.ReplicationConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type SetRepositoryPolicyInput ¶
type SetRepositoryPolicyInput struct { // The JSON repository policy text to apply to the repository. For more // information, see [Amazon ECR repository policies]in the Amazon Elastic Container Registry User Guide. // // [Amazon ECR repository policies]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html // // This member is required. PolicyText *string // The name of the repository to receive the policy. // // This member is required. RepositoryName *string // 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 SetRepositoryPolicyoperation. // This is intended to prevent accidental repository lock outs. Force bool // The Amazon Web Services account ID associated with the registry that contains // the repository. If you do not specify a registry, the default registry is // assumed. RegistryId *string // contains filtered or unexported fields }
type SetRepositoryPolicyOutput ¶
type SetRepositoryPolicyOutput struct { // The JSON repository policy text applied to the repository. PolicyText *string // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type StartImageScanInput ¶
type StartImageScanInput struct { // An object with identifying information for an image in an Amazon ECR repository. // // This member is required. ImageId *types.ImageIdentifier // The name of the repository that contains the images to scan. // // This member is required. RepositoryName *string // The Amazon Web Services account ID associated with the registry that contains // the repository in which to start an image scan request. If you do not specify a // registry, the default registry is assumed. RegistryId *string // contains filtered or unexported fields }
type StartImageScanOutput ¶
type StartImageScanOutput struct { // An object with identifying information for an image in an Amazon ECR repository. ImageId *types.ImageIdentifier // The current state of the scan. ImageScanStatus *types.ImageScanStatus // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type StartLifecyclePolicyPreviewInput ¶
type StartLifecyclePolicyPreviewInput struct { // The name of the repository to be evaluated. // // This member is required. RepositoryName *string // The policy to be evaluated against. If you do not specify a policy, the current // policy for the repository is used. LifecyclePolicyText *string // The Amazon Web Services account ID associated with the registry that contains // the repository. If you do not specify a registry, the default registry is // assumed. RegistryId *string // contains filtered or unexported fields }
type StartLifecyclePolicyPreviewOutput ¶
type StartLifecyclePolicyPreviewOutput struct { // The JSON repository policy text. LifecyclePolicyText *string // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // The status of the lifecycle policy preview request. Status types.LifecyclePolicyPreviewStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) of the the resource to which to add tags. // Currently, the only supported resource is an Amazon ECR repository. // // This member is required. ResourceArn *string // The tags to add to the resource. A tag is an array of key-value pairs. Tag keys // can have a maximum character length of 128 characters, and tag values can have a // maximum length of 256 characters. // // This member is required. Tags []types.Tag // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the resource from which to remove tags. // Currently, the only supported resource is an Amazon ECR repository. // // This member is required. ResourceArn *string // The keys of the tags to be removed. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdatePullThroughCacheRuleInput ¶ added in v1.23.0
type UpdatePullThroughCacheRuleInput struct { // The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager // secret that identifies the credentials to authenticate to the upstream registry. // // This member is required. CredentialArn *string // The repository name prefix to use when caching images from the source registry. // // This member is required. EcrRepositoryPrefix *string // The Amazon Web Services account ID associated with the registry associated with // the pull through cache rule. If you do not specify a registry, the default // registry is assumed. RegistryId *string // contains filtered or unexported fields }
type UpdatePullThroughCacheRuleOutput ¶ added in v1.23.0
type UpdatePullThroughCacheRuleOutput struct { // The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager // secret associated with the pull through cache rule. CredentialArn *string // The Amazon ECR repository prefix associated with the pull through cache rule. EcrRepositoryPrefix *string // The registry ID associated with the request. RegistryId *string // The date and time, in JavaScript date format, when the pull through cache rule // was updated. UpdatedAt *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateRepositoryCreationTemplateInput ¶ added in v1.31.0
type UpdateRepositoryCreationTemplateInput struct { // The repository namespace prefix that matches an existing repository creation // template in the registry. All repositories created using this namespace prefix // will have the settings defined in this template applied. For example, a prefix // of prod would apply to all repositories beginning with prod/ . This includes a // repository named prod/team1 as well as a repository named prod/repository1 . // // To apply a template to all repositories in your registry that don't have an // associated creation template, you can use ROOT as the prefix. // // This member is required. Prefix *string // Updates the list of enumerable strings representing the Amazon ECR repository // creation scenarios that this template will apply towards. The two supported // scenarios are PULL_THROUGH_CACHE and REPLICATION AppliedFor []types.RCTAppliedFor // The ARN of the role to be assumed by Amazon ECR. This role must be in the same // account as the registry that you are configuring. Amazon ECR will assume your // supplied role when the customRoleArn is specified. When this field isn't // specified, Amazon ECR will use the service-linked role for the repository // creation template. CustomRoleArn *string // A description for the repository creation template. Description *string // The encryption configuration to associate with the repository creation template. EncryptionConfiguration *types.EncryptionConfigurationForRepositoryCreationTemplate // Updates the tag mutability setting for the repository. If this parameter is // omitted, the default setting of MUTABLE will be used which will allow image // tags to be overwritten. If IMMUTABLE is specified, all image tags within the // repository will be immutable which will prevent them from being overwritten. ImageTagMutability types.ImageTagMutability // Updates the lifecycle policy associated with the specified repository creation // template. LifecyclePolicy *string // Updates the repository policy created using the template. A repository policy // is a permissions policy associated with a repository to control access // permissions. RepositoryPolicy *string // The metadata to apply to the repository to help you categorize and organize. // Each tag consists of a key and an optional value, both of which you define. Tag // keys can have a maximum character length of 128 characters, and tag values can // have a maximum length of 256 characters. ResourceTags []types.Tag // contains filtered or unexported fields }
type UpdateRepositoryCreationTemplateOutput ¶ added in v1.31.0
type UpdateRepositoryCreationTemplateOutput struct { // The registry ID associated with the request. RegistryId *string // The details of the repository creation template associated with the request. RepositoryCreationTemplate *types.RepositoryCreationTemplate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UploadLayerPartInput ¶
type UploadLayerPartInput struct { // The base64-encoded layer part payload. // // This member is required. LayerPartBlob []byte // The position of the first byte of the layer part witin the overall image layer. // // This member is required. PartFirstByte *int64 // The position of the last byte of the layer part within the overall image layer. // // This member is required. PartLastByte *int64 // The name of the repository to which you are uploading layer parts. // // This member is required. RepositoryName *string // The upload ID from a previous InitiateLayerUpload operation to associate with the layer part // upload. // // This member is required. UploadId *string // The Amazon Web Services account ID associated with the registry to which you // are uploading layer parts. If you do not specify a registry, the default // registry is assumed. RegistryId *string // contains filtered or unexported fields }
type UploadLayerPartOutput ¶
type UploadLayerPartOutput struct { // The integer value of the last byte received in the request. LastByteReceived *int64 // The registry ID associated with the request. RegistryId *string // The repository name associated with the request. RepositoryName *string // The upload ID associated with the request. UploadId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ValidatePullThroughCacheRuleInput ¶ added in v1.23.0
type ValidatePullThroughCacheRuleInput struct { // The repository name prefix associated with the pull through cache rule. // // This member is required. EcrRepositoryPrefix *string // The registry ID associated with the pull through cache rule. If you do not // specify a registry, the default registry is assumed. RegistryId *string // contains filtered or unexported fields }
type ValidatePullThroughCacheRuleOutput ¶ added in v1.23.0
type ValidatePullThroughCacheRuleOutput struct { // The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager // secret associated with the pull through cache rule. CredentialArn *string // The Amazon ECR repository prefix associated with the pull through cache rule. EcrRepositoryPrefix *string // The reason the validation failed. For more details about possible causes and // how to address them, see [Using pull through cache rules]in the Amazon Elastic Container Registry User Guide. // // [Using pull through cache rules]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/pull-through-cache.html Failure *string // Whether or not the pull through cache rule was validated. If true , Amazon ECR // was able to reach the upstream registry and authentication was successful. If // false , there was an issue and validation failed. The failure reason indicates // the cause. IsValid bool // The registry ID associated with the request. RegistryId *string // The upstream registry URL associated with the pull through cache rule. UpstreamRegistryUrl *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_BatchCheckLayerAvailability.go
- api_op_BatchDeleteImage.go
- api_op_BatchGetImage.go
- api_op_BatchGetRepositoryScanningConfiguration.go
- api_op_CompleteLayerUpload.go
- api_op_CreatePullThroughCacheRule.go
- api_op_CreateRepository.go
- api_op_CreateRepositoryCreationTemplate.go
- api_op_DeleteLifecyclePolicy.go
- api_op_DeletePullThroughCacheRule.go
- api_op_DeleteRegistryPolicy.go
- api_op_DeleteRepository.go
- api_op_DeleteRepositoryCreationTemplate.go
- api_op_DeleteRepositoryPolicy.go
- api_op_DescribeImageReplicationStatus.go
- api_op_DescribeImageScanFindings.go
- api_op_DescribeImages.go
- api_op_DescribePullThroughCacheRules.go
- api_op_DescribeRegistry.go
- api_op_DescribeRepositories.go
- api_op_DescribeRepositoryCreationTemplates.go
- api_op_GetAccountSetting.go
- api_op_GetAuthorizationToken.go
- api_op_GetDownloadUrlForLayer.go
- api_op_GetLifecyclePolicy.go
- api_op_GetLifecyclePolicyPreview.go
- api_op_GetRegistryPolicy.go
- api_op_GetRegistryScanningConfiguration.go
- api_op_GetRepositoryPolicy.go
- api_op_InitiateLayerUpload.go
- api_op_ListImages.go
- api_op_ListTagsForResource.go
- api_op_PutAccountSetting.go
- api_op_PutImage.go
- api_op_PutImageScanningConfiguration.go
- api_op_PutImageTagMutability.go
- api_op_PutLifecyclePolicy.go
- api_op_PutRegistryPolicy.go
- api_op_PutRegistryScanningConfiguration.go
- api_op_PutReplicationConfiguration.go
- api_op_SetRepositoryPolicy.go
- api_op_StartImageScan.go
- api_op_StartLifecyclePolicyPreview.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdatePullThroughCacheRule.go
- api_op_UpdateRepositoryCreationTemplate.go
- api_op_UploadLayerPart.go
- api_op_ValidatePullThroughCacheRule.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go