Versions in this module Expand all Collapse all v0 v0.3.0 Aug 19, 2016 Changes in this version + const DefaultFilesystem + const DefaultGlobalTTL + const DefaultMountPath + const DefaultTimeout + const GlobalConfigName + const TTLFixBase + const TimeoutFixBase + var DefaultDrivers = map[string]*BackendDrivers + var DefaultFilesystems = map[string]string + var PolicySchema = ... + var RuntimeSchema = ... + var VolumeSchema = ... + type BackendDrivers struct + CRUD string + Mount string + Snapshot string + type Client interface + Delete func(Entity) error + Dump func(string) (string, error) + Get func(Entity) error + List func(Entity) ([]Entity, error) + Prefix func() string + Set func(Entity) error + Watch func(Entity) (chan Entity, chan error) + WatchAll func(Entity) (chan Entity, chan error) + WatchAllStop func(Entity) error + WatchStop func(Entity) error + type CreateOptions struct + FileSystem string + Size string + func (co *CreateOptions) ActualSize() (uint64, error) + type Entity interface + Copy func() Entity + Hooks func() *Hooks + Path func() (string, error) + Prefix func() string + Validate func() error + type Global struct + Debug bool + MountPath string + TTL time.Duration + Timeout time.Duration + func NewGlobal() *Global + func (g *Global) Canonical() *Global + func (g *Global) Copy() Entity + func (g *Global) Hooks() *Hooks + func (g *Global) Path() (string, error) + func (g *Global) Prefix() string + func (g *Global) Published() *Global + func (g *Global) Validate() error + type Hook func(c Client, obj Entity) error + type Hooks struct + PostDelete Hook + PostGet Hook + PostSet Hook + PostValidate Hook + PreDelete Hook + PreGet Hook + PreSet Hook + PreValidate Hook + type Policy struct + Backend string + Backends *BackendDrivers + CreateOptions CreateOptions + DriverOptions map[string]string + FileSystems map[string]string + Name string + RuntimeOptions *RuntimeOptions + Unlocked bool + func NewPolicy(name string) *Policy + func (p *Policy) Copy() Entity + func (p *Policy) Hooks() *Hooks + func (p *Policy) Path() (string, error) + func (p *Policy) Prefix() string + func (p *Policy) String() string + func (p *Policy) Validate() error + type RateLimitConfig struct + ReadBPS uint64 + WriteBPS uint64 + type RuntimeOptions struct + RateLimit RateLimitConfig + Snapshot SnapshotConfig + UseSnapshots bool + func NewRuntimeOptions(policy, volume string) *RuntimeOptions + func (ro *RuntimeOptions) Copy() Entity + func (ro *RuntimeOptions) Hooks() *Hooks + func (ro *RuntimeOptions) Path() (string, error) + func (ro *RuntimeOptions) Prefix() string + func (ro *RuntimeOptions) Validate() error + type SnapshotConfig struct + Frequency string + Keep uint + type UseLocker interface + GetReason func() string + GetVolume func() string + MayExist func() bool + Type func() string + type UseMount struct + Hostname string + Reason string + Volume string + type UseSnapshot struct + Reason string + Volume string + type Volume struct + Backends *BackendDrivers + CreateOptions CreateOptions + DriverOptions map[string]string + MountSource string + PolicyName string + RuntimeOptions *RuntimeOptions + Unlocked bool + VolumeName string + func CreateVolume(vr *VolumeRequest) (*Volume, error) + func NewVolume(policy, volume string) *Volume + func (v *Volume) Copy() Entity + func (v *Volume) Hooks() *Hooks + func (v *Volume) Path() (string, error) + func (v *Volume) Prefix() string + func (v *Volume) String() string + func (v *Volume) ToDriverOptions(timeout time.Duration) (storage.DriverOptions, error) + func (v *Volume) Validate() error + type VolumeRequest struct + Name string + Options map[string]string + Policy *Policy