config

package
v0.0.0-...-1f543fd Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCreateFunc

type AuthCreateFunc func(config json.RawMessage) (AuthFunc, error)

type AuthFunc

type AuthFunc func(username, password string) (pass.Store, error)

type Config

type Config struct {
	AuthType string     `json:"-"`
	PGP      *PGPConfig `json:"pgp"`

	Auth json.RawMessage `json:"auth,omitempty"`
}

func New

func New() *Config

func Open

func Open(path string) (*Config, error)

func (*Config) Backend

func (cfg *Config) Backend() (webpass.Backend, error)

type PGPConfig

type PGPConfig struct {
	PrivateKey string `json:"privatekey,omitempty"`
}

Jump to

Keyboard shortcuts

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