imageplugin

package
v0.0.0-...-7f502db Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandCreator

type CommandCreator interface {
	CreateCommand(log lager.Logger, handle string, spec rootfs_provider.Spec) (*exec.Cmd, error)
	DestroyCommand(log lager.Logger, handle string) *exec.Cmd
	MetricsCommand(log lager.Logger, handle string) *exec.Cmd
}

type DefaultCommandCreator

type DefaultCommandCreator struct {
	BinPath   string
	ExtraArgs []string
}

func (*DefaultCommandCreator) CreateCommand

func (cc *DefaultCommandCreator) CreateCommand(log lager.Logger, handle string, spec rootfs_provider.Spec) (*exec.Cmd, error)

func (*DefaultCommandCreator) DestroyCommand

func (cc *DefaultCommandCreator) DestroyCommand(log lager.Logger, handle string) *exec.Cmd

func (*DefaultCommandCreator) MetricsCommand

func (cc *DefaultCommandCreator) MetricsCommand(log lager.Logger, handle string) *exec.Cmd

type Image

type Image struct {
	Config ImageConfig `json:"config,omitempty"`
}

type ImageConfig

type ImageConfig struct {
	Env []string `json:"Env,omitempty"`
}

type ImagePlugin

type ImagePlugin struct {
	UnprivilegedCommandCreator CommandCreator
	PrivilegedCommandCreator   CommandCreator
	CommandRunner              command_runner.CommandRunner
	DefaultRootfs              string
}

func (*ImagePlugin) Create

func (p *ImagePlugin) Create(log lager.Logger, handle string, spec rootfs_provider.Spec) (string, []string, error)

func (*ImagePlugin) Destroy

func (p *ImagePlugin) Destroy(log lager.Logger, handle string) error

func (*ImagePlugin) GC

func (p *ImagePlugin) GC(log lager.Logger) error

func (*ImagePlugin) Metrics

func (p *ImagePlugin) Metrics(log lager.Logger, handle string, namespaced bool) (garden.ContainerDiskStat, error)

type NotImplementedCommandCreator

type NotImplementedCommandCreator struct {
	Err error
}

func (*NotImplementedCommandCreator) CreateCommand

func (cc *NotImplementedCommandCreator) CreateCommand(log lager.Logger, handle string, spec rootfs_provider.Spec) (*exec.Cmd, error)

func (*NotImplementedCommandCreator) DestroyCommand

func (cc *NotImplementedCommandCreator) DestroyCommand(log lager.Logger, handle string) *exec.Cmd

func (*NotImplementedCommandCreator) MetricsCommand

func (cc *NotImplementedCommandCreator) MetricsCommand(log lager.Logger, handle string) *exec.Cmd

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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