Documentation
¶
Index ¶
- Constants
- func Ignore(pth string) bool
- type Bucket
- func (b *Bucket) Archive(ctx context.Context) error
- func (b *Bucket) ArchiveFile(ctx context.Context, pth string, name string) error
- func (b *Bucket) Diff(ctx context.Context, pth string) (diff []*dagutils.Change, err error)
- func (b *Bucket) Get(ctx context.Context, c cid.Cid) (ipld.Node, error)
- func (b *Bucket) HashFile(pth string) (cid.Cid, error)
- func (b *Bucket) Path() path.Resolved
- func (b *Bucket) SetCidVersion(v int)
Constants ¶
View Source
const (
// PatchExt is used to ignore tmp files during a pull.
PatchExt = ".buckpatch"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket tracks a local bucket tree structure.
func (*Bucket) ArchiveFile ¶
ArchiveFile creates an archive describing a directory containing reader.
func (*Bucket) Diff ¶
Diff returns a list of changes that are present in pth compared to the current archive.
func (*Bucket) SetCidVersion ¶ added in v1.0.7
CidVersion returns the configured cid version (0 or 1). The default is 1.
Click to show internal directories.
Click to hide internal directories.