Documentation ¶
Index ¶
- Constants
- type DefaultManager
- func (m DefaultManager) GetEnvironment(name string) (EnvironmentState, error)
- func (m DefaultManager) GetEnvironments() (EnvironmentsState, error)
- func (m DefaultManager) GetSource() string
- func (m DefaultManager) SetEnvironment(env EnvironmentState) error
- func (m DefaultManager) UnsetEnvironment(name string) error
- type EnvironmentAuthState
- type EnvironmentOption
- type EnvironmentState
- type EnvironmentsState
- type Manager
- type State
- type StringEnvironmentOption
- type StringSliceEnvironmentOption
Constants ¶
View Source
const EnvironmentOptionAuthBind string = "auth.bind"
View Source
const EnvironmentOptionAuthOpenCommand string = "auth.open_command"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultManager ¶
type DefaultManager struct {
// contains filtered or unexported fields
}
func NewDefaultManager ¶
func NewDefaultManager(storage storage.Storage, path string) DefaultManager
func (DefaultManager) GetEnvironment ¶
func (m DefaultManager) GetEnvironment(name string) (EnvironmentState, error)
func (DefaultManager) GetEnvironments ¶
func (m DefaultManager) GetEnvironments() (EnvironmentsState, error)
func (DefaultManager) GetSource ¶
func (m DefaultManager) GetSource() string
func (DefaultManager) SetEnvironment ¶
func (m DefaultManager) SetEnvironment(env EnvironmentState) error
func (DefaultManager) UnsetEnvironment ¶ added in v0.9.0
func (m DefaultManager) UnsetEnvironment(name string) error
type EnvironmentAuthState ¶
type EnvironmentAuthState struct { Type string `yaml:"type"` Options interface{} `yaml:"options"` }
func (EnvironmentAuthState) UnmarshalOptions ¶
func (ea EnvironmentAuthState) UnmarshalOptions(typed interface{}) error
type EnvironmentOption ¶ added in v0.4.0
type EnvironmentState ¶
type EnvironmentState struct { URL string `yaml:"url"` CACertificate string `yaml:"ca_certificate,omitempty"` Alias string `yaml:"alias,omitempty"` Auth *EnvironmentAuthState `yaml:"auth,omitempty"` Options map[string]interface{} `yaml:"options,omitempty"` }
func (EnvironmentState) GetCACertificate ¶
func (e EnvironmentState) GetCACertificate() (*x509.Certificate, error)
func (EnvironmentState) GetOption ¶ added in v0.4.0
func (e EnvironmentState) GetOption(option EnvironmentOption, def interface{}) error
func (*EnvironmentState) SetOption ¶ added in v0.4.0
func (e *EnvironmentState) SetOption(key string, val interface{})
type EnvironmentsState ¶
type EnvironmentsState []EnvironmentState
type Manager ¶
type Manager interface { GetSource() string GetEnvironments() (EnvironmentsState, error) GetEnvironment(string) (EnvironmentState, error) SetEnvironment(EnvironmentState) error UnsetEnvironment(string) error }
type State ¶
type State struct {
Environments EnvironmentsState `yaml:"environments,omitempty"`
}
type StringEnvironmentOption ¶ added in v0.12.0
type StringEnvironmentOption struct {
// contains filtered or unexported fields
}
func NewStringEnvironmentOption ¶ added in v0.12.0
func NewStringEnvironmentOption(key string) StringEnvironmentOption
func (*StringEnvironmentOption) GetValue ¶ added in v0.12.0
func (eo *StringEnvironmentOption) GetValue() string
func (*StringEnvironmentOption) Key ¶ added in v0.12.0
func (eo *StringEnvironmentOption) Key() string
func (*StringEnvironmentOption) SetValue ¶ added in v0.12.0
func (eo *StringEnvironmentOption) SetValue(value interface{}) error
type StringSliceEnvironmentOption ¶ added in v0.4.0
type StringSliceEnvironmentOption struct {
// contains filtered or unexported fields
}
func NewStringSliceEnvironmentOption ¶ added in v0.4.0
func NewStringSliceEnvironmentOption(key string) StringSliceEnvironmentOption
func (*StringSliceEnvironmentOption) GetValue ¶ added in v0.4.0
func (eo *StringSliceEnvironmentOption) GetValue() []string
func (*StringSliceEnvironmentOption) Key ¶ added in v0.4.0
func (eo *StringSliceEnvironmentOption) Key() string
func (*StringSliceEnvironmentOption) SetValue ¶ added in v0.4.0
func (eo *StringSliceEnvironmentOption) SetValue(value interface{}) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.