Documentation
¶
Index ¶
- type Config
- func (config *Config) Create(name string, storeType string) *Config
- func (config *Config) Delete(name string) *Config
- func (config *Config) Load(data io.Reader) error
- func (config *Config) Save() error
- func (config *Config) SaveFrom(dest io.Writer) error
- func (config *Config) String() string
- func (config *Config) Target(name string) (*Target, error)
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Targets map[string]Target `yaml:"targets"`
// contains filtered or unexported fields
}
Config holds configuration data for various targets.
func NewFromFile ¶
func (*Config) Load ¶
Load reads a provided data source that is expected to contain yaml that can be directly unmarshalled into File field of Config.
func (*Config) SaveFrom ¶
SaveFrom renders the current configuration as YAML and writes it to a consumer specified io.Writer.
Click to show internal directories.
Click to hide internal directories.