Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigInit ¶
func CreateContext ¶
func CreateDefaultContext ¶ added in v1.2.0
func SelectContext ¶
func UseContext ¶
Types ¶
type Config ¶
type Config struct {
Contexts []*Context `yaml:"contexts"`
Services []*Service `yaml:"services"`
Users []*User `yaml:"users"`
CurrentContextName string `yaml:"current_context"`
// contains filtered or unexported fields
}
func (*Config) GetCurrentAuth ¶
func (*Config) GetCurrentContext ¶
func (*Config) GetCurrentService ¶
type Context ¶
type Context struct {
Name string `yaml:"name"`
ServiceName string `yaml:"service"`
UserName string `yaml:"user"`
Project struct {
ProjectID string `yaml:"project_id"`
ProjectToken string `yaml:"project_token"`
} `yaml:"project"`
// contains filtered or unexported fields
}
func (*Context) GetService ¶
func (*Context) SetService ¶
Click to show internal directories.
Click to hide internal directories.