Documentation ¶
Index ¶
- func ConfigureVolume(p Pooler, vol Volumer, size int64, format bool, acs volaccess.T, shared bool, ...) error
- func DiskName(p Pooler, vol Volumer) string
- func Driver(t string) func() Pooler
- func GetMappings(p ArrayPooler, nodes []string, pathType string) (array.Mappings, error)
- func GetPaths(p ArrayPooler, nodes []string, pathType string) (san.Paths, error)
- func HasAccess(p Pooler, acs volaccess.T) bool
- func HasCapability(p Pooler, s string) bool
- func InitData()
- func MappingsFromPaths(paths san.Paths) (array.Mappings, error)
- func MountPointFromName(name string) string
- type ArrayPooler
- type BlkTranslater
- type By
- type Capabilities
- type Config
- type Data
- type DataElement
- type Dataer
- type Disk
- type Lookup
- type Pooler
- type Status
- type StatusList
- func (t StatusList) Add(p Pooler, withUsage bool) StatusList
- func (t StatusList) Len() int
- func (t StatusList) Less(i, j int) bool
- func (t StatusList) LoadTreeNode(head *tree.Node)
- func (t StatusList) Render(verbose bool) string
- func (t StatusList) Swap(i, j int)
- func (t StatusList) Tree() *tree.Tree
- type T
- func (t *T) AddFS(name string, shared bool, fsIndex int, diskIndex int, onDisk string) []string
- func (t *T) Config() Config
- func (t *T) FSType() string
- func (t *T) GetBool(s string) bool
- func (t *T) GetInt(s string) int
- func (t *T) GetSize(s string) *int64
- func (t *T) GetString(s string) string
- func (t *T) GetStringAs(s, nodename string) string
- func (t *T) GetStrings(s string) []string
- func (t *T) Mappings() map[string]string
- func (t *T) MkblkOptions() string
- func (t *T) MkfsOptions() string
- func (t *T) MntOptions() string
- func (t T) Name() string
- func (t T) Separator() string
- func (t *T) SetConfig(c Config)
- func (t *T) SetDriver(driver string)
- func (t *T) SetName(name string)
- func (t T) Type() string
- type Translater
- type Usage
- type VolumeStatus
- type VolumeStatusList
- type Volumer
- type WeightedPools
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureVolume ¶
func GetMappings ¶
func HasCapability ¶
func MountPointFromName ¶
Types ¶
type ArrayPooler ¶
type BlkTranslater ¶
type Capabilities ¶
type Capabilities []string
type Data ¶
Data defines a shared holder for all pool Dataer
var ( // StatusData is the package data holder for all instances statuses StatusData *Data[Status] )
func (*Data[T]) Get ¶
func (c *Data[T]) Get(name string) *T
Get returns a pool data or nil if data is not found
func (*Data[T]) GetAll ¶
func (c *Data[T]) GetAll() []DataElement[T]
GetAll returns all instance data as a list of DataElements
type DataElement ¶
type Lookup ¶
type Lookup struct { Name string Type string Access volaccess.T Size int64 Format bool Usage bool Nodes []string // contains filtered or unexported fields }
func (Lookup) ConfigureVolume ¶
type Pooler ¶
type Status ¶
type Status struct { Type string `json:"type"` Name string `json:"name"` Capabilities []string `json:"capabilities"` Head string `json:"head"` Errors []string `json:"errors"` VolumeCount int `json:"volume_count"` Usage }
func (Status) HasCapability ¶
func (Status) LoadTreeNode ¶
LoadTreeNode add the tree nodes representing the type instance into another.
type StatusList ¶
type StatusList []Status
func NewStatusList ¶
func NewStatusList() StatusList
func (StatusList) Add ¶
func (t StatusList) Add(p Pooler, withUsage bool) StatusList
func (StatusList) Len ¶
func (t StatusList) Len() int
func (StatusList) Less ¶
func (t StatusList) Less(i, j int) bool
func (StatusList) LoadTreeNode ¶
func (t StatusList) LoadTreeNode(head *tree.Node)
LoadTreeNode add the tree nodes representing the type instance into another.
func (StatusList) Render ¶
func (t StatusList) Render(verbose bool) string
func (StatusList) Swap ¶
func (t StatusList) Swap(i, j int)
func (StatusList) Tree ¶
func (t StatusList) Tree() *tree.Tree
Tree returns a tree loaded with the type instance.
type T ¶
type T struct {
// contains filtered or unexported fields
}
func (*T) GetStringAs ¶
func (*T) GetStrings ¶
func (*T) MkblkOptions ¶
func (*T) MkfsOptions ¶
func (*T) MntOptions ¶
type Translater ¶
type VolumeStatus ¶
type VolumeStatus struct { Pool string `json:"pool"` Path naming.Path `json:"path"` Children naming.Paths `json:"children"` IsOrphan bool `json:"is_orphan"` Size int64 `json:"size"` }
func (VolumeStatus) LoadTreeNode ¶
func (t VolumeStatus) LoadTreeNode(head *tree.Node)
LoadTreeNode add the tree nodes representing the type instance into another.
type VolumeStatusList ¶
type VolumeStatusList []VolumeStatus
func (VolumeStatusList) Len ¶
func (t VolumeStatusList) Len() int
func (VolumeStatusList) Less ¶
func (t VolumeStatusList) Less(i, j int) bool
func (VolumeStatusList) LoadTreeNode ¶
func (t VolumeStatusList) LoadTreeNode(head *tree.Node)
LoadTreeNode add the tree nodes representing the type instance into another.
func (VolumeStatusList) Swap ¶
func (t VolumeStatusList) Swap(i, j int)
type WeightedPools ¶
type WeightedPools []Pooler
Click to show internal directories.
Click to hide internal directories.