ark::aws::EcrClient

Defined in header “ark/aws/ecr_client.hh”.


A wrapper around the AWS ECR APIs to retrieve the authorization token to access the registry.

Methods

  • EcrClient()
    Constructor. Prepares a new ECR client.

  • EcrClient(const core::Url & endpoint)
    Constructor. Initializes a new client against the given URL. This is typically used for testing only.

  • EcrClient(const core::Url & endpoint, const AwsTemporaryCredentials & credentials)
    Constructor. Initializes a new client against the given URL, using the provided credentials directly.

  • ~EcrClient()
    Destructor, so we can free up the implementation.

  • const core::Url & endpoint()
    The endpoint this client was created with.

  • EcrAuthorizations get_authorization_token()
    Retrieves authorization tokens. 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.

  • std::string create_repository(const std::string & name, const std::map< std::string, std::string > & tags)
    Creates a new repository with the given name and tags. This repository will be created in the default registry. Returns the identifier of the created repository.