config

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Token = "token"

	AccountID   = "account_id"
	Username    = "username"
	Email       = "email"
	ProjectSlug = "project_slug"

	Projects = "projects"

	ProxyTargetSchema = "proxy_target_schema"
	ProxyTargetHost   = "proxy_target_host"
	ProxyTargetPort   = "proxy_target_port"
	ProxyHost         = "proxy_host"
	ProxyPort         = "proxy_port"
)

Variables

View Source
var GlobalConfigName string
View Source
var ProjectConfigName string
View Source
var ProjectDirectory string

Functions

func GetBool added in v0.1.5

func GetBool(key string) bool

func GetGlobalString added in v0.5.4

func GetGlobalString(key string) string

func GetString

func GetString(key string) string

func GetToken added in v0.1.5

func GetToken() string

func Init

func Init()

func IsLoggedIn added in v0.1.5

func IsLoggedIn() bool

func IsProjectInit added in v0.1.5

func IsProjectInit() bool

func MaybeGetMap added in v0.5.2

func MaybeGetMap(key string) map[string]interface{}

func MaybeGetString added in v0.2.5

func MaybeGetString(key string) string

func SetGlobalConfig added in v0.1.5

func SetGlobalConfig(key string, value interface{})

func SetProjectConfig added in v0.1.5

func SetProjectConfig(key string, value interface{})

func WriteGlobalConfig added in v0.1.5

func WriteGlobalConfig() error

func WriteProjectConfig added in v0.1.5

func WriteProjectConfig() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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