Documentation ¶
Index ¶
- func PromptForContext(cfg *Config) (string, error)
- type Auth
- type Config
- func (cfg *Config) CreateContext(name, host string, interactive bool) error
- func (cfg *Config) CreateContextNoPrompt(name, url string) error
- func (cfg *Config) CreateDefaultContext(interactive bool) error
- func (cfg *Config) DeleteContext(name string) bool
- func (cfg *Config) GetCurrentAuth() *Auth
- func (cfg *Config) GetCurrentContext() *Context
- func (cfg *Config) GetCurrentService() *Service
- func (cfg *Config) GetEnvironment() string
- func (cfg *Config) GetProject() string
- func (cfg *Config) GetService(name string) (*Service, error)
- func (cfg *Config) GetUser(name string) (*User, error)
- func (cfg *Config) Minify() *Config
- func (cfg Config) Save() error
- func (cfg *Config) SelectContext() error
- func (cfg *Config) UseContext(name string) error
- type Context
- type Service
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptForContext ¶ added in v1.7.0
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) CreateContext ¶ added in v1.6.1
func (*Config) CreateContextNoPrompt ¶ added in v1.7.3
func (*Config) CreateDefaultContext ¶ added in v1.6.1
func (*Config) DeleteContext ¶ added in v1.6.1
func (*Config) GetCurrentAuth ¶
func (*Config) GetCurrentContext ¶
func (*Config) GetCurrentService ¶
func (*Config) GetEnvironment ¶ added in v1.6.0
func (*Config) GetProject ¶ added in v1.5.3
func (*Config) GetService ¶ added in v1.7.0
func (*Config) SelectContext ¶ added in v1.6.1
func (*Config) UseContext ¶ added in v1.6.1
type Context ¶
type Context struct { Name string `yaml:"name"` ServiceName string `yaml:"service"` ProjectID string `yaml:"project_id"` EnvironmentID string `yaml:"environment_id"` // contains filtered or unexported fields }
func (*Context) GetService ¶
func (*Context) SetService ¶
Click to show internal directories.
Click to hide internal directories.