cfg

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v0.0.3

func Add(config *Cfg, label string, source Source) error

func Delete added in v0.0.3

func Delete(config *Cfg, label string) error

func Save added in v0.0.3

func Save(config *Cfg) error

Types

type Cfg

type Cfg struct {
	Sources           map[string]Source `yaml:"sources"`
	Destination       string            `yaml:"destination"`
	DefaultSourcePath string
}

type Source

type Source struct {
	Source        string `yaml:"source"`
	Insecure      bool   `yaml:"insecure"`
	ApiAddress    string `yaml:"apiaddress"`
	AutodetectApi bool   `yaml:"-"`
	OverrideIp    string `yaml:"-"`
	OverridePort  string `yaml:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL