credentials

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultStore = "_default"

DefaultStore is the id of the store which contains the credentials for backend communication.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Add adds new credentials to the store.
	Add(id string, creds *core.Credentials) error
	// Remove removes credentials from the store.
	Remove(id string) error
	// Get returns the credentials with the given id.
	Get(id string) *core.Credentials
}

Store manage and stores credentials.

func NewStore

func NewStore(directory string) (Store, error)

NewStore creates a new credential store.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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