instruction

package
v1.2.181 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct {
	Src   []string
	Dst   string
	Chown string
	Chmod string
}

func NewAdd

func NewAdd(src []string, dst, chown, chmod string) *Add

func (*Add) Name

func (i *Add) Name() string

type Arg

type Arg struct {
	Args []instructions.KeyValuePairOptional
}

func NewArg

func NewArg(args []instructions.KeyValuePairOptional) *Arg

func (*Arg) Name

func (i *Arg) Name() string

type Cmd

type Cmd struct {
	Cmd          []string
	PrependShell bool
}

func NewCmd

func NewCmd(cmd []string, prependShell bool) *Cmd

func (*Cmd) Name

func (i *Cmd) Name() string

type Copy

type Copy struct {
	From  string
	Src   []string
	Dst   string
	Chown string
	Chmod string
}

func NewCopy

func NewCopy(from string, src []string, dst, chown, chmod string) *Copy

func (*Copy) Name

func (i *Copy) Name() string

type Entrypoint

type Entrypoint struct {
	Entrypoint   []string
	PrependShell bool
}

func NewEntrypoint

func NewEntrypoint(entrypoint []string, prependShell bool) *Entrypoint

func (*Entrypoint) Name

func (i *Entrypoint) Name() string

type Env

type Env struct {
	Envs map[string]string
}

func NewEnv

func NewEnv(envs map[string]string) *Env

func (*Env) Name

func (i *Env) Name() string

type Expose

type Expose struct {
	Ports []string
}

func NewExpose

func NewExpose(ports []string) *Expose

func (*Expose) Name

func (i *Expose) Name() string

type Healthcheck

type Healthcheck struct {
	Type   HealthcheckType
	Config *container.HealthConfig
}

func NewHealthcheck

func NewHealthcheck(cfg *container.HealthConfig) *Healthcheck

func (*Healthcheck) Name

func (i *Healthcheck) Name() string

type HealthcheckType

type HealthcheckType string
var (
	HealthcheckTypeInherit  HealthcheckType = ""
	HealthcheckTypeNone     HealthcheckType = "NONE"
	HealthcheckTypeCmd      HealthcheckType = "CMD"
	HealthcheckTypeCmdShell HealthcheckType = "CMD-SHELL"
)

func NewHealthcheckType

func NewHealthcheckType(cfg *container.HealthConfig) HealthcheckType

type Label

type Label struct {
	Labels map[string]string
}

func NewLabel

func NewLabel(labels map[string]string) *Label

func (*Label) Name

func (i *Label) Name() string

type Maintainer

type Maintainer struct {
	Maintainer string
}

func NewMaintainer

func NewMaintainer(maintainer string) *Maintainer

func (*Maintainer) Name

func (i *Maintainer) Name() string

type NetworkType

type NetworkType string
const (
	NetworkDefault NetworkType = "default"
	NetworkNone    NetworkType = "none"
	NetworkHost    NetworkType = "host"
)

func NewNetworkType

func NewNetworkType(network string) NetworkType

type OnBuild

type OnBuild struct {
	Instruction string
}

func NewOnBuild

func NewOnBuild(instruction string) *OnBuild

func (*OnBuild) Name

func (i *OnBuild) Name() string

type Run

type Run struct {
	Command      []string
	PrependShell bool
	Mounts       []*instructions.Mount
	Network      NetworkType
	Security     SecurityType
}

func NewRun

func NewRun(command []string, prependShell bool, mounts []*instructions.Mount, network NetworkType, security SecurityType) *Run

func (*Run) Name

func (i *Run) Name() string

type SecurityType

type SecurityType string
const (
	SecurityInsecure SecurityType = "insecure"
	SecuritySandbox  SecurityType = "sandbox"
)

func NewSecurityType

func NewSecurityType(security string) SecurityType

type Shell

type Shell struct {
	Shell []string
}

func NewShell

func NewShell(shell []string) *Shell

func (*Shell) Name

func (i *Shell) Name() string

type StopSignal

type StopSignal struct {
	Signal string
}

func NewStopSignal

func NewStopSignal(signal string) *StopSignal

func (*StopSignal) Name

func (i *StopSignal) Name() string

type User

type User struct {
	User string
}

func NewUser

func NewUser(user string) *User

func (*User) Name

func (i *User) Name() string

type Volume

type Volume struct {
	Volumes []string
}

func NewVolume

func NewVolume(volumes []string) *Volume

func (*Volume) Name

func (i *Volume) Name() string

type Workdir

type Workdir struct {
	Workdir string
}

func NewWorkdir

func NewWorkdir(workdir string) *Workdir

func (*Workdir) Name

func (i *Workdir) Name() string

Jump to

Keyboard shortcuts

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