Documentation
¶
Overview ¶
Package glusterfs contains the internal representation of glusterfs volumes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("number not allocated")
ErrConflict = errors.New("number already allocated")
ErrInvalidRange = errors.New("invalid range")
ErrOutOfRange = errors.New("out of range")
ErrRangeFull = errors.New("range full")
ErrInternal = errors.New("internal error")
)
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
This is the primary entrypoint for volume plugins.
Types ¶
type MinMaxAllocator ¶ added in v1.6.0
type MinMaxAllocator struct {
// contains filtered or unexported fields
}
func NewMinMaxAllocator ¶ added in v1.6.0
func NewMinMaxAllocator(min, max int) (*MinMaxAllocator, error)
func (*MinMaxAllocator) Allocate ¶ added in v1.6.0
func (a *MinMaxAllocator) Allocate(i int) (bool, error)
func (*MinMaxAllocator) AllocateNext ¶ added in v1.6.0
func (a *MinMaxAllocator) AllocateNext() (int, bool, error)
Click to show internal directories.
Click to hide internal directories.