Documentation ¶
Index ¶
- Constants
- func GenerateSnapshotDiskName(name string) string
- type BackingFile
- type Backup
- func (rb *Backup) CloseSnapshot(id, volumeID string) error
- func (rb *Backup) CompareSnapshot(id, compareID, volumeID string) (*metadata.Mappings, error)
- func (rb *Backup) HasSnapshot(id, volumeID string) bool
- func (rb *Backup) OpenSnapshot(id, volumeID string) error
- func (rb *Backup) ReadSnapshot(id, volumeID string, start int64, data []byte) error
- 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) Info() Info
- 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, markOnly bool) error
- func (r *Replica) Revert(name string) (*Replica, error)
- func (r *Replica) SetRebuilding(rebuilding bool) error
- func (r *Replica) Snapshot(name 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) Open() 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, markOnly bool) error
- func (s *Server) Replica() *Replica
- func (s *Server) Revert(name string) error
- func (s *Server) SetRebuilding(rebuilding bool) error
- func (s *Server) Snapshot(name 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" OpMarkAsRemoved = "markasremoved" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackingFile ¶
type Backup ¶
type Backup struct {
// contains filtered or unexported fields
}
func NewBackup ¶
func NewBackup(backingFile *BackingFile) *Backup
func (*Backup) CloseSnapshot ¶
func (*Backup) CompareSnapshot ¶
func (*Backup) HasSnapshot ¶
func (*Backup) OpenSnapshot ¶
type Info ¶
type PrepareRemoveAction ¶
type Replica ¶
func NewReadOnly ¶
func NewReadOnly(dir, head string, backingFile *BackingFile) (*Replica, error)
func (*Replica) DisplayChain ¶
func (*Replica) PrepareRemoveDisk ¶
func (r *Replica) PrepareRemoveDisk(name string) ([]PrepareRemoveAction, error)
func (*Replica) SetRebuilding ¶
type Server ¶
func (*Server) PrepareRemoveDisk ¶
func (s *Server) PrepareRemoveDisk(name string) ([]PrepareRemoveAction, error)
func (*Server) SetRebuilding ¶
type UsedGenerator ¶
type UsedGenerator struct {
// contains filtered or unexported fields
}
func (*UsedGenerator) Err ¶
func (u *UsedGenerator) Err() error
func (*UsedGenerator) Generate ¶
func (u *UsedGenerator) Generate() <-chan int64
Source Files ¶
Click to show internal directories.
Click to hide internal directories.