Documentation ¶
Index ¶
- Variables
- func ListPlans() (map[string][]VolumePlan, error)
- func RenameTeam(oldName, newName string) error
- type Filter
- type Volume
- func (v *Volume) BindApp(appName, mountPoint string, readOnly bool) error
- func (v *Volume) Create() error
- func (v *Volume) Delete() error
- func (v *Volume) LoadBinds() ([]VolumeBind, error)
- func (v *Volume) LoadBindsForApp(appName string) ([]VolumeBind, error)
- func (v *Volume) UnbindApp(appName, mountPoint string) error
- func (v *Volume) UnmarshalPlan(result interface{}) error
- func (v *Volume) Update() error
- type VolumeBind
- type VolumeBindID
- type VolumePlan
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVolumeNotFound = errors.New("volume not found") ErrVolumeAlreadyBound = errors.New("volume already bound in mountpoint") ErrVolumeBindNotFound = errors.New("volume bind not found") ErrVolumeAlreadyProvisioned = errors.New("updating a volume already provisioned is not supported, a new volume must be created and the old one deleted if necessary") )
Functions ¶
func ListPlans ¶
func ListPlans() (map[string][]VolumePlan, error)
func RenameTeam ¶
Types ¶
type Volume ¶
type Volume struct { Name string `bson:"_id"` Pool string Plan VolumePlan TeamOwner string Status string Binds []VolumeBind `bson:"-"` Opts map[string]string `bson:",omitempty"` }
func ListByFilter ¶
func (*Volume) LoadBinds ¶
func (v *Volume) LoadBinds() ([]VolumeBind, error)
func (*Volume) LoadBindsForApp ¶
func (v *Volume) LoadBindsForApp(appName string) ([]VolumeBind, error)
func (*Volume) UnmarshalPlan ¶
type VolumeBind ¶
type VolumeBind struct { ID VolumeBindID `bson:"_id"` ReadOnly bool }
type VolumeBindID ¶
type VolumePlan ¶
Click to show internal directories.
Click to hide internal directories.