keyring

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyAccessToken  = "access_token"
	KeyRefreshToken = "refresh_token"
	KeyAPIKey       = "api_key"
)
View Source
const ServiceName = "thoop"

Variables

View Source
var (
	ErrNotFound    = errors.New("keyring: secret not found")
	ErrUnavailable = errors.New("keyring: service unavailable")
)

Functions

This section is empty.

Types

type OSKeyring

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

func NewOSKeyring

func NewOSKeyring() *OSKeyring

func (*OSKeyring) Available

func (k *OSKeyring) Available() bool

func (*OSKeyring) Delete

func (k *OSKeyring) Delete(key string) error

func (*OSKeyring) DeleteAll

func (k *OSKeyring) DeleteAll() error

func (*OSKeyring) Get

func (k *OSKeyring) Get(key string) (string, error)

func (*OSKeyring) Set

func (k *OSKeyring) Set(key, value string) error

type Store

type Store interface {
	Set(key, value string) error
	Get(key string) (string, error)
	Delete(key string) error
	DeleteAll() error
	Available() bool
}

Store defines the interface for secure secret storage.

Jump to

Keyboard shortcuts

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