executor

package
v18.3.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDummyExecutor

func NewDummyExecutor(
	logger lager.Logger,
) *dummyExecutor

func NewExecutor

func NewExecutor(
	uploader upload.Uploader,
	sourceFolder,
	backupCreatorCmd,
	cleanupCmd,
	serviceIdentifierCmd string,
	exitIfInProgress bool,
	logger lager.Logger,
	processManager process.ProcessManager,
	options ...Option,
) *executor

Types

type CmdFunc

type CmdFunc func(string, ...string) *exec.Cmd

type DirSizeFunc

type DirSizeFunc func(string) (int64, error)

type Executor

type Executor interface {
	Execute() error
}

type Option

type Option func(*executor)

func WithCommandFunc

func WithCommandFunc(fn CmdFunc) Option

func WithDirSizeFunc

func WithDirSizeFunc(fn DirSizeFunc) Option

type ServiceInstanceError

type ServiceInstanceError struct {
	ServiceInstanceID string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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