Documentation
¶
Index ¶
- Variables
- func ListMounts() (ret []*models.Mount)
- func Mount(mnt *models.Mount) (ret *models.Mount, err error)
- func MountGetMountpoint(mnt *models.Mount) (mntpt string, err error)
- func MountRefAdd(mnt *models.Mount, n int64)
- func Unmount(mnt *models.Mount) (ret *models.Mount, err error)
- type ContainersType
- func (c *ContainersType) Create(ctn *models.Container) (r *models.Container, err error)
- func (c *ContainersType) Delete(id models.ID) (ret *models.Container, err error)
- func (c *ContainersType) Get(id models.ID) (*models.Container, error)
- func (c *ContainersType) Init()
- func (c *ContainersType) List() (r []*models.Container)
- func (c *ContainersType) NameGetID(name models.Name) models.ID
- func (c *ContainersType) SetState(id models.ID, state models.ContainerState) (err error)
- type MountsOverlayType
- func (m *MountsOverlayType) Collect()
- func (m *MountsOverlayType) Get(id models.ID) (*models.MountOverlay, error)
- func (m *MountsOverlayType) Init()
- func (m *MountsOverlayType) List() (r []*models.MountOverlay)
- func (m *MountsOverlayType) Mount(mnt *models.MountOverlay) (r *models.MountOverlay, err error)
- func (m *MountsOverlayType) RefAdd(id models.ID, n int64)
- func (m *MountsOverlayType) Unmount(id models.ID) (mnt *models.MountOverlay, err error)
- type MountsRBDType
- func (m *MountsRBDType) Collect()
- func (m *MountsRBDType) Get(id models.ID) (mnt *models.MountRbd, err error)
- func (m *MountsRBDType) Init()
- func (m *MountsRBDType) List() (mnts []*models.MountRbd)
- func (m *MountsRBDType) Mount(mnt *models.MountRbd) (ret *models.MountRbd, err error)
- func (m *MountsRBDType) RefAdd(id models.ID, n int64)
- func (m *MountsRBDType) Unmount(id models.ID) (ret *models.MountRbd, err error)
- type RbdsType
- func (r *RbdsType) Collect()
- func (r *RbdsType) Get(id models.ID) (m *models.Rbd, err error)
- func (r *RbdsType) Init()
- func (r *RbdsType) List() (result []*models.Rbd)
- func (r *RbdsType) Map(rbd *models.Rbd) (m *models.Rbd, err error)
- func (r *RbdsType) RefAdd(id models.ID, n int64)
- func (r *RbdsType) Unmap(id models.ID) (m *models.Rbd, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ERRNOTFOUND = errors.New("not found")
View Source
var Log *logrus.Logger
Functions ¶
func MountRefAdd ¶
Types ¶
type ContainersType ¶
type ContainersType struct {
// contains filtered or unexported fields
}
var Containers *ContainersType
func (*ContainersType) Init ¶
func (c *ContainersType) Init()
func (*ContainersType) List ¶
func (c *ContainersType) List() (r []*models.Container)
func (*ContainersType) NameGetID ¶
func (c *ContainersType) NameGetID(name models.Name) models.ID
NameGetID will return the ID for a given name This is used to implement the `byname` calls If the name is not found, it will return -1
func (*ContainersType) SetState ¶
func (c *ContainersType) SetState(id models.ID, state models.ContainerState) (err error)
type MountsOverlayType ¶
type MountsOverlayType struct {
// contains filtered or unexported fields
}
var MountsOverlay *MountsOverlayType
func (*MountsOverlayType) Collect ¶ added in v0.1.2
func (m *MountsOverlayType) Collect()
Collect will run garbage collection on any RBDs with ref == 0
func (*MountsOverlayType) Get ¶
func (m *MountsOverlayType) Get(id models.ID) (*models.MountOverlay, error)
func (*MountsOverlayType) Init ¶
func (m *MountsOverlayType) Init()
func (*MountsOverlayType) List ¶
func (m *MountsOverlayType) List() (r []*models.MountOverlay)
func (*MountsOverlayType) Mount ¶
func (m *MountsOverlayType) Mount(mnt *models.MountOverlay) (r *models.MountOverlay, err error)
func (*MountsOverlayType) Unmount ¶
func (m *MountsOverlayType) Unmount(id models.ID) (mnt *models.MountOverlay, err error)
type MountsRBDType ¶
type MountsRBDType struct {
// contains filtered or unexported fields
}
var MountsRbd *MountsRBDType
func (*MountsRBDType) Collect ¶ added in v0.1.2
func (m *MountsRBDType) Collect()
Collect will run garbage collection on any RBDs with ref == 0
func (*MountsRBDType) Init ¶
func (m *MountsRBDType) Init()
func (*MountsRBDType) List ¶
func (m *MountsRBDType) List() (mnts []*models.MountRbd)
type RbdsType ¶
type RbdsType struct {
// contains filtered or unexported fields
}
var Rbds *RbdsType
func (*RbdsType) Collect ¶ added in v0.1.2
func (r *RbdsType) Collect()
Collect will run garbage collection on any RBDs with ref == 0
Click to show internal directories.
Click to hide internal directories.