credentials

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCredentialsExist = Error{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Alias      string  `msgpack:"alias"`
	Username   string  `msgpack:"userame"`
	Host       string  `msgpack:"host"`
	Port       int     `msgpack:"port"`
	Password   *string `msgpack:"password,omitempty"`
	Key        []byte  `msgpack:"key,omitempty"`
	Passphrase []byte  `msgpack:"passphrase,omitempty"`
	Source     *string `msgpack:"source,omitempty"`
	Local      bool    `msgpack:"-"`
}

type Error added in v1.1.0

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

func NewCredentialExistsError added in v1.1.0

func NewCredentialExistsError(alias string) Error

func (Error) Error added in v1.1.0

func (e Error) Error() string

func (Error) Is added in v1.1.0

func (e Error) Is(target error) bool

type Manager

type Manager interface {
	Get(alias string) (*Credentials, error)
	Set(cred *Credentials, force bool) error
	List() ([]*Credentials, error)
	Del(alias string) error
	Drop() error
	Done() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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