pepper

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 Config added in v0.55.0

type Config struct {
	Keys  map[string]string `fig:"keys"`
	UseID string            `fig:"use"`
}

Config contains Keys configuration parameters.

type Keys

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

Keys contains all configured pepper keys.

func NewKeys

func NewKeys(cfg Config) (*Keys, error)

NewKeys returns an initialized set of pepper keys.

func (*Keys) GetActiveID

func (k *Keys) GetActiveID() string

GetActiveID returns active pepper identifier.

func (*Keys) GetActiveKey

func (k *Keys) GetActiveKey() string

GetActiveKey returns active pepper value.

func (*Keys) GetKey

func (k *Keys) GetKey(pepperID string) string

GetKey returns pepper associated to an identifier.

Jump to

Keyboard shortcuts

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