Documentation
¶
Index ¶
- Constants
- type DaemonDB
- func (d *DaemonDB) Close() error
- func (d *DaemonDB) DeleteAllP2V() error
- func (d *DaemonDB) DeleteP2C(id string) error
- func (d *DaemonDB) DeleteP2V(id string) error
- func (d *DaemonDB) DeletePod(id string) error
- func (d *DaemonDB) DeletePodVolumes(podId string) error
- func (d *DaemonDB) DeleteVM(id string) error
- func (d *DaemonDB) DeleteVMByPod(id string) error
- func (d *DaemonDB) Get(key []byte) ([]byte, error)
- func (d *DaemonDB) GetAllPods() chan *KVPair
- func (d *DaemonDB) GetP2C(id string) ([]string, error)
- func (d *DaemonDB) GetP2V(id string) (string, error)
- func (d *DaemonDB) GetPod(id string) ([]byte, error)
- func (d *DaemonDB) GetString(key []byte) (string, error)
- func (d *DaemonDB) GetVM(id string) ([]byte, error)
- func (d *DaemonDB) ListPod() ([][]byte, error)
- func (d *DaemonDB) ListPodVolumes(podId string) ([][]byte, error)
- func (d *DaemonDB) PrefixDelete(prefix []byte) error
- func (d *DaemonDB) PrefixList(prefix []byte, keyFilter KeyFilter) ([][]byte, error)
- func (d *DaemonDB) PrefixList2Chan(prefix []byte, keyFilter KeyFilter) chan *KVPair
- func (d *DaemonDB) PrefixListKey(prefix []byte, keyFilter KeyFilter) ([][]byte, error)
- func (d *DaemonDB) Update(key, data []byte) error
- func (d *DaemonDB) UpdateP2C(id string, containers []string) error
- func (d *DaemonDB) UpdateP2V(id, vm string) error
- func (d *DaemonDB) UpdatePod(id string, data []byte) error
- func (d *DaemonDB) UpdatePodVolume(podId, volname string, data []byte) error
- func (d *DaemonDB) UpdateVM(id string, data []byte) error
- type KVPair
- type KeyFilter
Constants ¶
View Source
const ( VM_KEY = "vmdata-%s" POD_KEY = "pod-%s" POD_VM_KEY = "vm-%s" POD_CONTAINER_KEY = "pod-container-%s" POD_VOLUME_KEY = "vol-%s-%s" POD_PREFIX = "pod-" POD_CONTAINER_PREFIX = "pod-container-" POD_VOLUME_PREFIX = "vol-%s" POD_VM_PREFIX = "vm-" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaemonDB ¶
type DaemonDB struct {
// contains filtered or unexported fields
}
func NewDaemonDB ¶
func (*DaemonDB) DeleteAllP2V ¶
func (*DaemonDB) DeletePodVolumes ¶
func (*DaemonDB) DeleteVMByPod ¶
Composition Process
func (*DaemonDB) GetAllPods ¶
func (*DaemonDB) PrefixDelete ¶
func (*DaemonDB) PrefixList ¶
func (*DaemonDB) PrefixList2Chan ¶
func (*DaemonDB) PrefixListKey ¶
func (*DaemonDB) UpdatePodVolume ¶
Pod Volumes
Click to show internal directories.
Click to hide internal directories.