Documentation ¶
Index ¶
- type Auth
- type Config
- func (cfg *Config) CreateContext(name, host string, interactive bool) error
- func (cfg *Config) CreateContextAndSave(name, host string, interactive bool) error
- func (cfg *Config) DeleteContext(name string) bool
- func (cfg *Config) GetContext(name string) *Context
- 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) PromptForContext() (string, error)
- 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 ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Contexts []*Context `json:"contexts" yaml:"contexts"` Services []*Service `json:"services" yaml:"services"` Users []*User `json:"users" yaml:"users"` CurrentContextName string `json:"current_context" yaml:"current_context"` // contains filtered or unexported fields }
func NewEmptyConfig ¶ added in v1.8.11
func (*Config) CreateContext ¶ added in v1.6.1
func (*Config) CreateContextAndSave ¶ added in v1.8.13
func (*Config) DeleteContext ¶ added in v1.6.1
func (*Config) GetContext ¶ added in v1.8.13
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) PromptForContext ¶ added in v1.8.10
func (*Config) SelectContext ¶ added in v1.6.1
func (*Config) UseContext ¶ added in v1.6.1
type Context ¶
type Context struct { Name string `json:"name" yaml:"name"` ServiceName string `json:"service" yaml:"service"` ProjectID string `json:"project_id" yaml:"project_id"` EnvironmentID string `json:"environment_id" yaml:"environment_id"` // contains filtered or unexported fields }
func (*Context) GetService ¶
func (*Context) SetService ¶
Click to show internal directories.
Click to hide internal directories.