Documentation
¶
Index ¶
- func DeleteProfile(name string)
- func GetConfigPath() string
- func GetCredentials() ([]byte, error)
- func Init(cfgFile, profileName string) error
- func IsDebug() bool
- func ListProfiles() []string
- func Save() error
- func SetDebug(d bool)
- func SetDefaultProfile(name string)
- func SetProfile(p Profile)
- type Config
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteProfile ¶
func DeleteProfile(name string)
DeleteProfile removes a profile from the configuration
func GetCredentials ¶
GetCredentials returns the service account credentials JSON
func SetDefaultProfile ¶
func SetDefaultProfile(name string)
SetDefaultProfile sets the default profile name
Types ¶
type Config ¶
type Config struct {
DefaultProfile string `json:"default_profile"`
Profiles map[string]Profile `json:"profiles"`
}
Config represents the playconsole-cli configuration
Click to show internal directories.
Click to hide internal directories.