runner

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitSpec added in v0.21.0

type InitSpec struct {
	Rootless       string
	UIDMappings    []groot.IDMappingSpec
	GIDMappings    []groot.IDMappingSpec
	StoreSizeBytes int64
}

type Runner added in v0.2.0

type Runner struct {
	GrootFSBin string

	Driver string
	// Store path
	StorePath string

	// Binaries
	DraxBin        string
	TardisBin      string
	BtrfsProgsPath 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
	// Registry
	InsecureRegistry string
	RegistryUsername string
	RegistryPassword string
	EnvVars          []string
	// Clean on Create
	CleanOnCreate   bool
	NoCleanOnCreate bool
	// Layer Checksum Validation
	SkipLayerValidation bool

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

func (Runner) Clean added in v0.2.0

func (r Runner) Clean(threshold int64) (string, error)

func (Runner) Create added in v0.2.0

func (r Runner) Create(spec groot.CreateSpec) (specs.Spec, 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(containerSpec specs.Spec) error

func (Runner) GenerateVolumeSizeMetadata added in v0.29.0

func (r Runner) GenerateVolumeSizeMetadata() error

func (Runner) InitStore added in v0.16.0

func (r Runner) InitStore(spec 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 int) 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) SkipLayerCheckSumValidation added in v0.25.0

func (r Runner) SkipLayerCheckSumValidation() 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) WithBtrfsProgsPath added in v0.21.0

func (r Runner) WithBtrfsProgsPath(btrfsProgsPath 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) 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