runner

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2017 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner added in v0.2.0

type Runner struct {
	GrootFSBin string

	Driver string
	// Store path
	StorePath string

	// Binaries
	DraxBin      string
	TardisBin    string
	BtrfsBin     string
	NewuidmapBin string
	NewgidmapBin string
	// Metrics
	MetronHost net.IP
	MetronPort uint16
	// Logging
	LogLevelSet bool
	LogLevel    lager.LogLevel
	LogFile     string
	// Streams
	Stdout io.Writer
	Stderr io.Writer
	// Configuration
	ConfigPath string
	// Timeout
	Timeout time.Duration
	// Registry
	InsecureRegistry string
	RegistryUsername string
	RegistryPassword string
	EnvVars          []string
	// Clean on Create
	CleanOnCreate   bool
	NoCleanOnCreate bool

	SysCredential *syscall.Credential
	// contains filtered or unexported fields
}

func (Runner) Clean added in v0.2.0

func (r Runner) Clean(threshold int64, ignoredImages []string) (string, error)

func (Runner) Create added in v0.2.0

func (r Runner) Create(spec groot.CreateSpec) (groot.ImageInfo, error)

func (Runner) Delete added in v0.2.0

func (r Runner) Delete(id string) error

func (Runner) DeleteStore added in v0.16.0

func (r Runner) DeleteStore() error

func (Runner) EnsureMounted added in v0.16.0

func (r Runner) EnsureMounted(image groot.ImageInfo) error

func (Runner) InitStore added in v0.16.0

func (r Runner) InitStore(spec manager.InitSpec) error

func (Runner) List added in v0.5.0

func (r Runner) List() ([]groot.ImageInfo, error)

func (Runner) RunSubcommand added in v0.2.0

func (r Runner) RunSubcommand(subcommand string, args ...string) (string, error)

func (Runner) RunningAsUser added in v0.11.0

func (r Runner) RunningAsUser(uid, gid uint32) Runner

func (*Runner) SetConfig added in v0.7.0

func (r *Runner) SetConfig(cfg config.Config) error

func (Runner) SkipInitStore added in v0.16.0

func (r Runner) SkipInitStore() Runner

func (Runner) StartCreate added in v0.16.0

func (r Runner) StartCreate(spec groot.CreateSpec) (*gexec.Session, error)

func (Runner) StartSubcommand added in v0.16.0

func (r Runner) StartSubcommand(subcommand string, args ...string) (*gexec.Session, error)

func (Runner) Stats added in v0.5.0

func (r Runner) Stats(id string) (groot.VolumeStats, error)

func (Runner) WithBtrfsBin added in v0.7.0

func (r Runner) WithBtrfsBin(btrfsBin string) Runner

func (Runner) WithClean added in v0.11.0

func (r Runner) WithClean() Runner

func (Runner) WithConfig added in v0.5.0

func (r Runner) WithConfig(configPath string) Runner

func (Runner) WithCredentials added in v0.11.0

func (r Runner) WithCredentials(username, password string) Runner

func (Runner) WithDraxBin added in v0.7.0

func (r Runner) WithDraxBin(draxBin string) Runner

func (Runner) WithDriver added in v0.11.0

func (r Runner) WithDriver(driver string) Runner

///////////////////////////////////////////////////////////////////////////// Drivers /////////////////////////////////////////////////////////////////////////////

func (Runner) WithEnvVar added in v0.11.0

func (r Runner) WithEnvVar(variable string) Runner

func (Runner) WithInsecureRegistry added in v0.11.0

func (r Runner) WithInsecureRegistry(registry string) Runner

func (Runner) WithLogFile added in v0.2.0

func (r Runner) WithLogFile(path string) Runner

func (Runner) WithLogLevel added in v0.4.0

func (r Runner) WithLogLevel(level lager.LogLevel) Runner

func (Runner) WithMetronEndpoint added in v0.5.0

func (r Runner) WithMetronEndpoint(host net.IP, port uint16) Runner

func (Runner) WithNewgidmapBin added in v0.7.0

func (r Runner) WithNewgidmapBin(newgidmapBin string) Runner

func (Runner) WithNewuidmapBin added in v0.7.0

func (r Runner) WithNewuidmapBin(newuidmapBin string) Runner

func (Runner) WithNoClean added in v0.11.0

func (r Runner) WithNoClean() Runner

func (Runner) WithStderr added in v0.2.0

func (r Runner) WithStderr(stderr io.Writer) Runner

func (Runner) WithStdout added in v0.2.0

func (r Runner) WithStdout(stdout io.Writer) Runner

func (Runner) WithStore added in v0.7.0

func (r Runner) WithStore(path string) Runner

func (Runner) WithTardisBin added in v0.16.0

func (r Runner) WithTardisBin(draxBin string) Runner

func (Runner) WithTimeout added in v0.7.0

func (r Runner) WithTimeout(timeout time.Duration) Runner

func (Runner) WithoutDraxBin added in v0.7.0

func (r Runner) WithoutDraxBin() Runner

func (Runner) WithoutDriver added in v0.11.0

func (r Runner) WithoutDriver() Runner

func (Runner) WithoutLogLevel added in v0.4.0

func (r Runner) WithoutLogLevel() Runner

func (Runner) WithoutStore added in v0.7.0

func (r Runner) WithoutStore() Runner

func (Runner) WithoutTardisBin added in v0.16.0

func (r Runner) WithoutTardisBin() Runner

Jump to

Keyboard shortcuts

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