config

package
v0.23.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

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.ProviderInfo `json:"info" yaml:"info"`
	Attributes types.Attributes    `json:"attributes" yaml:"attributes"`
}

Config is the struct that stores provider config

func ReadConfigPath

func ReadConfigPath(path string) (Config, error)

ReadConfigPath reads and parses file

func (Config) GetAttributes

func (c Config) GetAttributes() types.Attributes

GetAttributes returns config attributes into key value pairs

Jump to

Keyboard shortcuts

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