keyring

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package keyring is a simple wrapper that adds timeouts to the zalando/go-keyring package.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("secret not found in keyring")

Functions

func Delete

func Delete(service, user string) error

Delete secret from keyring.

func Get

func Get(service, user string) (string, error)

Get secret from keyring given service and user name.

func MockInit

func MockInit()

func MockInitWithError

func MockInitWithError(err error)

func Set

func Set(service, user, secret string) error

Set secret in keyring for user.

Types

type TimeoutError

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

func (*TimeoutError) Error

func (e *TimeoutError) Error() string

Jump to

Keyboard shortcuts

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