Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDuplicatedAttribute = errors.New("provider: duplicated attribute")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `json:"host" yaml:"host"`
Info ptypes.Info `json:"info" yaml:"info"`
Attributes tattr.Attributes `json:"attributes" yaml:"attributes"`
}
Config is the struct that stores provider config
func ReadConfigPath ¶
ReadConfigPath reads and parses file
func (Config) GetAttributes ¶
func (c Config) GetAttributes() tattr.Attributes
GetAttributes returns config attributes into key value pairs
Click to show internal directories.
Click to hide internal directories.