storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	Hash    plumbing.Hash
	Type    plumbing.ObjectType
	Content []byte
}

type Reference

type Reference struct {
	Name plumbing.ReferenceName
	Hash plumbing.Hash
}

type Storage

type Storage interface {
	StoreReferences(string, []Reference) error
	StoreObjects(string, []Object) error
	ListReferences(string) ([]Reference, error)
	ListObjects(string) ([]Object, error)
	GetObject(string, plumbing.Hash) (Object, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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