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 ¶
func GenerateSnapshotDiskName ¶ added in v0.2.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 (*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) PrepareRemoveDisk ¶ added in v0.2.0
func (r *Replica) PrepareRemoveDisk(name string) ([]PrepareRemoveAction, error)
func (*Replica) SetRebuilding ¶
type Server ¶
func (*Server) PrepareRemoveDisk ¶ added in v0.2.0
func (s *Server) PrepareRemoveDisk(name string) ([]PrepareRemoveAction, error)
func (*Server) SetRebuilding ¶
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.