config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *config

Get returns the config

func Load

func Load(file string)

Load loads the config form the provided filepath

func LoadDefault

func LoadDefault()

LoadDefault loads the config from one of the default config locations

func LoadTokens

func LoadTokens() (map[string][]TokenEntry, error)

func SaveTokens

func SaveTokens(tokens map[string][]TokenEntry) error

Types

type TokenEntry

type TokenEntry struct {
	Name   string `json:"name"`
	GPGKey string `json:"gpg_key,omitempty"`
	Token  string `json:"token"`
}

Jump to

Keyboard shortcuts

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