keyring

package
v0.0.0-...-7b46ad5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyringTimeOut = errors.New("keyring: timeout")

ErrKeyringTimeOut is returned when the keyring operation takes too long to complete.

Functions

func ClearCredentials

func ClearCredentials(prefix string) error

ClearCredentials removes any existing items in the keychain, it will ignore if not found errors

func DeleteBearer

func DeleteBearer(prefix string) error

func GetBearer

func GetBearer(prefix string) (string, error)

func GetPassword

func GetPassword(prefix string) (string, error)

func GetRefreshToken

func GetRefreshToken(prefix string) (string, error)

func GetUsername

func GetUsername(prefix string) (string, error)

func SetBearer

func SetBearer(prefix, secret string) error

func SetPassword

func SetPassword(prefix, secret string) error

func SetRefreshToken

func SetRefreshToken(prefix, secret string) error

func SetUsername

func SetUsername(prefix, secret string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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