cleaner

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

type Cleaner interface {

	//Cleanup performs build cleanup functions. If an optional logout channel is passed, logs will be sent over the channel
	Cleanup(ctx context.Context, id string, logout chan []byte) error
}

this interface handles build cleanup

func GetNewCleaner

func GetNewCleaner(werkerType models.WerkType, facts *models.SSHFacts) Cleaner

returns a new cleaner interface

type DockerCleaner

type DockerCleaner struct{}

func (*DockerCleaner) Cleanup

func (d *DockerCleaner) Cleanup(ctx context.Context, id string, logout chan []byte) error

type ExecCleaner

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

func NewExecCleaner

func NewExecCleaner() *ExecCleaner

func (*ExecCleaner) Cleanup

func (e *ExecCleaner) Cleanup(ctx context.Context, id string, logout chan []byte) error

type K8Cleaner

type K8Cleaner struct{}

func (*K8Cleaner) Cleanup

func (k *K8Cleaner) Cleanup(ctx context.Context, id string, logout chan []byte) error

type SSHCleaner

type SSHCleaner struct {
	*models.SSHFacts
}

func (*SSHCleaner) Cleanup

func (d *SSHCleaner) Cleanup(ctx context.Context, id string, logout chan []byte) error

Jump to

Keyboard shortcuts

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