spaceidindex

package
v2.16.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

Index holds space id indexes

func New

func New(root, name string) *Index

New returns a new index instance

func (*Index) Add

func (i *Index) Add(index, key string, value string) error

Add adds an entry to an index

func (*Index) Init

func (i *Index) Init() error

Init initializes the index and makes sure it can be used

func (*Index) Load

func (i *Index) Load(index string) (map[string]string, error)

Load returns the content of an index

func (*Index) Remove

func (i *Index) Remove(index, key string) error

Remove removes an entry from the index

Jump to

Keyboard shortcuts

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