keyring

package
v1.116.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(_ context.Context, prefix string) (err error)

Clear removes any entry related to a configuration identified by a prefix.

func Fetch

func Fetch[T any](ctx context.Context, prefix string, cfg *T) error

Fetch fetches a configuration from system's keyring service.

func FetchPointer

func FetchPointer[T any](ctx context.Context, prefix string, cfg T) (err error)

FetchPointer is like Fetch but working on a pointer.

func Store

func Store[T any](ctx context.Context, prefix string, cfg *T) error

Store stores a configuration into system's keyring service.

func StorePointer

func StorePointer[T any](ctx context.Context, prefix string, cfg T) (err error)

StorePointer is like Store but working on a pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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