Documentation ¶
Index ¶
- Variables
- func CidFromHex(sha string) (cid.Cid, error)
- func GetLocalDir() (string, error)
- func HexFromCid(cid cid.Cid) (string, error)
- type Fetch
- type ObjectProvider
- type Push
- type Remote
- type RemoteHandler
- type Tracker
- func (t *Tracker) AddEntry(hash []byte) error
- func (t *Tracker) Close() error
- func (t *Tracker) Get(refName string) ([]byte, error)
- func (t *Tracker) HasEntry(hash []byte) (bool, error)
- func (t *Tracker) ListPrefixed(prefix string) (map[string]string, error)
- func (t *Tracker) Set(refName string, hash []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotProvided = errors.New("block not provided")
Functions ¶
func GetLocalDir ¶
Types ¶
type Push ¶
type Remote ¶
type Remote struct { Logger *log.Logger Repo *git.Repository Tracker *Tracker Handler RemoteHandler // contains filtered or unexported fields }
func (*Remote) ProcessCommands ¶
type RemoteHandler ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker tracks which hashes are published in IPLD
func NewTracker ¶
func (*Tracker) ListPrefixed ¶
Click to show internal directories.
Click to hide internal directories.