Documentation ¶
Index ¶
- func NewRepository() storage.RepositoryBackend
- type Repository
- func (repository *Repository) CheckBlob(checksum [32]byte) (bool, error)
- func (repository *Repository) Close() error
- func (repository *Repository) Commit(indexID uuid.UUID, data []byte) error
- func (repository *Repository) Configuration() storage.RepositoryConfig
- func (repository *Repository) Create(location string, config storage.RepositoryConfig) error
- func (repository *Repository) DeleteBlob(checksum [32]byte) error
- func (repository *Repository) DeleteIndex(checksum [32]byte) error
- func (repository *Repository) DeleteLock(indexID uuid.UUID) error
- func (repository *Repository) DeletePackfile(checksum [32]byte) error
- func (repository *Repository) DeleteSnapshot(indexID uuid.UUID) error
- func (repository *Repository) GetBlob(checksum [32]byte) ([]byte, error)
- func (repository *Repository) GetBlobs() ([][32]byte, error)
- func (repository *Repository) GetIndex(checksum [32]byte) ([]byte, error)
- func (repository *Repository) GetIndexes() ([][32]byte, error)
- func (repository *Repository) GetLock(indexID uuid.UUID) ([]byte, error)
- func (repository *Repository) GetLocks() ([]uuid.UUID, error)
- func (repository *Repository) GetPackfile(checksum [32]byte) ([]byte, error)
- func (repository *Repository) GetPackfileSubpart(checksum [32]byte, offset uint32, length uint32) ([]byte, error)
- func (repository *Repository) GetPackfiles() ([][32]byte, error)
- func (repository *Repository) GetSnapshot(indexID uuid.UUID) ([]byte, error)
- func (repository *Repository) GetSnapshots() ([]uuid.UUID, error)
- func (repository *Repository) Open(location string) error
- func (repository *Repository) PathBlob(checksum [32]byte) string
- func (repository *Repository) PathBlobBucket(checksum [32]byte) string
- func (repository *Repository) PathBlobs() string
- func (repository *Repository) PathChunk(checksum [32]byte) string
- func (repository *Repository) PathChunkBucket(checksum [32]byte) string
- func (repository *Repository) PathChunks() string
- func (repository *Repository) PathIndex(checksum [32]byte) string
- func (repository *Repository) PathIndexBucket(checksum [32]byte) string
- func (repository *Repository) PathIndexes() string
- func (repository *Repository) PathLock(indexID uuid.UUID) string
- func (repository *Repository) PathLocks() string
- func (repository *Repository) PathObject(checksum [32]byte) string
- func (repository *Repository) PathObjectBucket(checksum [32]byte) string
- func (repository *Repository) PathObjects() string
- func (repository *Repository) PathPackfile(checksum [32]byte) string
- func (repository *Repository) PathPackfileBucket(checksum [32]byte) string
- func (repository *Repository) PathPackfiles() string
- func (repository *Repository) PathPurge() string
- func (repository *Repository) PathSnapshot(indexID uuid.UUID) string
- func (repository *Repository) PathSnapshotBucket(indexID uuid.UUID) string
- func (repository *Repository) PathSnapshots() string
- func (repository *Repository) PathTmp() string
- func (repository *Repository) PutBlob(checksum [32]byte, data []byte) error
- func (repository *Repository) PutIndex(checksum [32]byte, data []byte) error
- func (repository *Repository) PutLock(indexID uuid.UUID, data []byte) error
- func (repository *Repository) PutPackfile(checksum [32]byte, data []byte) error
- func (repository *Repository) PutSnapshot(indexID uuid.UUID, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository() storage.RepositoryBackend
Types ¶
type Repository ¶
type Repository struct { Repository string // contains filtered or unexported fields }
func (*Repository) CheckBlob ¶
func (repository *Repository) CheckBlob(checksum [32]byte) (bool, error)
func (*Repository) Close ¶
func (repository *Repository) Close() error
func (*Repository) Commit ¶
func (repository *Repository) Commit(indexID uuid.UUID, data []byte) error
func (*Repository) Configuration ¶
func (repository *Repository) Configuration() storage.RepositoryConfig
func (*Repository) Create ¶
func (repository *Repository) Create(location string, config storage.RepositoryConfig) error
func (*Repository) DeleteBlob ¶
func (repository *Repository) DeleteBlob(checksum [32]byte) error
func (*Repository) DeleteIndex ¶
func (repository *Repository) DeleteIndex(checksum [32]byte) error
func (*Repository) DeleteLock ¶
func (repository *Repository) DeleteLock(indexID uuid.UUID) error
func (*Repository) DeletePackfile ¶
func (repository *Repository) DeletePackfile(checksum [32]byte) error
func (*Repository) DeleteSnapshot ¶
func (repository *Repository) DeleteSnapshot(indexID uuid.UUID) error
func (*Repository) GetBlob ¶
func (repository *Repository) GetBlob(checksum [32]byte) ([]byte, error)
func (*Repository) GetBlobs ¶
func (repository *Repository) GetBlobs() ([][32]byte, error)
func (*Repository) GetIndex ¶
func (repository *Repository) GetIndex(checksum [32]byte) ([]byte, error)
func (*Repository) GetIndexes ¶
func (repository *Repository) GetIndexes() ([][32]byte, error)
Indexes
func (*Repository) GetLock ¶
func (repository *Repository) GetLock(indexID uuid.UUID) ([]byte, error)
func (*Repository) GetPackfile ¶
func (repository *Repository) GetPackfile(checksum [32]byte) ([]byte, error)
func (*Repository) GetPackfileSubpart ¶
func (*Repository) GetPackfiles ¶
func (repository *Repository) GetPackfiles() ([][32]byte, error)
func (*Repository) GetSnapshot ¶
func (repository *Repository) GetSnapshot(indexID uuid.UUID) ([]byte, error)
func (*Repository) GetSnapshots ¶
func (repository *Repository) GetSnapshots() ([]uuid.UUID, error)
func (*Repository) Open ¶
func (repository *Repository) Open(location string) error
func (*Repository) PathBlob ¶
func (repository *Repository) PathBlob(checksum [32]byte) string
func (*Repository) PathBlobBucket ¶
func (repository *Repository) PathBlobBucket(checksum [32]byte) string
func (*Repository) PathBlobs ¶
func (repository *Repository) PathBlobs() string
func (*Repository) PathChunk ¶
func (repository *Repository) PathChunk(checksum [32]byte) string
func (*Repository) PathChunkBucket ¶
func (repository *Repository) PathChunkBucket(checksum [32]byte) string
func (*Repository) PathChunks ¶
func (repository *Repository) PathChunks() string
func (*Repository) PathIndex ¶
func (repository *Repository) PathIndex(checksum [32]byte) string
func (*Repository) PathIndexBucket ¶
func (repository *Repository) PathIndexBucket(checksum [32]byte) string
func (*Repository) PathIndexes ¶
func (repository *Repository) PathIndexes() string
func (*Repository) PathLocks ¶
func (repository *Repository) PathLocks() string
func (*Repository) PathObject ¶
func (repository *Repository) PathObject(checksum [32]byte) string
func (*Repository) PathObjectBucket ¶
func (repository *Repository) PathObjectBucket(checksum [32]byte) string
func (*Repository) PathObjects ¶
func (repository *Repository) PathObjects() string
func (*Repository) PathPackfile ¶
func (repository *Repository) PathPackfile(checksum [32]byte) string
func (*Repository) PathPackfileBucket ¶
func (repository *Repository) PathPackfileBucket(checksum [32]byte) string
func (*Repository) PathPackfiles ¶
func (repository *Repository) PathPackfiles() string
func (*Repository) PathPurge ¶
func (repository *Repository) PathPurge() string
func (*Repository) PathSnapshot ¶
func (repository *Repository) PathSnapshot(indexID uuid.UUID) string
func (*Repository) PathSnapshotBucket ¶
func (repository *Repository) PathSnapshotBucket(indexID uuid.UUID) string
func (*Repository) PathSnapshots ¶
func (repository *Repository) PathSnapshots() string
func (*Repository) PathTmp ¶
func (repository *Repository) PathTmp() string
func (*Repository) PutBlob ¶
func (repository *Repository) PutBlob(checksum [32]byte, data []byte) error
func (*Repository) PutIndex ¶
func (repository *Repository) PutIndex(checksum [32]byte, data []byte) error
func (*Repository) PutLock ¶
func (repository *Repository) PutLock(indexID uuid.UUID, data []byte) error
func (*Repository) PutPackfile ¶
func (repository *Repository) PutPackfile(checksum [32]byte, data []byte) error
func (*Repository) PutSnapshot ¶
func (repository *Repository) PutSnapshot(indexID uuid.UUID, data []byte) error
Click to show internal directories.
Click to hide internal directories.