plugin

package
v0.0.0-...-ac894bd Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultFStype       = "ext4"
	DefaultMountOptions = []string{"discard", "defaults"}
	HostFilesystem      = "/rootfs/"
	MountNamespace      = "/rootfs/proc/1/ns/mnt"
	CGroupFilename      = "/proc/1/cgroup"
)
View Source
var WaitStatusTimeout = 100 * time.Second

Functions

This section is empty.

Types

type Filesystem

type Filesystem interface {
	afero.Fs
	Mount(source string, target string) error
	Unmount(target string) error
	Format(source string) error
}

func NewFilesystem

func NewFilesystem() Filesystem

type OSFilesystem

type OSFilesystem struct {
	afero.Fs
	// contains filtered or unexported fields
}

func (*OSFilesystem) Format

func (fs *OSFilesystem) Format(source string) error

func (*OSFilesystem) Mount

func (fs *OSFilesystem) Mount(source string, target string) error

func (*OSFilesystem) Unmount

func (fs *OSFilesystem) Unmount(target string) error

type Volume

type Volume struct {
	Root string
	// contains filtered or unexported fields
}

func NewVolume

func NewVolume(c *http.Client, project, zone, instance string) (*Volume, error)

func (*Volume) Create

func (v *Volume) Create(r volume.Request) volume.Response

func (*Volume) Get

func (*Volume) List

func (v *Volume) List(volume.Request) volume.Response

func (*Volume) Mount

func (v *Volume) Mount(r volume.Request) volume.Response

func (*Volume) Path

func (v *Volume) Path(r volume.Request) volume.Response

func (*Volume) Remove

func (v *Volume) Remove(r volume.Request) volume.Response

func (*Volume) Unmount

func (v *Volume) Unmount(r volume.Request) volume.Response

Jump to

Keyboard shortcuts

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