Versions in this module Expand all Collapse all v1 v1.2.0 Aug 21, 2020 v1.1.3 Jun 29, 2020 Changes in this version + var ErrConfigNotFound = errors.New("no match found") + var ErrNoConfigPath = errors.New("no path specified for the config") + var ErrNotAttached = errors.New("no cluster is attached") + var ErrTooManyConfigs = errors.New("multiple matches found") + func Keys() map[string]string + type Cluster struct + func NewCluster(conf *Config) *Cluster + func (c *Cluster) ACSToken() string + func (c *Cluster) Config() *Config + func (c *Cluster) Dir() string + func (c *Cluster) ID() string + func (c *Cluster) Name() string + func (c *Cluster) SetACSToken(acsToken string) + func (c *Cluster) SetID(id string) + func (c *Cluster) SetName(name string) + func (c *Cluster) SetTLS(tls TLS) + func (c *Cluster) SetTimeout(timeout time.Duration) + func (c *Cluster) SetURL(url string) + func (c *Cluster) TLS() (TLS, error) + func (c *Cluster) Timeout() time.Duration + func (c *Cluster) URL() string + type Config struct + func Empty() *Config + func New(opts Opts) *Config + func (c *Config) Fs() afero.Fs + func (c *Config) Get(key string) interface{} + func (c *Config) Keys() []string + func (c *Config) LoadPath(path string) error + func (c *Config) LoadReader(reader io.Reader) error + func (c *Config) LoadTree(tree *toml.Tree) + func (c *Config) Path() string + func (c *Config) Persist() error + func (c *Config) Set(key string, val interface{}) (err error) + func (c *Config) SetPath(path string) + func (c *Config) ToMap() map[string]interface{} + func (c *Config) Unset(key string) + type Manager struct + func NewManager(opts ManagerOpts) *Manager + func (m *Manager) All() (configs []*Config) + func (m *Manager) Attach(config *Config) error + func (m *Manager) Current() (*Config, error) + func (m *Manager) Find(name string, strict bool) (*Config, error) + func (m *Manager) Save(config *Config, id string, caBundle []byte) error + type ManagerOpts struct + Dir string + EnvLookup func(key string) (string, bool) + Fs afero.Fs + type Opts struct + EnvLookup func(key string) (string, bool) + EnvWhitelist map[string]string + Fs afero.Fs + type SSLError struct + func NewSSLError(e error) *SSLError + func (e *SSLError) Error() string + type TLS struct + Insecure bool + RootCAs *x509.CertPool + RootCAsPath string + func (tls *TLS) String() string