config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HomeDir holds the users home directory. Automatically detected if not set
	HomeDir string

	// ConfigDir hols the users config directory. Automatically set to $HOME/.config/gopherfarm/ if not set. Automatically created if it does not exist yet.
	ConfigDir string
)

Functions

func WriteCreds

func WriteCreds(c *Creds) error

Types

type Creds

type Creds struct {
	Key *ed25519.PrivateKey
}

func ReadCreds

func ReadCreds() (*Creds, error)

func (*Creds) PrivateKey

func (c *Creds) PrivateKey() *ed25519.PrivateKey

Jump to

Keyboard shortcuts

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