config

package
v0.0.0-...-b56da86 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(target string, insecureTLS bool, cc *CalnexConfig, apply bool) error

Config configures target Calnex with Network/Calnex configs if apply is specified

func Save

func Save(target string, insecureTLS bool, cc *CalnexConfig, saveConfig string) error

Save saves the Network/Calnex configs to file

Types

type CalnexConfig

type CalnexConfig struct {
	Measure        map[api.Channel]MeasureConfig `json:"measure"`
	AntennaDelayNS int                           `json:"antennaDelayNS"`
}

CalnexConfig is a config representation of calnex

type Calnexes

type Calnexes map[string]*CalnexConfig

Calnexes is a map of devices to CalnexConfig

type MeasureConfig

type MeasureConfig struct {
	Target string    `json:"target"`
	Probe  api.Probe `json:"probe"`
	Name   string    `json:"name"`
}

MeasureConfig is a Calnex channel config

Jump to

Keyboard shortcuts

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