Documentation ¶
Index ¶
- func GetMetadata(repo *repository.Repository, checksum [32]byte) (*metadata.Metadata, [32]byte, error)
- func GetSnapshot(repo *repository.Repository, snapshotID [32]byte) (*header.Header, bool, error)
- type CheckOptions
- type NoOpLogger
- func (l *NoOpLogger) Debugf(format string, v ...interface{})
- func (l *NoOpLogger) Errorf(format string, v ...interface{})
- func (l *NoOpLogger) Fatalf(format string, v ...interface{})
- func (l *NoOpLogger) Infof(format string, v ...interface{})
- func (l *NoOpLogger) Warningf(format string, v ...interface{})
- type PackerMsg
- type PushOptions
- type Reader
- type RestoreOptions
- type Snapshot
- func (snap *Snapshot) Backup(scanDir string, options *PushOptions) error
- func (snapshot *Snapshot) CheckChunk(checksum [32]byte) bool
- func (snapshot *Snapshot) CheckDirectory(checksum [32]byte) bool
- func (snapshot *Snapshot) CheckFile(checksum [32]byte) bool
- func (snapshot *Snapshot) CheckObject(checksum [32]byte) bool
- func (snapshot *Snapshot) Commit() error
- func (snap *Snapshot) Event(evt events.Event)
- func (s *Snapshot) Filesystem() (*vfs.Filesystem, error)
- func (snapshot *Snapshot) GetChunk(checksum [32]byte) ([]byte, error)
- func (snapshot *Snapshot) GetData(checksum [32]byte) ([]byte, error)
- func (snapshot *Snapshot) GetDirectory(checksum [32]byte) ([]byte, error)
- func (snapshot *Snapshot) GetFile(checksum [32]byte) ([]byte, error)
- func (snapshot *Snapshot) GetObject(checksum [32]byte) ([]byte, error)
- func (snap *Snapshot) ListChunks() (<-chan [32]byte, error)
- func (snap *Snapshot) ListDatas() (<-chan [32]byte, error)
- func (snap *Snapshot) ListDirectories() (<-chan [32]byte, error)
- func (snap *Snapshot) ListFiles() (<-chan [32]byte, error)
- func (snap *Snapshot) ListObjects() (<-chan [32]byte, error)
- func (snapshot *Snapshot) LookupObject(checksum [32]byte) (*objects.Object, error)
- func (snapshot *Snapshot) NewReader(pathname string) (*Reader, error)
- func (snap *Snapshot) PutChunk(checksum [32]byte, data []byte) error
- func (snap *Snapshot) PutData(checksum [32]byte, data []byte) error
- func (snap *Snapshot) PutDirectory(checksum [32]byte, data []byte) error
- func (snap *Snapshot) PutFile(checksum [32]byte, data []byte) error
- func (snap *Snapshot) PutHeader(checksum [32]byte, data []byte) error
- func (snap *Snapshot) PutObject(checksum [32]byte, data []byte) error
- func (snap *Snapshot) PutPackfile(pack *packfile.PackFile, objects [][32]byte, chunks [][32]byte, ...) error
- func (snapshot *Snapshot) Repository() *repository.Repository
- func (snap *Snapshot) Restore(exp *exporter.Exporter, pattern string, opts *RestoreOptions) error
- func (snap *Snapshot) Verify(pathname string, opts *CheckOptions) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetadata ¶
func GetMetadata(repo *repository.Repository, checksum [32]byte) (*metadata.Metadata, [32]byte, error)
func GetSnapshot ¶
func GetSnapshot(repo *repository.Repository, snapshotID [32]byte) (*header.Header, bool, error)
Types ¶
type CheckOptions ¶
type NoOpLogger ¶
type NoOpLogger struct{}
func (*NoOpLogger) Debugf ¶
func (l *NoOpLogger) Debugf(format string, v ...interface{})
func (*NoOpLogger) Errorf ¶
func (l *NoOpLogger) Errorf(format string, v ...interface{})
func (*NoOpLogger) Fatalf ¶
func (l *NoOpLogger) Fatalf(format string, v ...interface{})
func (*NoOpLogger) Infof ¶
func (l *NoOpLogger) Infof(format string, v ...interface{})
func (*NoOpLogger) Warningf ¶
func (l *NoOpLogger) Warningf(format string, v ...interface{})
type PushOptions ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) GetContentType ¶
type RestoreOptions ¶
type Snapshot ¶
type Snapshot struct { SkipDirs []string Header *header.Header Metadata *metadata.Metadata // contains filtered or unexported fields }
func Fork ¶
func Fork(repo *repository.Repository, snapshotID [32]byte) (*Snapshot, error)
func Load ¶
func Load(repo *repository.Repository, snapshotID [32]byte) (*Snapshot, error)
func New ¶
func New(repo *repository.Repository, snapshotID [32]byte) (*Snapshot, error)
func (*Snapshot) CheckChunk ¶
func (*Snapshot) CheckDirectory ¶
func (*Snapshot) CheckObject ¶
func (*Snapshot) Filesystem ¶
func (s *Snapshot) Filesystem() (*vfs.Filesystem, error)
func (*Snapshot) GetDirectory ¶
func (*Snapshot) ListChunks ¶
func (*Snapshot) ListDirectories ¶
func (*Snapshot) ListObjects ¶
func (*Snapshot) LookupObject ¶
func (*Snapshot) PutDirectory ¶
func (*Snapshot) PutPackfile ¶
func (*Snapshot) Repository ¶
func (snapshot *Snapshot) Repository() *repository.Repository
Source Files ¶
Click to show internal directories.
Click to hide internal directories.