package glusterfs
import "k8s.io/kubernetes/pkg/volume/glusterfs"
Package glusterfs contains the internal representation of glusterfs volumes.
Index ¶
- Variables
- func ProbeVolumePlugins() []volume.VolumePlugin
- type MinMaxAllocator
- func NewMinMaxAllocator(min, max int) (*MinMaxAllocator, error)
- func (a *MinMaxAllocator) Allocate(i int) (bool, error)
- func (a *MinMaxAllocator) AllocateNext() (int, bool, error)
- func (a *MinMaxAllocator) Free() int
- func (a *MinMaxAllocator) Has(i int) bool
- func (a *MinMaxAllocator) Release(i int) error
- func (a *MinMaxAllocator) SetRange(min, max int) error
- type Rangeable
Variables ¶
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 ¶
type MinMaxAllocator struct {
// contains filtered or unexported fields
}
func NewMinMaxAllocator ¶
func NewMinMaxAllocator(min, max int) (*MinMaxAllocator, error)
func (*MinMaxAllocator) Allocate ¶
func (a *MinMaxAllocator) Allocate(i int) (bool, 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
type Rangeable ¶
type Rangeable interface { Allocate(int) (bool, error) AllocateNext() (int, bool, error) Release(int) error Has(int) bool Free() int SetRange(min, max int) error }
Rangeable is an Interface that can adjust its min/max range. Rangeable should be threadsafe
Source Files ¶
doc.go glusterfs.go glusterfs_minmax.go glusterfs_util.go
- Version
- v1.6.4-beta.1
- Published
- May 17, 2017
- Platform
- js/wasm
- Imports
- 26 packages
- Last checked
- 12 minutes ago –
Tools for package owners.