Documentation ¶
Index ¶
- Constants
- Variables
- func CopyProfile(sourceName string) error
- func DeleteProfile(name string) bool
- func GetModelLocations() []string
- func Load()
- func Migrate() error
- func RenameProfile(name, rename string) error
- func Save() error
- func SelectProfile(name string) bool
- func Set(name, value string) error
- func UpdateFromServerProfile(result *jnode.Node) bool
- type ProfileT
Constants ¶
View Source
const Redacted = "*** redacted ***"
Variables ¶
View Source
var ( Config = &ProfileT{} ConfigFile string ConfigDir string )
Config points to the current profile
View Source
var GlobalConfig = &struct { Profiles map[string]*ProfileT CurrentProfile string ModelLocations []string }{}
Functions ¶
func CopyProfile ¶ added in v0.4.12
func DeleteProfile ¶
func GetModelLocations ¶
func GetModelLocations() []string
func RenameProfile ¶
func SelectProfile ¶
func UpdateFromServerProfile ¶
func UpdateFromServerProfile(result *jnode.Node) bool
Types ¶
type ProfileT ¶
type ProfileT struct { ProfileName string `json:"-"` APIServer string APIToken string TLSNoVerify bool Organization string Email string }
func (*ProfileT) AssertAPITokenFromConfig ¶ added in v0.4.33
func (*ProfileT) GetAPIServer ¶ added in v0.4.33
func (*ProfileT) GetAPIToken ¶ added in v0.4.33
Click to show internal directories.
Click to hide internal directories.