Documentation ¶
Index ¶
- func ReadIgnore(f string) []string
- type BuildCommand
- type Conf
- func BindVolume(source, target string) Conf
- func Env(key, value string) Conf
- func Expose(host, port string) Conf
- func Hostname(name string) Conf
- func Label(key, value string) Conf
- func Network(name string) Conf
- func PortBinding(hostPort, containerPort string) Conf
- func Volume(name, target string) Conf
- type ErrorDetail
- type ErrorLine
- type LogLine
- type PruneCommand
- type RmContainerCommand
- type RmImageCommand
- type RmVolumeCommand
- type RunCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadIgnore ¶
Types ¶
type BuildCommand ¶
type BuildCommand struct {
// contains filtered or unexported fields
}
func Build ¶
func Build(image, context string) *BuildCommand
func (*BuildCommand) Exclude ¶
func (d *BuildCommand) Exclude(files []string) *BuildCommand
func (*BuildCommand) Run ¶
func (d *BuildCommand) Run(ctx *pipeline.StageContext) error
func (*BuildCommand) Target ¶
func (d *BuildCommand) Target(t string) *BuildCommand
type Conf ¶
type Conf interface {
// contains filtered or unexported methods
}
func BindVolume ¶ added in v0.3.6
func PortBinding ¶ added in v0.3.0
type ErrorDetail ¶ added in v0.3.1
type ErrorDetail struct {
Message string `json:"message"`
}
type ErrorLine ¶ added in v0.3.1
type ErrorLine struct { Error string `json:"error"` ErrorDetail ErrorDetail `json:"errorDetail"` }
type PruneCommand ¶
type PruneCommand struct { }
func Prune ¶
func Prune() *PruneCommand
func (*PruneCommand) Run ¶
func (d *PruneCommand) Run(ctx *pipeline.StageContext) error
type RmContainerCommand ¶
type RmContainerCommand struct {
// contains filtered or unexported fields
}
func RmContainer ¶
func RmContainer(name string, silent bool) *RmContainerCommand
func (*RmContainerCommand) Run ¶
func (d *RmContainerCommand) Run(ctx *pipeline.StageContext) error
type RmImageCommand ¶
type RmImageCommand struct {
// contains filtered or unexported fields
}
func RmImage ¶
func RmImage(name string, silent bool) *RmImageCommand
func (*RmImageCommand) Run ¶
func (d *RmImageCommand) Run(ctx *pipeline.StageContext) error
type RmVolumeCommand ¶ added in v0.3.6
type RmVolumeCommand struct {
Volume string
}
func RmVolume ¶ added in v0.3.6
func RmVolume(volume string) *RmVolumeCommand
func (*RmVolumeCommand) Run ¶ added in v0.3.6
func (d *RmVolumeCommand) Run(ctx *pipeline.StageContext) error
type RunCommand ¶
type RunCommand struct {
// contains filtered or unexported fields
}
func Run ¶
func Run(cName, image string) *RunCommand
func (*RunCommand) Config ¶
func (d *RunCommand) Config(confs ...Conf) *RunCommand
func (*RunCommand) Run ¶
func (d *RunCommand) Run(ctx *pipeline.StageContext) error
Click to show internal directories.
Click to hide internal directories.