image

package
v0.0.0-...-7043f51 Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDockerDir

func IsDockerDir(dir string) bool

IsDockerDir return true if the directory contains a version file

func PrintList

func PrintList(dockersDir string)

PrintList print the list of dockers definitions found in dockersDir

Types

type DockerImage

type DockerImage struct {
	Name     string `yaml:"name"`
	Registry string `yaml:"registry"`
	Version  string `yaml:"version"`
	Path     string `yaml:"path,omitempty"`
}

DockerImage docker image type

func ListImages

func ListImages(dockersDir string) []DockerImage

ListImages return an array of dockers found in dockersDir

func NewDockerImage

func NewDockerImage(name string, registry string, version string, path string) *DockerImage

NewDockerImage create a new docker image

func NewDockerImageFromPath

func NewDockerImageFromPath(dockersDir string, name string) (*DockerImage, error)

NewDockerImageFromPath create a new docker image from a docker path

func (*DockerImage) Build

func (dockerImage *DockerImage) Build()

Build build docker image

func (*DockerImage) BumpVersion

func (dockerImage *DockerImage) BumpVersion(importance string)

BumpVersion bump the right version number according to importance

func (*DockerImage) Create

func (dockerImage *DockerImage) Create(dockersDir string)

Create create the layout directory in dockersDir

func (*DockerImage) Print

func (dockerImage *DockerImage) Print()

Print pretty display for a docker

func (*DockerImage) Publish

func (dockerImage *DockerImage) Publish()

Publish publish docker image to remote registry

func (*DockerImage) SaveToFile

func (dockerImage *DockerImage) SaveToFile(dockersDir string)

SaveToFile save dockerImage to its version file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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