Documentation ¶
Index ¶
Constants ¶
This section is empty.
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
type EnvironmentAuthState ¶
type EnvironmentAuthState struct { Type string `yaml:"type"` Options interface{} `yaml:"options"` }
func (EnvironmentAuthState) UnmarshalOptions ¶
func (ea EnvironmentAuthState) UnmarshalOptions(typed interface{}) error
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"` }
func (EnvironmentState) GetCACertificate ¶
func (e EnvironmentState) GetCACertificate() (*x509.Certificate, error)
type EnvironmentsState ¶
type EnvironmentsState []EnvironmentState
type Manager ¶
type Manager interface { GetSource() string GetEnvironments() (EnvironmentsState, error) GetEnvironment(string) (EnvironmentState, error) SetEnvironment(EnvironmentState) error }
type State ¶
type State struct {
Environments EnvironmentsState `yaml:"environments,omitempty"`
}
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.