spaceidindex

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 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 Consider calling AddAll() when trying to add multiple entries as every Add call has to lock the index

func (*Index) AddAll added in v2.19.0

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

AddAll adds multiple entries to the 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