Back to

Package secrets

Latest Go to latest
Published: Jul 26, 2019 | License: MIT | Module:


Package Files

type Config

type Config struct {
	// contains filtered or unexported fields

Config is an encrypted config store

func New

func New(dir, passphrase string) (*Config, error)

New will load the given file from disk and try to unseal it

func (*Config) Get

func (c *Config) Get(key string) (string, error)

Get loads the requested key from disk

func (*Config) Set

func (c *Config) Set(key, value string) error

Set writes the requested key to disk

func (*Config) Unset

func (c *Config) Unset(key string) error

Unset removes the key from the storage

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier