Documentation ¶
Index ¶
- func NewRepository() storage.Backend
- type Repository
- func (repository *Repository) Close() error
- func (repository *Repository) Commit(snapshotID [32]byte, data []byte) error
- func (repository *Repository) Configuration() storage.Configuration
- func (repository *Repository) Create(location string, config storage.Configuration) error
- func (repository *Repository) DeletePackfile(checksum [32]byte) error
- func (repository *Repository) DeleteState(checksum [32]byte) error
- func (repository *Repository) GetPackfile(checksum [32]byte) (io.Reader, uint64, error)
- func (repository *Repository) GetPackfileBlob(checksum [32]byte, offset uint32, length uint32) (io.Reader, uint32, error)
- func (repository *Repository) GetPackfiles() ([][32]byte, error)
- func (repository *Repository) GetState(checksum [32]byte) (io.Reader, uint64, error)
- func (repository *Repository) GetStates() ([][32]byte, error)
- func (repository *Repository) Open(location string) error
- func (repository *Repository) PutPackfile(checksum [32]byte, rd io.Reader, size uint64) error
- func (repository *Repository) PutState(checksum [32]byte, rd io.Reader, size uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
Types ¶
type Repository ¶
type Repository struct { Repository string // contains filtered or unexported fields }
func (*Repository) Close ¶
func (repository *Repository) Close() error
func (*Repository) Commit ¶
func (repository *Repository) Commit(snapshotID [32]byte, data []byte) error
func (*Repository) Configuration ¶
func (repository *Repository) Configuration() storage.Configuration
func (*Repository) Create ¶
func (repository *Repository) Create(location string, config storage.Configuration) error
func (*Repository) DeletePackfile ¶
func (repository *Repository) DeletePackfile(checksum [32]byte) error
func (*Repository) DeleteState ¶
func (repository *Repository) DeleteState(checksum [32]byte) error
func (*Repository) GetPackfile ¶
func (*Repository) GetPackfileBlob ¶
func (*Repository) GetPackfiles ¶
func (repository *Repository) GetPackfiles() ([][32]byte, error)
packfiles
func (*Repository) Open ¶
func (repository *Repository) Open(location string) error
func (*Repository) PutPackfile ¶
Click to show internal directories.
Click to hide internal directories.