secrets

package module
v0.0.0-...-523fc37 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Functions

func GetSecret

func GetSecret(label string) string

Types

type Credential

type Credential struct {
	URL      string
	Username string
	Password string
}

func GetCredential

func GetCredential(label string) (*Credential, error)

type Session

type Session struct {
	Conn           *dbus.Conn
	SecretsService keyring.SecretService
	Session        keyring.Session
}

func NewSession

func NewSession() (*Session, error)

func (*Session) Close

func (s *Session) Close() error

func (*Session) GetCredential

func (s *Session) GetCredential(label string) (*Credential, error)

func (*Session) GetSecret

func (s *Session) GetSecret(label string) (string, error)

func (*Session) Search

func (s *Session) Search(search map[string]string) ([]keyring.Item, []keyring.Item, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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