database

package
v0.4.24-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository() storage.Backend

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 *Repository) GetPackfile(checksum [32]byte) (io.Reader, uint64, error)

func (*Repository) GetPackfileBlob

func (repository *Repository) GetPackfileBlob(checksum [32]byte, offset uint32, length uint32) (io.Reader, uint32, error)

func (*Repository) GetPackfiles

func (repository *Repository) GetPackfiles() ([][32]byte, error)

packfiles

func (*Repository) GetState

func (repository *Repository) GetState(checksum [32]byte) (io.Reader, uint64, error)

func (*Repository) GetStates

func (repository *Repository) GetStates() ([][32]byte, error)

states

func (*Repository) Open

func (repository *Repository) Open(location string) error

func (*Repository) PutPackfile

func (repository *Repository) PutPackfile(checksum [32]byte, rd io.Reader, size uint64) error

func (*Repository) PutState

func (repository *Repository) PutState(checksum [32]byte, rd io.Reader, size uint64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL