ecr

package
v0.0.0-...-31ed48f Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoTokenOrProxyEndpoint = errors.New("no authorization token or proxy endpoint obtained when requesting token")
	ErrNoCredentials          = errors.New("no credentials provided")
)

Functions

func SetupRepository

func SetupRepository(c Client, repository string) (string, error)

SetupRepository will check if a repository exists, create it if it does not, and then return the repository URI to access to repository.

Types

type Client

type Client interface {
	RepositoryExists(repository string) (bool, error)
	CreateRepository(repository string) error
	GetRepositoryURI(repository string) (string, error)
	GetAuthorizationToken() (*RegistryAuth, error)
}

func NewClient

func NewClient(region string, assumeRole string, profile string) (Client, error)

type RegistryAuth

type RegistryAuth struct {
	ProxyEndpoint string
	Username      string
	Password      string
}

Jump to

Keyboard shortcuts

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