conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocation

func GetLocation() (string, error)

func SetDefaultLocation

func SetDefaultLocation() error

func SetLocation

func SetLocation(file string) error

func Write

func Write() error

func WriteNerdToken

func WriteNerdToken(token string) error

Types

type AuthConfig

type AuthConfig struct {
	APIEndpoint string `json:"api_endpoint"`
	PublicKey   string `json:"public_key"`
}

type Config

type Config struct {
	Auth            AuthConfig `json:"auth"`
	CurrentProject  string     `json:"current_project"`
	NerdToken       string     `json:"nerd_token"`
	NerdAPIEndpoint string     `json:"nerd_api_endpoint"`
}

func Defaults

func Defaults() *Config

func Read

func Read() (*Config, error)

Jump to

Keyboard shortcuts

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