secrets

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

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