steps

package
v0.0.0-...-a8b85d2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(pipeline *models.Pipeline, factory factory) *builder

Types

type CheckResource

type CheckResource struct {
	// contains filtered or unexported fields
}

func NewCheckResource

func NewCheckResource(
	r *models.Resource,
	version versionManager,
	container ContainerManager,
) *CheckResource

func (*CheckResource) Execute

func (c *CheckResource) Execute(stdout io.Writer, stderr io.Writer) (status.Type, error)

func (*CheckResource) ID

func (c *CheckResource) ID() string

type ContainerManager

type ContainerManager interface {
	Volume(local string, mountAs string)
	WorkingDir(dir string)
	Command(command string, args ...string)
	Image(name string, tag string)
	ImageFromOCI(directory string)
	EnvVar(name string, value string)
	Privileged(bool)
	User(string)
	Run(
		stdin io.Reader,
		stdout io.Writer,
		stderr io.Writer,
	) error
}

type GetResource

type GetResource struct {
	// contains filtered or unexported fields
}

func NewGetResource

func NewGetResource(
	r *models.Resource,
	versionManager versionManager,
	volumeManager VolumeManager,
	containerManger ContainerManager,
	params map[string]interface{},
) *GetResource

func (*GetResource) Execute

func (g *GetResource) Execute(stdout io.Writer, stderr io.Writer) (status.Type, error)

func (*GetResource) ID

func (g *GetResource) ID() string

type PutResource

type PutResource struct {
	// contains filtered or unexported fields
}

func NewPutResource

func NewPutResource(
	r *models.Resource,
	versionManager versionManager,
	volumeManager VolumeManager,
	containerManager ContainerManager,
	params map[string]interface{},
) *PutResource

func (*PutResource) Execute

func (p *PutResource) Execute(stdout io.Writer, stderr io.Writer) (status.Type, error)

func (*PutResource) ID

func (p *PutResource) ID() string

type Task

type Task struct {
	// contains filtered or unexported fields
}

func NewTask

func NewTask(
	step models.Step,
	volumeManager VolumeManager,
	containerManager ContainerManager,
) *Task

func (*Task) Execute

func (t *Task) Execute(stdout io.Writer, stderr io.Writer) (status.Type, error)

func (*Task) ID

func (t *Task) ID() string

type VolumeManager

type VolumeManager interface {
	Get(string, bool) string
	All() map[string]string
}

Directories

Path Synopsis
docker/dockerfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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