Documentation ¶
Index ¶
Constants ¶
View Source
const LinstorNodeKey = "linbit.com/hostname"
LinstorNodeKey refers to a node running the LINSTOR csi node service and the linstor Satellite and is therefore capabile of hosting LINSTOR volumes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlacementPolicy ¶
type PlacementPolicy int
PlacementPolicy determines which scheduler will create volumes and report their accessible topology.
const ( // Unknown placement policy Unknown PlacementPolicy = iota // Manual place volumes with a list of nodes and clients. Manual // AutoPlace volumes using linstor's built in autoplace feature. AutoPlace // FollowTopology place volumes local to topology preferences, in order // of those preferences. FollowTopology // BalancedTopology places remote volumes in the same zone(Rack) // and pick Node, StoragePool, PrefNic based on utilization Balanced )
func PlacementPolicyString ¶
func PlacementPolicyString(s string) (PlacementPolicy, error)
PlacementPolicyString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func PlacementPolicyValues ¶
func PlacementPolicyValues() []PlacementPolicy
PlacementPolicyValues returns all values of the enum
func (PlacementPolicy) IsAPlacementPolicy ¶
func (i PlacementPolicy) IsAPlacementPolicy() bool
IsAPlacementPolicy returns "true" if the value is listed in the enum definition. "false" otherwise
func (PlacementPolicy) String ¶
func (i PlacementPolicy) String() string
Click to show internal directories.
Click to hide internal directories.