keyring

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

package keyring allows for quick and easy access to the system keyring service.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoResultsFound is returned when no results are found in the keyring
	ErrNoResultsFound = errors.New("no results found")
)

Functions

func DeleteKeyring

func DeleteKeyring(service, account string) error

DeleteKeyring deletes the keyring with the given service and account

func QueryKeyring

func QueryKeyring(service, account string) (string, error)

QueryKeyring queries the keyring for the first item with the given service and account and return the password as a string

func SetKeying

func SetKeying(service, account string, secret []byte) error

SetKeying sets the keyring with the given service, account and secret

Types

This section is empty.

Jump to

Keyboard shortcuts

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