Documentation
¶
Index ¶
- Variables
- type Backend
- type ETCDBackend
- type KVStore
- func (s *KVStore) DeleteVolume(id string) error
- func (s *KVStore) DeleteVolumeController(volumeName string) error
- func (s *KVStore) DeleteVolumeReplica(volumeName, replicaName string) error
- func (s *KVStore) DeleteVolumeReplicas(volumeName string) error
- func (s *KVStore) GetHost(id string) (*types.HostInfo, error)
- func (s *KVStore) GetSettings() (*types.SettingsInfo, error)
- func (s *KVStore) GetVolume(id string) (*types.VolumeInfo, error)
- func (s *KVStore) GetVolumeBase(id string) (*types.VolumeInfo, error)
- func (s *KVStore) GetVolumeController(volumeName string) (*types.ControllerInfo, error)
- func (s *KVStore) GetVolumeReplica(volumeName, replicaName string) (*types.ReplicaInfo, error)
- func (s *KVStore) GetVolumeReplicas(volumeName string) (map[string]*types.ReplicaInfo, error)
- func (s *KVStore) ListHosts() (map[string]*types.HostInfo, error)
- func (s *KVStore) ListVolumes() ([]*types.VolumeInfo, error)
- func (s *KVStore) NewVolumeKeyFromName(name string) *VolumeKey
- func (s *KVStore) NewVolumeKeyFromRootKey(rootKey string) *VolumeKey
- func (s *KVStore) SetHost(host *types.HostInfo) error
- func (s *KVStore) SetSettings(settings *types.SettingsInfo) error
- func (s *KVStore) SetVolume(volume *types.VolumeInfo) (err error)
- func (s *KVStore) SetVolumeBase(volume *types.VolumeInfo) error
- func (s *KVStore) SetVolumeController(controller *types.ControllerInfo) error
- func (s *KVStore) SetVolumeReplica(replica *types.ReplicaInfo) error
- func (s *KVStore) SetVolumeReplicas(replicas map[string]*types.ReplicaInfo) error
- type MemoryBackend
- type VolumeKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MemoryKeyNotFoundError = errors.Errorf("key not found") Separator = "/" )
Functions ¶
This section is empty.
Types ¶
type ETCDBackend ¶
type ETCDBackend struct { Servers []string // contains filtered or unexported fields }
func NewETCDBackend ¶
func NewETCDBackend(servers []string) (*ETCDBackend, error)
func (*ETCDBackend) Delete ¶
func (s *ETCDBackend) Delete(key string) error
func (*ETCDBackend) Get ¶
func (s *ETCDBackend) Get(key string, obj interface{}) error
func (*ETCDBackend) IsNotFoundError ¶
func (s *ETCDBackend) IsNotFoundError(err error) bool
func (*ETCDBackend) Set ¶
func (s *ETCDBackend) Set(key string, obj interface{}) error
type KVStore ¶
type KVStore struct { Prefix string // contains filtered or unexported fields }
func (*KVStore) DeleteVolume ¶
func (*KVStore) DeleteVolumeController ¶
func (*KVStore) DeleteVolumeReplica ¶
func (*KVStore) DeleteVolumeReplicas ¶
func (*KVStore) GetSettings ¶
func (s *KVStore) GetSettings() (*types.SettingsInfo, error)
func (*KVStore) GetVolumeBase ¶
func (s *KVStore) GetVolumeBase(id string) (*types.VolumeInfo, error)
func (*KVStore) GetVolumeController ¶
func (s *KVStore) GetVolumeController(volumeName string) (*types.ControllerInfo, error)
func (*KVStore) GetVolumeReplica ¶
func (s *KVStore) GetVolumeReplica(volumeName, replicaName string) (*types.ReplicaInfo, error)
func (*KVStore) GetVolumeReplicas ¶
func (*KVStore) ListVolumes ¶
func (s *KVStore) ListVolumes() ([]*types.VolumeInfo, error)
func (*KVStore) NewVolumeKeyFromName ¶
func (*KVStore) NewVolumeKeyFromRootKey ¶
func (*KVStore) SetSettings ¶
func (s *KVStore) SetSettings(settings *types.SettingsInfo) error
func (*KVStore) SetVolumeBase ¶
func (s *KVStore) SetVolumeBase(volume *types.VolumeInfo) error
func (*KVStore) SetVolumeController ¶
func (s *KVStore) SetVolumeController(controller *types.ControllerInfo) error
func (*KVStore) SetVolumeReplica ¶
func (s *KVStore) SetVolumeReplica(replica *types.ReplicaInfo) error
func (*KVStore) SetVolumeReplicas ¶
func (s *KVStore) SetVolumeReplicas(replicas map[string]*types.ReplicaInfo) error
type MemoryBackend ¶
type MemoryBackend struct {
// contains filtered or unexported fields
}
func NewMemoryBackend ¶
func NewMemoryBackend() (*MemoryBackend, error)
func (*MemoryBackend) Delete ¶
func (m *MemoryBackend) Delete(key string) error
func (*MemoryBackend) Get ¶
func (m *MemoryBackend) Get(key string, obj interface{}) error
func (*MemoryBackend) IsNotFoundError ¶
func (m *MemoryBackend) IsNotFoundError(err error) bool
func (*MemoryBackend) Set ¶
func (m *MemoryBackend) Set(key string, obj interface{}) error
type VolumeKey ¶
type VolumeKey struct {
// contains filtered or unexported fields
}
func (*VolumeKey) Controller ¶
Click to show internal directories.
Click to hide internal directories.