keyring

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 6 Imported by: 0

README

go-python-keyring

go module to interface with the python keyring. this requires that keyring executable is located within the default path.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Backend   string
	NoDisplay bool
}

type Keyring

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

func NewKeyring

func NewKeyring(group string, config *Config) *Keyring

NewKeyring returns a new Keyring object

func (*Keyring) Del

func (kr *Keyring) Del(key string) error

Del removes the key from the current group

func (*Keyring) Get

func (kr *Keyring) Get(key string) (string, error)

Get retrieves the value from the key in the current group

func (*Keyring) Set

func (kr *Keyring) Set(key string, value string) error

Set sets the key to value in the current group

Jump to

Keyboard shortcuts

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