Documentation ¶
Index ¶
- func GetBlob(repository *storage.Repository, checksum [32]byte) ([]byte, error)
- func GetFilesystem(repository *storage.Repository, checksum [32]byte) (*vfs.Filesystem, [32]byte, error)
- func GetIndex(repository *storage.Repository, checksum [32]byte) (*index.Index, [32]byte, error)
- func GetLock(repository *storage.Repository, lockID uuid.UUID) (*locking.Lock, error)
- func GetMetadata(repository *storage.Repository, checksum [32]byte) (*metadata.Metadata, [32]byte, error)
- func GetRepositoryIndex(repository *storage.Repository, checksum [32]byte) (*storageIndex.Index, error)
- func GetSnapshot(repository *storage.Repository, indexID uuid.UUID) (*header.Header, bool, error)
- func List(repository *storage.Repository) ([]uuid.UUID, error)
- func PutLock(repository storage.Repository, lock *locking.Lock) (uuid.UUID, error)
- type CachedObject
- type PackerChunkMsg
- type PackerObjectMsg
- type Reader
- type Snapshot
- func (snapshot *Snapshot) Check(resource string, fast bool) (bool, error)
- func (snapshot *Snapshot) CheckChunk(checksum [32]byte) bool
- func (snapshot *Snapshot) CheckObject(checksum [32]byte) bool
- func (snapshot *Snapshot) Commit() error
- func (snapshot *Snapshot) GetCachedObject(pathname string) (*CachedObject, error)
- func (snapshot *Snapshot) GetChunk(checksum [32]byte) ([]byte, error)
- func (snapshot *Snapshot) Lock() error
- func (snapshot *Snapshot) NewReader(pathname string) (*Reader, error)
- func (snapshot *Snapshot) Pull(root string, rebase bool, pattern string)
- func (snapshot *Snapshot) Push(scanDir string) error
- func (snapshot *Snapshot) PutBlob(checksum [32]byte, data []byte) (int, error)
- func (snapshot *Snapshot) PutCachedObject(pathname string, object objects.Object, fi vfs.FileInfo) error
- func (snapshot *Snapshot) PutChunk(checksum [32]byte, data []byte) error
- func (snapshot *Snapshot) PutIndex(checksum [32]byte, data []byte) (int, error)
- func (snapshot *Snapshot) PutObject(object *objects.Object) error
- func (snapshot *Snapshot) PutPackfile(pack *packfile.PackFile, objects [][32]byte, chunks [][32]byte) error
- func (snapshot *Snapshot) Repository() *storage.Repository
- func (snapshot *Snapshot) Unlock() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFilesystem ¶
func GetFilesystem(repository *storage.Repository, checksum [32]byte) (*vfs.Filesystem, [32]byte, error)
func GetMetadata ¶
func GetRepositoryIndex ¶
func GetRepositoryIndex(repository *storage.Repository, checksum [32]byte) (*storageIndex.Index, error)
func GetSnapshot ¶
Types ¶
type CachedObject ¶
type CachedObject struct { Checksum [32]byte Chunks []*objects.Chunk ContentType string Info vfs.FileInfo }
CachedObject needs to be killed
type PackerChunkMsg ¶
type PackerObjectMsg ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) GetContentType ¶
type Snapshot ¶
type Snapshot struct { SkipDirs []string Header *header.Header Index *index.Index Filesystem *vfs.Filesystem Metadata *metadata.Metadata // contains filtered or unexported fields }
func (*Snapshot) CheckChunk ¶
func (*Snapshot) CheckObject ¶
func (*Snapshot) GetCachedObject ¶
func (snapshot *Snapshot) GetCachedObject(pathname string) (*CachedObject, error)
func (*Snapshot) PutCachedObject ¶
func (*Snapshot) PutPackfile ¶
func (*Snapshot) Repository ¶
func (snapshot *Snapshot) Repository() *storage.Repository
Click to show internal directories.
Click to hide internal directories.