Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrimRepositoryName ¶
TrimRepositoryName trims off the serverAddress from a repo name, so when something like a full URI (with accountID) is passed in, we can use the same code paths for it.
Types ¶
type Authorization ¶
type Authorization struct {
RegistryToken string `validate:"required"`
Username string `validate:"required"`
ServerAddress string `validate:"required"`
}
func ParseAuthorizationData ¶
func ParseAuthorizationData(data *ecr_types.AuthorizationData) (*Authorization, error)
parseAuthorizationData: parses authorization data into the required return format
func ParsePublicAuthorizationData ¶
func ParsePublicAuthorizationData(data *ecrpublictypes.AuthorizationData) (*Authorization, error)
type Option ¶
type Option func(*ecrAuthorizer) error
func WithCredentials ¶
func WithCredentials(creds *credentials.Config) Option
WithCredentials is used to set the credentials that will be used by this
func WithImageURL ¶
WithImageURL is used to determine the regsitry id
func WithRegistryID ¶
WithRegistryID is used to set the registry id
func WithRepository ¶
WithRepository is used to set the registry id by parsing the repository url
func WithUseDefault ¶
WithUseDefault is used to fetch the default registry
Click to show internal directories.
Click to hide internal directories.