Documentation ¶
Index ¶
- Constants
- func GenerateSnapshotDiskName(name string) string
- func GetSnapshotNameFromDiskName(diskName string) (string, error)
- func IsHeadDisk(diskName string) bool
- type BackingFile
- type Backup
- func (rb *Backup) CloseSnapshot(snapID, volumeID string) error
- func (rb *Backup) CompareSnapshot(snapID, compareSnapID, volumeID string) (*backupstore.Mappings, error)
- func (rb *Backup) HasSnapshot(snapID, volumeID string) bool
- func (rb *Backup) OpenSnapshot(snapID, volumeID string) error
- func (rb *Backup) ReadSnapshot(snapID, volumeID string, start int64, data []byte) error
- type DiskInfo
- type Info
- type PrepareRemoveAction
- type Replica
- func (r *Replica) Chain() ([]string, error)
- func (r *Replica) Close() error
- func (r *Replica) Delete() error
- func (r *Replica) DisplayChain() ([]string, error)
- func (r *Replica) GetRemainSnapshotCounts() int
- func (r *Replica) GetRevisionCounter() int64
- func (r *Replica) Info() Info
- func (r *Replica) ListDisks() map[string]DiskInfo
- func (r *Replica) MarkDiskAsRemoved(name string) error
- func (r *Replica) PrepareRemoveDisk(name string) ([]PrepareRemoveAction, error)
- func (r *Replica) ReadAt(buf []byte, offset int64) (int, error)
- func (r *Replica) Reload() (*Replica, error)
- func (r *Replica) RemoveDiffDisk(name string, force bool) error
- func (r *Replica) ReplaceDisk(target, source string) error
- func (r *Replica) Revert(name, created string) (*Replica, error)
- func (r *Replica) SetRebuilding(rebuilding bool) error
- func (r *Replica) SetRevisionCounter(counter int64) error
- func (r *Replica) Snapshot(name string, userCreated bool, created string, labels map[string]string) error
- func (r *Replica) WriteAt(buf []byte, offset int64) (int, error)
- type Server
- func (s *Server) Close() error
- func (s *Server) Create(size int64) error
- func (s *Server) Delete() error
- func (s *Server) MarkDiskAsRemoved(name string) error
- func (s *Server) Open() error
- func (s *Server) PingResponse() error
- func (s *Server) PrepareRemoveDisk(name string) ([]PrepareRemoveAction, error)
- func (s *Server) ReadAt(buf []byte, offset int64) (int, error)
- func (s *Server) Reload() error
- func (s *Server) RemoveDiffDisk(name string, force bool) error
- func (s *Server) ReplaceDisk(target, source string) error
- func (s *Server) Replica() *Replica
- func (s *Server) Restore(url, name string) (err error)
- func (s *Server) Revert(name, created string) error
- func (s *Server) SetRebuilding(rebuilding bool) error
- func (s *Server) SetRevisionCounter(counter int64) error
- func (s *Server) Snapshot(name string, userCreated bool, createdTime string, labels map[string]string) error
- func (s *Server) Status() (State, Info)
- func (s *Server) WriteAt(buf []byte, offset int64) (int, error)
- type State
- type UsedGenerator
Constants ¶
View Source
const ( OpCoalesce = "coalesce" // Source is parent, target is child OpRemove = "remove" OpReplace = "replace" )
Variables ¶
This section is empty.
Functions ¶
func GenerateSnapshotDiskName ¶ added in v0.2.0
func GetSnapshotNameFromDiskName ¶ added in v0.3.0
func IsHeadDisk ¶ added in v0.3.0
Types ¶
type BackingFile ¶
type Backup ¶ added in v0.2.0
type Backup struct {
// contains filtered or unexported fields
}
func NewBackup ¶ added in v0.2.0
func NewBackup(backingFile *BackingFile) *Backup
func (*Backup) CloseSnapshot ¶ added in v0.2.0
func (*Backup) CompareSnapshot ¶ added in v0.2.0
func (rb *Backup) CompareSnapshot(snapID, compareSnapID, volumeID string) (*backupstore.Mappings, error)
func (*Backup) HasSnapshot ¶ added in v0.2.0
func (*Backup) OpenSnapshot ¶ added in v0.2.0
type Info ¶
type PrepareRemoveAction ¶ added in v0.2.0
type Replica ¶
func NewReadOnly ¶ added in v0.2.0
func NewReadOnly(dir, head string, backingFile *BackingFile) (*Replica, error)
func (*Replica) DisplayChain ¶ added in v0.2.0
func (*Replica) GetRemainSnapshotCounts ¶ added in v0.3.0
func (*Replica) GetRevisionCounter ¶ added in v0.3.0
func (*Replica) MarkDiskAsRemoved ¶ added in v0.3.0
func (*Replica) PrepareRemoveDisk ¶ added in v0.2.0
func (r *Replica) PrepareRemoveDisk(name string) ([]PrepareRemoveAction, error)
func (*Replica) ReplaceDisk ¶ added in v0.3.0
func (*Replica) SetRebuilding ¶
func (*Replica) SetRevisionCounter ¶ added in v0.3.0
type Server ¶
func (*Server) MarkDiskAsRemoved ¶ added in v0.3.0
func (*Server) PingResponse ¶ added in v0.3.0
func (*Server) PrepareRemoveDisk ¶ added in v0.2.0
func (s *Server) PrepareRemoveDisk(name string) ([]PrepareRemoveAction, error)
func (*Server) ReplaceDisk ¶ added in v0.3.0
func (*Server) SetRebuilding ¶
func (*Server) SetRevisionCounter ¶ added in v0.3.0
type UsedGenerator ¶ added in v0.2.0
type UsedGenerator struct {
// contains filtered or unexported fields
}
func (*UsedGenerator) Err ¶ added in v0.2.0
func (u *UsedGenerator) Err() error
func (*UsedGenerator) Generate ¶ added in v0.2.0
func (u *UsedGenerator) Generate() <-chan int64
Source Files ¶
Click to show internal directories.
Click to hide internal directories.