config

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Functions

This section is empty.

Types

type LocalConfig added in v0.9.7

type LocalConfig struct {
	// contains filtered or unexported fields
}

Implementation of our Configuration object

func Get added in v0.9.7

func Get() *LocalConfig

Clients should get configs using this function

func (LocalConfig) GetCertPath added in v0.9.7

func (m LocalConfig) GetCertPath() string

func (LocalConfig) GetPrivateKeyPath added in v0.9.7

func (m LocalConfig) GetPrivateKeyPath() string

func (LocalConfig) GetPublicKeyPath added in v0.9.7

func (m LocalConfig) GetPublicKeyPath() string

func (LocalConfig) IsDebug added in v0.9.7

func (m LocalConfig) IsDebug() bool

func (LocalConfig) LoadLogin added in v0.9.7

func (m LocalConfig) LoadLogin() *Login

func (LocalConfig) WriteLogin added in v0.9.7

func (m LocalConfig) WriteLogin(auth string, token string, endpoint string) error

type Login

type Login struct {
	Auth     string `json:"auth"`
	Token    string `json:"token"`
	Endpoint string `json:"endpoint"`
}

func (Login) GetAuth added in v0.9.7

func (login Login) GetAuth() string

func (Login) GetEndpoint added in v0.9.7

func (login Login) GetEndpoint() string

func (Login) GetToken added in v0.9.7

func (login Login) GetToken() string

Jump to

Keyboard shortcuts

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