Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { // Open returns a handle on an existing object keyed by the given object // ID. It returns an error if that file does not already exist. Open(oid plumbing.Hash) (f io.ReadCloser, err error) // Exists(name plumbing.Hash) error // Search(prefix plumbing.Hash) (plumbing.Hash, error) // Close closes the filesystem, after which no more operations are // allowed. Close() error }
func MultiStorage ¶
type WritableStorage ¶
type WritableStorage interface { Storage HashTo(ctx context.Context, r io.Reader, size int64) (oid plumbing.Hash, err error) Unpack(oid plumbing.Hash, r io.Reader) (err error) WriteEncoded(e object.Encoder) (oid plumbing.Hash, err error) LooseObjects() ([]plumbing.Hash, error) PruneObject(ctx context.Context, oid plumbing.Hash) error PruneObjects(ctx context.Context, largeSize int64) ([]plumbing.Hash, int64, error) }
Click to show internal directories.
Click to hide internal directories.