config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 10 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 {
	Tasks       map[string]Task       `json:"tasks"`
	Credentials map[string]Credential `json:"credentials"`
}

func NewConfig

func NewConfig(filename string) *Config

func (*Config) PrettyPrint

func (config *Config) PrettyPrint(tabSize int) string

type Credential

type Credential struct {
	Provider    string          `json:"provider"`
	RawSettings json.RawMessage `json:"settings"`
}

type Task

type Task struct {
	Name         string              `json:"name"`
	Subnets      []string            `json:"subnets"`
	MACAddresses []net.HardwareAddr  `json:"mac_address"`
	Endpoints    map[string][]string `json:"endpoints"`
}

func (*Task) UnmarshalJSON

func (task *Task) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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