action

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Execute(llb.State) llb.State
	UpdateMetadata(*dockerfile2llb.Image)
}

type CopyAction

type CopyAction struct {
	Directory  string
	Image      string
	Dockerfile string
	Path       string
}

func (*CopyAction) Execute

func (a *CopyAction) Execute(base llb.State) llb.State

func (*CopyAction) UpdateMetadata

func (*CopyAction) UpdateMetadata(_ *dockerfile2llb.Image)

type DownloadAction

type DownloadAction struct {
	Source      string
	Sha256      string
	Unpack      string
	Destination string
}

func (*DownloadAction) Execute

func (a *DownloadAction) Execute(base llb.State) llb.State

func (*DownloadAction) UpdateMetadata

func (*DownloadAction) UpdateMetadata(_ *dockerfile2llb.Image)

type PackageAction

type PackageAction struct {
	Name []string
	Repo []string
	Gpg  []string
}

func (*PackageAction) Execute

func (a *PackageAction) Execute(base llb.State) llb.State

func (*PackageAction) UpdateMetadata

func (*PackageAction) UpdateMetadata(_ *dockerfile2llb.Image)

type ScriptAction

type ScriptAction struct {
	Script string
	User   string
	Cwd    string
}

func (*ScriptAction) Execute

func (a *ScriptAction) Execute(base llb.State) llb.State

func (*ScriptAction) UpdateMetadata

func (*ScriptAction) UpdateMetadata(_ *dockerfile2llb.Image)

type UserAction

type UserAction struct {
	Name     string
	UID      int
	GID      int
	Shell    string
	Dotfiles string
}

func (*UserAction) Execute

func (a *UserAction) Execute(base llb.State) llb.State

func (*UserAction) UpdateMetadata

func (a *UserAction) UpdateMetadata(metadata *dockerfile2llb.Image)

Jump to

Keyboard shortcuts

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