config

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Redacted = "*** redacted ***"

Variables

View Source
var Config = &ProfileT{}

Config points to the current profile

View Source
var ConfigFile string
View Source
var GlobalConfig = &struct {
	Profiles       map[string]*ProfileT
	CurrentProfile string
	ModelLocations []string
}{}

Functions

func DeleteProfile

func DeleteProfile(name string) bool

func GetModelLocations

func GetModelLocations() []string

func Load

func Load()

func RenameProfile

func RenameProfile(name, rename string) error

func Save

func Save()

func SelectProfile

func SelectProfile(name string) bool

func Set

func Set(name, value string) error

func UpdateFromServerProfile

func UpdateFromServerProfile(result *jnode.Node) bool

Types

type ProfileT

type ProfileT struct {
	APIServer        string
	APIToken         string
	TLSNoVerify      bool
	Organization     string
	Email            string
	DefaultClusterID string
}

func (*ProfileT) String

func (c *ProfileT) String() string

Jump to

Keyboard shortcuts

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