config

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 3 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"`
	Attributes []sdk.Attribute `json:"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() []sdk.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