deviceconfig

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodesDevices

type NodesDevices struct {
	Devices map[string][]SampleDevice `yaml:"devices"`
}

func Generate added in v0.2.2

func Generate(count int) *NodesDevices

func Parse

func Parse(path, resName string) (*NodesDevices, error)

type SampleDevice

type SampleDevice struct {
	ID       string `yaml:"id"`
	Healthy  bool   `yaml:"healthy"`
	NUMANode int    `yaml:"numanode"`
}

func (*SampleDevice) ToHealthy

func (dc *SampleDevice) ToHealthy() string

Jump to

Keyboard shortcuts

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