image

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Repository string   // image repository eg. `registry.gitlab.com/my/project`
	Tag        string   // image tag eg. `0.1.0`
	Aliases    []string // additional tags pointing to the same image eg. `latest, test`
	Username   string   // registry username
	Password   string   // registry password
}

This type represents a Docker image with credentials used to authenticate to a registry that stores it

func (Image) Locations

func (image Image) Locations() []string

All locations of the image, including all aliases of the tag

func (Image) PullRegistry

func (image Image) PullRegistry() registry.Registry

PushRegistry() returns details of a registry that one can use to pull this image from. This is also valid after GitLab CI/CD job is complete.

func (Image) PushRegistry

func (image Image) PushRegistry() registry.Registry

PushRegistry() returns details of a registry that one can use to push this image to

func (Image) ToString

func (image Image) ToString() string

ToString() returns a full image name (with a tag)

Jump to

Keyboard shortcuts

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