Documentation ¶
Index ¶
- Constants
- Variables
- type Cluster
- type Config
- func (conf Config) Cluster() (Cluster, error)
- func (conf Config) Conn() (cst Cluster, usr User, err error)
- func (conf Config) Ctx() (Context, error)
- func (conf *Config) Open(path string) error
- func (conf Config) Save(path string) error
- func (conf *Config) SetContext(ctx string) error
- func (conf Config) User() (User, error)
- func (conf *Config) Validate() error
- type Context
- type Settings
- type User
- type Users
Constants ¶
View Source
const ( BackupDir = ".backup" MappingDir = ".mapping" QueryDir = ".query" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version semver.Version `yaml:"version"` Home string `yaml:"home"` Settings Settings `yaml:"settings,omitempty"` Users Users `yaml:"users,omitempty"` Clusters map[string]Cluster `yaml:"clusters"` Contexts map[string]Context `yaml:"contexts"` Context string `yaml:"context"` }
func (*Config) SetContext ¶
Click to show internal directories.
Click to hide internal directories.