docker

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Repository          string
	Organization        string
	Directory           string
	Registry            string
	IsDockerComposeFile bool
	ReleaseLatest       bool
}

func CreateConfig

func CreateConfig(tree *toml.Tree) (*Config, error)

type Docker

type Docker interface {
	ReleaseNewImage() (string, error)
	TagVersion(imageId, gitTag string) (string, error)
	PushTag(tagName string) (string, error)
}

func CreateDocker

func CreateDocker(tree *toml.Tree) Docker

type DockerService

type DockerService struct {
	Tree      *toml.Tree
	Commander command.Commander
}

func (*DockerService) PushTag

func (docker *DockerService) PushTag(tagName string) (string, error)

func (*DockerService) ReleaseNewImage

func (docker *DockerService) ReleaseNewImage() (string, error)

func (*DockerService) TagVersion

func (docker *DockerService) TagVersion(imageId, latestGitTag string) (string, error)

Jump to

Keyboard shortcuts

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