ecr

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "ecr"       // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)

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" timestampFormat:"unix"`

	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
}

The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.

func New

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

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

Example:

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

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

func (*ECR) 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 can be used to capture response data after the request's "Send" method is called.

See GetAuthorizationToken for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetAuthorizationToken method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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