ecr

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ErrCodeInvalidParameterException for service response error code
	// "InvalidParameterException".
	ErrCodeInvalidParameterException = "InvalidParameterException"

	// ErrCodeServerException for service response error code
	// "ServerException".
	ErrCodeServerException = "ServerException"
)
View Source
const (
	ServiceName = "ecr"       // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "ECR"       // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationData

type AuthorizationData struct {
	AuthorizationToken *string `locationName:"authorizationToken" type:"string"`

	ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp"`

	ProxyEndpoint *string `locationName:"proxyEndpoint" type:"string"`
	// contains filtered or unexported fields
}

func (AuthorizationData) GoString

func (s AuthorizationData) GoString() string

GoString returns the string representation

func (*AuthorizationData) SetAuthorizationToken added in v1.14.2

func (s *AuthorizationData) SetAuthorizationToken(v string) *AuthorizationData

SetAuthorizationToken sets the AuthorizationToken field's value.

func (*AuthorizationData) SetExpiresAt added in v1.14.2

func (s *AuthorizationData) SetExpiresAt(v time.Time) *AuthorizationData

SetExpiresAt sets the ExpiresAt field's value.

func (*AuthorizationData) SetProxyEndpoint added in v1.14.2

func (s *AuthorizationData) SetProxyEndpoint(v string) *AuthorizationData

SetProxyEndpoint sets the ProxyEndpoint field's value.

func (AuthorizationData) String

func (s AuthorizationData) String() string

String returns the string representation

type ECR

type ECR struct {
	*client.Client
}

ECR provides the API operation methods for making requests to Amazon EC2 Container Registry. See this package's package overview docs for details on the service.

ECR methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

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

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

Example:

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

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

func (*ECR) GetAuthorizationToken

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

GetAuthorizationToken API operation for Amazon EC2 Container Registry.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon EC2 Container Registry's API operation GetAuthorizationToken for usage and error information.

Returned Error Codes:

  • ErrCodeServerException "ServerException"

  • ErrCodeInvalidParameterException "InvalidParameterException"

func (*ECR) GetAuthorizationTokenRequest

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

GetAuthorizationTokenRequest generates a "aws/request.Request" representing the client's request for the GetAuthorizationToken operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAuthorizationToken for more information on using the GetAuthorizationToken API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAuthorizationTokenRequest method.
req, resp := client.GetAuthorizationTokenRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*ECR) GetAuthorizationTokenWithContext added in v1.14.2

func (c *ECR) GetAuthorizationTokenWithContext(ctx aws.Context, input *GetAuthorizationTokenInput, opts ...request.Option) (*GetAuthorizationTokenOutput, error)

GetAuthorizationTokenWithContext is the same as GetAuthorizationToken with the addition of the ability to pass a context and additional request options.

See GetAuthorizationToken for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type GetAuthorizationTokenInput

type GetAuthorizationTokenInput struct {
	RegistryIds []*string `locationName:"registryIds" type:"list"`
	// contains filtered or unexported fields
}

func (GetAuthorizationTokenInput) GoString

func (s GetAuthorizationTokenInput) GoString() string

GoString returns the string representation

func (*GetAuthorizationTokenInput) SetRegistryIds added in v1.14.2

SetRegistryIds sets the RegistryIds field's value.

func (GetAuthorizationTokenInput) String

String returns the string representation

type GetAuthorizationTokenOutput

type GetAuthorizationTokenOutput struct {
	AuthorizationData []*AuthorizationData `locationName:"authorizationData" type:"list"`
	// contains filtered or unexported fields
}

func (GetAuthorizationTokenOutput) GoString

func (s GetAuthorizationTokenOutput) GoString() string

GoString returns the string representation

func (*GetAuthorizationTokenOutput) SetAuthorizationData added in v1.14.2

SetAuthorizationData sets the AuthorizationData field's value.

func (GetAuthorizationTokenOutput) String

String returns the string representation

Jump to

Keyboard shortcuts

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