Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DockerCFG lets registries know its token, and endpoint should be used in // the format of a ~/.dockercfg file DockerCFG string = "dockercfg" // DockerJSON lets registries know its token, and endpoint should be used // in the format of a ~/.docker/config.json file DockerJSON string = "dockerconfigjson" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
Default is the type of registry if they don't need special logic
func (Default) CreateAuthToken ¶
func (d Default) CreateAuthToken() (containershipv3.AuthTokenDef, error)
CreateAuthToken returns a base64 encrypted token to use as an Auth token
func (Default) Endpoint ¶
Endpoint returns the endpoint that should be used for the container registry
type ECR ¶
ECR defines a registry on AWS
func (ECR) CreateAuthToken ¶
func (e ECR) CreateAuthToken() (containershipv3.AuthTokenDef, error)
CreateAuthToken returns a token that can be used to authenticate with AWS registries
type GCR ¶
type GCR struct {
Default
}
GCR is a google container registry which needs a different kind of auth token created to work as an image pull secret
func (GCR) CreateAuthToken ¶
func (g GCR) CreateAuthToken() (containershipv3.AuthTokenDef, error)
CreateAuthToken returns a base64 encrypted token to use as an Auth token
type Generator ¶
type Generator interface {
CreateAuthToken() (containershipv3.AuthTokenDef, error)
}
Generator allows us to access and return registry logic in the same way for all registries
Click to show internal directories.
Click to hide internal directories.