yaml_parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Hostname string   `yaml:"hostname"`
	Sensors  []string `yaml:"sensors"`
	Broker   struct {
		IP       string `yaml:"ip"`
		ID       string `yaml:"id"`
		Username string `yaml:"username"`
		Password string `yaml:"password"`
	} `yaml:"broker"`
}

type Body

type Body struct {
	Default Agent   `yaml:"default"`
	Agents  []Agent `yaml:"agents"`
}

func ParseFile

func ParseFile(filepath string) Body

Jump to

Keyboard shortcuts

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