Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTag types.Tag = "latest"
DefaultTag is used if user specified empty tag list
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootCommand ¶ added in v0.5.0
BootCommand executes BOOT command
func (*BootCommand) Execute ¶ added in v0.5.0
func (cmd *BootCommand) Execute(ctx context.Context, build ImageBuild) error
Execute executes build command
type Command ¶
type Command interface { // Execute executes build command Execute(ctx context.Context, build ImageBuild) error }
Command is implemented by commands available in SpecFile
type Descriptor ¶
type Descriptor struct {
// contains filtered or unexported fields
}
Descriptor describes future image
type FromCommand ¶
FromCommand executes FROM command
func (*FromCommand) Execute ¶
func (cmd *FromCommand) Execute(ctx context.Context, build ImageBuild) error
Execute executes build command
type ImageBuild ¶
type ImageBuild interface { // Params executes PARAMS command Params(cmd *ParamsCommand) // Run executes RUN command Run(ctx context.Context, cmd *RunCommand) error // Boot executes BOOT command Boot(cmd *BootCommand) }
ImageBuild represents build in progress
type ParamsCommand ¶
type ParamsCommand struct {
Params []string
}
ParamsCommand executes PARAMS command
func (*ParamsCommand) Execute ¶
func (cmd *ParamsCommand) Execute(ctx context.Context, build ImageBuild) error
Execute executes build command
type RunCommand ¶
type RunCommand struct {
Command string
}
RunCommand executes RUN command
func (*RunCommand) Execute ¶
func (cmd *RunCommand) Execute(ctx context.Context, build ImageBuild) error
Execute executes build command
Click to show internal directories.
Click to hide internal directories.