config

package
v0.0.0-...-6d8abab Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSSH

func GenerateSSH() error

GenerateSSH generates SSH keypair and stores to config path.

func Load

func Load() (def.GlobalConfig, error)

Load loads the global configuration.

func Path

func Path() string

Path returns the path to the config directory.

func PrivateKey

func PrivateKey() ([]byte, error)

PrivateKey returns the private key.

func PrivateKeyPath

func PrivateKeyPath() string

PrivateKeyPath returns path to the private key.

func PublicKey

func PublicKey() ([]byte, error)

PublicKey returns the public key.

func Save

func Save(c def.GlobalConfig) error

Save saves given global config to file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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