Documentation ¶
Index ¶
- type Auth
- type DockerRegistry
- func (dr *DockerRegistry) AuthToken() (string, error)
- func (dr *DockerRegistry) ContentDigest() (string, error)
- func (dr *DockerRegistry) DockerUrl() string
- func (dr *DockerRegistry) HasImage(image string) bool
- func (dr *DockerRegistry) HasTag(image string, tag string) bool
- func (dr *DockerRegistry) Images() ([]string, error)
- func (dr *DockerRegistry) SelectImage() error
- func (dr *DockerRegistry) SelectTag() error
- func (dr *DockerRegistry) Tags(image string) ([]string, error)
- func (dr *DockerRegistry) UpdateURL()
- func (dr *DockerRegistry) Url() url.URL
- type DockerTransfer
- type JWT
- type NamespaceConfig
- type VaultConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type DockerRegistry ¶
type DockerRegistry struct { AuthName string `json:"auth" mapstructure:"auth"` Name string URL string `json:"url"` // This is not at all confusing. Image string Tag string // contains filtered or unexported fields }
func LoadDockerRegistry ¶
func LoadDockerRegistry(path string) (registry *DockerRegistry, err error)
func (*DockerRegistry) AuthToken ¶
func (dr *DockerRegistry) AuthToken() (string, error)
DockerRegistry.Auth returns the auth token from the remote registry
func (*DockerRegistry) ContentDigest ¶
func (dr *DockerRegistry) ContentDigest() (string, error)
DockerRegistry.ContentDigest returns the (usually) sha256 encoded hash for the selected manifest.
func (*DockerRegistry) DockerUrl ¶
func (dr *DockerRegistry) DockerUrl() string
DockerRegistry.DockerUrl returns a docker formatted url. That is basically just a url without the scheme at the beginning.
func (*DockerRegistry) HasImage ¶
func (dr *DockerRegistry) HasImage(image string) bool
DockerRegistry.HasImage searches through the images in the registry and returns true if found, false if not.
func (*DockerRegistry) Images ¶
func (dr *DockerRegistry) Images() ([]string, error)
DockerRegistry.Images returns the list of images on the registry.
func (*DockerRegistry) SelectImage ¶
func (dr *DockerRegistry) SelectImage() error
DockerRegistry.SelectImage will present all the images from registry to the user and allow them to pick one using a fuzzyfinder.
func (*DockerRegistry) SelectTag ¶
func (dr *DockerRegistry) SelectTag() error
DockerRegistry.SelectTag will present all the tags for a given image to the user and allow them to pick one using a fuzzyfinder.
func (*DockerRegistry) UpdateURL ¶
func (dr *DockerRegistry) UpdateURL()
func (*DockerRegistry) Url ¶
func (dr *DockerRegistry) Url() url.URL
type DockerTransfer ¶
type DockerTransfer struct { From DockerRegistry To DockerRegistry }
type JWT ¶
type JWT struct { Parent *NamespaceConfig Check string Issuer string Secret string Payload map[string]interface{} // contains filtered or unexported fields }