images

package
v0.0.0-...-d31700d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmds

func Cmds(svcName string) []*cobra.Command

func DockerRegistry

func DockerRegistry(imgName string) string

func List

func List(svcName, env string) error

Types

type Build

type Build struct {
	Env, Tag         string
	PrepareFlags     []string
	DockerBuildFlags []string
}

func (Build) Run

func (b Build) Run(svcName string) error

type DockerLogin

type DockerLogin struct {
	User     string
	Password string
	// contains filtered or unexported fields
}

func (*DockerLogin) BashCommand

func (dl *DockerLogin) BashCommand(env string, svcs []string) string

func (*DockerLogin) Command

func (dl *DockerLogin) Command(registry string, bashQuote bool) []string

func (*DockerLogin) Run

func (dl *DockerLogin) Run(imgName string) error

type Image

type Image struct {
	// contains filtered or unexported fields
}

func Get

func Get(svcName string) Image

func (Image) DefaultPort

func (i Image) DefaultPort() uint16

2. default port number

func (Image) FlagsForRun

func (i Image) FlagsForRun(env string) []string

3. flags for run

func (Image) PortEnvVar

func (i Image) PortEnvVar() string

1. port env variable name

type Push

type Push struct {
	Env, Tag string
	DockerLogin
}

func (Push) Run

func (p Push) Run(svcName string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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