labels

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-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 Labels

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

func New

func New(db *badger.DB) *Labels

func (*Labels) Delete added in v0.3.0

func (ll *Labels) Delete(key, value string) error

Delete removes key value label pair from the storage. If the pair can not be found, no error is returned.

func (*Labels) GetKeys

func (ll *Labels) GetKeys(cb func(k string) bool)

func (*Labels) GetValues

func (ll *Labels) GetValues(key string, cb func(v string) bool)

func (*Labels) Put

func (ll *Labels) Put(key, val string)

func (*Labels) PutLabels added in v0.28.0

func (ll *Labels) PutLabels(labels map[string]string) error

Jump to

Keyboard shortcuts

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