Documentation ¶
Index ¶
- Constants
- type AuthorizationData
- func (s AuthorizationData) GoString() string
- func (s *AuthorizationData) SetAuthorizationToken(v string) *AuthorizationData
- func (s *AuthorizationData) SetExpiresAt(v time.Time) *AuthorizationData
- func (s *AuthorizationData) SetProxyEndpoint(v string) *AuthorizationData
- func (s AuthorizationData) String() string
- type ECR
- func (c *ECR) GetAuthorizationToken(input *GetAuthorizationTokenInput) (*GetAuthorizationTokenOutput, error)
- func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (req *request.Request, output *GetAuthorizationTokenOutput)
- func (c *ECR) GetAuthorizationTokenWithContext(ctx aws.Context, input *GetAuthorizationTokenInput, opts ...request.Option) (*GetAuthorizationTokenOutput, error)
- type GetAuthorizationTokenInput
- type GetAuthorizationTokenOutput
- type InvalidParameterException
- func (s *InvalidParameterException) Code() string
- func (s *InvalidParameterException) Error() string
- func (s InvalidParameterException) GoString() string
- func (s *InvalidParameterException) Message() string
- func (s *InvalidParameterException) OrigErr() error
- func (s *InvalidParameterException) RequestID() string
- func (s *InvalidParameterException) StatusCode() int
- func (s InvalidParameterException) String() string
- type ServerException
- func (s *ServerException) Code() string
- func (s *ServerException) Error() string
- func (s ServerException) GoString() string
- func (s *ServerException) Message() string
- func (s *ServerException) OrigErr() error
- func (s *ServerException) RequestID() string
- func (s *ServerException) StatusCode() int
- func (s ServerException) String() string
Constants ¶
const ( // ErrCodeInvalidParameterException for service response error code // "InvalidParameterException". ErrCodeInvalidParameterException = "InvalidParameterException" // ErrCodeServerException for service response error code // "ServerException". ErrCodeServerException = "ServerException" )
const ( ServiceName = "ecr" // Name of service. EndpointsID = "api.ecr" // ID to lookup a service endpoint with. ServiceID = "ECR" // ServiceID is a unique identifier 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 ¶
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:
mySession := session.Must(session.NewSession()) // 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 Types:
ServerException
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
func (s *GetAuthorizationTokenInput) SetRegistryIds(v []*string) *GetAuthorizationTokenInput
SetRegistryIds sets the RegistryIds field's value.
func (GetAuthorizationTokenInput) String ¶
func (s GetAuthorizationTokenInput) String() 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
func (s *GetAuthorizationTokenOutput) SetAuthorizationData(v []*AuthorizationData) *GetAuthorizationTokenOutput
SetAuthorizationData sets the AuthorizationData field's value.
func (GetAuthorizationTokenOutput) String ¶
func (s GetAuthorizationTokenOutput) String() string
String returns the string representation
type InvalidParameterException ¶ added in v1.49.0
type InvalidParameterException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
func (*InvalidParameterException) Code ¶ added in v1.49.0
func (s *InvalidParameterException) Code() string
Code returns the exception type name.
func (*InvalidParameterException) Error ¶ added in v1.49.0
func (s *InvalidParameterException) Error() string
func (InvalidParameterException) GoString ¶ added in v1.49.0
func (s InvalidParameterException) GoString() string
GoString returns the string representation
func (*InvalidParameterException) Message ¶ added in v1.49.0
func (s *InvalidParameterException) Message() string
Message returns the exception's message.
func (*InvalidParameterException) OrigErr ¶ added in v1.49.0
func (s *InvalidParameterException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidParameterException) RequestID ¶ added in v1.49.0
func (s *InvalidParameterException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidParameterException) StatusCode ¶ added in v1.49.0
func (s *InvalidParameterException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidParameterException) String ¶ added in v1.49.0
func (s InvalidParameterException) String() string
String returns the string representation
type ServerException ¶ added in v1.49.0
type ServerException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
func (*ServerException) Code ¶ added in v1.49.0
func (s *ServerException) Code() string
Code returns the exception type name.
func (*ServerException) Error ¶ added in v1.49.0
func (s *ServerException) Error() string
func (ServerException) GoString ¶ added in v1.49.0
func (s ServerException) GoString() string
GoString returns the string representation
func (*ServerException) Message ¶ added in v1.49.0
func (s *ServerException) Message() string
Message returns the exception's message.
func (*ServerException) OrigErr ¶ added in v1.49.0
func (s *ServerException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ServerException) RequestID ¶ added in v1.49.0
func (s *ServerException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ServerException) StatusCode ¶ added in v1.49.0
func (s *ServerException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ServerException) String ¶ added in v1.49.0
func (s ServerException) String() string
String returns the string representation