Documentation
¶
Index ¶
- Constants
- Variables
- type Device
- type KvStore
- func (kv *KvStore) DeleteStore()
- func (kv *KvStore) DumpStore()
- func (kv *KvStore) GetConfigured() bool
- func (kv *KvStore) GetKvStoreVersion() string
- func (kv *KvStore) GetMdmNodes() (string, string, string)
- func (kv *KvStore) GetMetadata(nodeID string) (*Metadata, error)
- func (kv *KvStore) GetNodeInfo(nodeID string) (int, int, error)
- func (kv *KvStore) SetConfigured() error
- func (kv *KvStore) SetMetadata(nodeID string, metaData *Metadata) error
- func (kv *KvStore) SetNodeInfo(nodeID string, persona int, state int) error
- func (kv *KvStore) UserDeleteKey(key string) error
- func (kv *KvStore) UserKeyValue(key string, value string) error
- type Metadata
- type ProtectionDomain
- type Sds
- type StoragePool
Constants ¶
const ( //SdsModeAll is both client and server SdsModeAll = 1 //SdsModeClient is client only SdsModeClient = 2 //SdsModeServer is server only SdsModeServer = 3 )
Variables ¶
var ( //ErrInvalidKeyValue The Key/Value returned is nil ErrInvalidKeyValue = errors.New("The Key/Value returned is nil") //ErrStoreType Invalid store type ErrStoreType = errors.New("Invalid store type") )
Functions ¶
This section is empty.
Types ¶
type KvStore ¶
KvStore representation a KeyValue Store
func NewKvStore ¶
NewKvStore generates a new KvStore object
func (*KvStore) DeleteStore ¶
func (kv *KvStore) DeleteStore()
DeleteStore deletes all ScaleIO Framework metadata
func (*KvStore) DumpStore ¶
func (kv *KvStore) DumpStore()
DumpStore prints out the ScaleIO Framework metadata
func (*KvStore) GetConfigured ¶
GetConfigured returns if the ScaleIO is configured
func (*KvStore) GetKvStoreVersion ¶
GetKvStoreVersion returns the metadata version
func (*KvStore) GetMdmNodes ¶
GetMdmNodes returns the pri, sec, tb mdms nodes in the Store
func (*KvStore) GetMetadata ¶
GetMetadata gets all domains/pools for a given node
func (*KvStore) GetNodeInfo ¶
GetNodeInfo returns all metadata for a give node
func (*KvStore) SetConfigured ¶
SetConfigured set the ScaleIO node to configured
func (*KvStore) SetMetadata ¶
SetMetadata sets all domains/pools for a given node
func (*KvStore) SetNodeInfo ¶
SetNodeInfo sets all metadata for a given node
func (*KvStore) UserDeleteKey ¶
UserDeleteKey returns debug tool for modifying keyvalue pairs
type Metadata ¶
type Metadata struct {
ProtectionDomains map[string]*ProtectionDomain
}
Metadata representation
type ProtectionDomain ¶
type ProtectionDomain struct { Name string Pools map[string]*StoragePool Sdss map[string]*Sds Delete bool Add bool }
ProtectionDomain representation