keystore

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Store(service, key string, secret []byte) error
	Load(service, key string) ([]byte, error)
	Delete(service, key string) error
}

func New

func New() (Backend, error)

type KeyringBackend

type KeyringBackend struct{}

func (*KeyringBackend) Delete

func (k *KeyringBackend) Delete(service, key string) error

func (*KeyringBackend) Load

func (k *KeyringBackend) Load(service, key string) ([]byte, error)

func (*KeyringBackend) Store

func (k *KeyringBackend) Store(service, key string, secret []byte) error

type TextBackend

type TextBackend struct{}

func (*TextBackend) Delete

func (t *TextBackend) Delete(service, key string) error

func (*TextBackend) Load

func (t *TextBackend) Load(service, key string) ([]byte, error)

func (*TextBackend) Store

func (t *TextBackend) Store(service, key string, secret []byte) error

Jump to

Keyboard shortcuts

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