keyring

package
v2.49.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 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 added in v2.40.0

func MockInit()

func MockInitWithError added in v2.40.0

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