Documentation ¶
Overview ¶
Package glusterfs contains the internal representation of glusterfs volumes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
This is the primary entrypoint for volume plugins.
Types ¶
type MinMaxAllocator ¶
type MinMaxAllocator struct {
// contains filtered or unexported fields
}
func NewMinMaxAllocator ¶
func NewMinMaxAllocator(min, max int) (*MinMaxAllocator, error)
func (*MinMaxAllocator) AllocateNext ¶
func (a *MinMaxAllocator) AllocateNext() (int, bool, error)
func (*MinMaxAllocator) Free ¶
func (a *MinMaxAllocator) Free() int
func (*MinMaxAllocator) Has ¶
func (a *MinMaxAllocator) Has(i int) bool
func (*MinMaxAllocator) Release ¶
func (a *MinMaxAllocator) Release(i int) error
func (*MinMaxAllocator) SetRange ¶
func (a *MinMaxAllocator) SetRange(min, max int) error
Click to show internal directories.
Click to hide internal directories.