instruction

package
v1.2.178 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 4 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
}

func NewAdd

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

func (*Add) Apply

func (i *Add) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Add) Name

func (i *Add) Name() string

func (*Add) UsesBuildContext

func (i *Add) UsesBuildContext() bool

type Cmd

type Cmd struct {
	Cmd []string
}

func NewCmd

func NewCmd(cmd []string) *Cmd

func (*Cmd) Apply

func (i *Cmd) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Cmd) Name

func (i *Cmd) Name() string

func (*Cmd) UsesBuildContext

func (i *Cmd) UsesBuildContext() bool

type Copy

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

func NewCopy

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

func (*Copy) Apply

func (i *Copy) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Copy) Name

func (i *Copy) Name() string

func (*Copy) UsesBuildContext

func (i *Copy) UsesBuildContext() bool

type Entrypoint

type Entrypoint struct {
	Entrypoint []string
}

func NewEntrypoint

func NewEntrypoint(entrypoint []string) *Entrypoint

func (*Entrypoint) Apply

func (i *Entrypoint) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Entrypoint) Name

func (i *Entrypoint) Name() string

func (*Entrypoint) UsesBuildContext

func (i *Entrypoint) UsesBuildContext() bool

type Env

type Env struct {
	Envs map[string]string
}

func NewEnv

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

func (*Env) Apply

func (i *Env) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Env) Name

func (i *Env) Name() string

func (*Env) UsesBuildContext

func (i *Env) UsesBuildContext() bool

type Expose

type Expose struct {
	Ports []string
}

func NewExpose

func NewExpose(ports []string) *Expose

func (*Expose) Apply

func (i *Expose) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Expose) Name

func (i *Expose) Name() string

func (*Expose) UsesBuildContext

func (i *Expose) UsesBuildContext() bool

type Healthcheck

type Healthcheck struct {
	Type    HealthcheckType
	Command string
}

type HealthcheckType

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

type Label

type Label struct {
	Labels map[string]string
}

func NewLabel

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

func (*Label) Apply

func (i *Label) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Label) LabelsAsList

func (i *Label) LabelsAsList() []string

func (*Label) Name

func (i *Label) Name() string

func (*Label) UsesBuildContext

func (i *Label) UsesBuildContext() bool

type OnBuild

type OnBuild struct {
	Instruction string
}

func NewOnBuild

func NewOnBuild(instruction string) *OnBuild

func (*OnBuild) Apply

func (i *OnBuild) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*OnBuild) Name

func (i *OnBuild) Name() string

func (*OnBuild) UsesBuildContext

func (i *OnBuild) UsesBuildContext() bool

type Run

type Run struct {
	Command []string
}

func NewRun

func NewRun(command []string) *Run

func (*Run) Apply

func (i *Run) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Run) Name

func (i *Run) Name() string

func (*Run) UsesBuildContext

func (i *Run) UsesBuildContext() bool

type Shell

type Shell struct {
	Shell []string
}

func NewShell

func NewShell(shell []string) *Shell

func (*Shell) Apply

func (i *Shell) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Shell) Name

func (i *Shell) Name() string

func (*Shell) UsesBuildContext

func (i *Shell) UsesBuildContext() bool

type StopSignal

type StopSignal struct {
	Signal string
}

func NewStopSignal

func NewStopSignal(signal string) *StopSignal

func (*StopSignal) Apply

func (i *StopSignal) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*StopSignal) Name

func (i *StopSignal) Name() string

func (*StopSignal) UsesBuildContext

func (i *StopSignal) UsesBuildContext() bool

type User

type User struct {
	User string
}

func NewUser

func NewUser(user string) *User

func (*User) Apply

func (i *User) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*User) Name

func (i *User) Name() string

func (*User) UsesBuildContext

func (i *User) UsesBuildContext() bool

type Volume

type Volume struct {
	Volumes []string
}

func NewVolume

func NewVolume(volumes []string) *Volume

func (*Volume) Apply

func (i *Volume) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Volume) Name

func (i *Volume) Name() string

func (*Volume) UsesBuildContext

func (i *Volume) UsesBuildContext() bool

type Workdir

type Workdir struct {
	Workdir string
}

func NewWorkdir

func NewWorkdir(workdir string) *Workdir

func (*Workdir) Apply

func (i *Workdir) Apply(ctx context.Context, containerName string, drv buildah.Buildah, drvOpts buildah.CommonOpts, buildContext *build_context.BuildContext) error

func (*Workdir) Name

func (i *Workdir) Name() string

func (*Workdir) UsesBuildContext

func (i *Workdir) UsesBuildContext() bool

Jump to

Keyboard shortcuts

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