index

package
v0.0.0-...-01875d1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func (Entry) Less

func (a Entry) Less(item btree.Item) bool

type Index

type Index struct {
	// contains filtered or unexported fields
}

func New

func New() Index

func (*Index) Add

func (in *Index) Add(key string, value string)

func (*Index) Get

func (in *Index) Get(key1 string) (res []string)

func (*Index) Iterate

func (in *Index) Iterate(iterFunc func(string, string) bool)

func (*Index) Keys

func (in *Index) Keys() (res map[string]int)

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

func NewTree

func NewTree() *Tree

func (*Tree) AddLeaf

func (t *Tree) AddLeaf(path []string, id blobs.ID)

func (*Tree) AddSubtree

func (t *Tree) AddSubtree(path []string) *Tree

func (*Tree) GetLeaf

func (t *Tree) GetLeaf(path []string) blobs.ID

func (*Tree) GetTree

func (t *Tree) GetTree(path []string) *Tree

func (*Tree) Leaves

func (t *Tree) Leaves() (leaves []string)

func (*Tree) Subtrees

func (t *Tree) Subtrees() (subtrees []string)

Jump to

Keyboard shortcuts

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