switchs

package
v1.6.16-beta-3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMetrics

func CreateMetrics(metricName string, tableInfo [][]string, columnNames []string) []prometheus.Metric

func RequestHandler

func RequestHandler(w http.ResponseWriter, r *http.Request)

func SetLogger

func SetLogger(g_logger log.Logger)

Types

type ExporterConfig

type ExporterConfig struct {
	Switchs []ShellConfig `json:"switchs"`
}

type ShellConfig

type ShellConfig struct {
	Name     string     `json:"name"`
	Host     string     `json:"host"`
	User     string     `json:"user"`
	Password string     `json:"password"`
	Mode     string     `json:"mode"`
	Shell    string     `json:"shell"`
	Prompt   string     `json:"prompt"`
	Steps    []StepInfo `json:"steps"`
}

type StepInfo

type StepInfo struct {
	Command        string `json:"command"`
	ScriptFunction string `json:"scriptFunction"`
}

Jump to

Keyboard shortcuts

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