config

package
v0.0.0-...-e391bab Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.Attribute   `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.Attribute

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