volume

package
v0.0.0-...-c5655c4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 5 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID string

ID is the local volume ID

func NewID

func NewID(s string) ID

NewID creates a ID from a string returned from a previous call to ID.String.

func NilID

func NilID() ID

NilID returns an empty ID.

func (ID) Equals

func (id ID) Equals(target ID) bool

Equals ..

func (ID) IsNilID

func (id ID) IsNilID() bool

IsNilID ...

func (ID) String

func (id ID) String() string

String ...

type Query

type Query struct {
	Limit int

	// For now, the query will try to match entries that matches
	// all attributes present in here.
	Attr   attrs.Attrs
	FromID *ID
}

Query ..

func (*Query) Matches

func (q *Query) Matches(vol Volume) bool

Matches ..

type Volume

type Volume struct {
	ID           ID
	VolSetID     volumeset.ID
	BaseID       *snapshot.ID
	MntPath      securefilepath.SecureFilePath
	Attrs        attrs.Attrs
	CreationTime time.Time
	Size         uint64
	Name         string
}

Volume ...

func (*Volume) Copy

func (v *Volume) Copy() *Volume

Copy ...

func (Volume) HasBase

func (v Volume) HasBase() bool

HasBase ...

Jump to

Keyboard shortcuts

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