shell

package
v0.0.0-...-c3423aa Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package shell is the shell probe package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell struct {
	base.DefaultProbe `yaml:",inline"`
	Command           string   `yaml:"cmd" json:"cmd" jsonschema:"required,title=Command Line,description=Command Line"`
	Args              []string `yaml:"args,omitempty" json:"args,omitempty" jsonschema:"title=Command Line Arguments,description=Command Line Arguments"`
	Env               []string `` /* 150-byte string literal not displayed */
	CleanEnv          bool     `` /* 174-byte string literal not displayed */

	// Output Text Checker
	probe.TextChecker `yaml:",inline"`
	// contains filtered or unexported fields
}

Shell implements a config for shell command (os.Exec)

func (*Shell) Config

func (s *Shell) Config(gConf global.ProbeSettings) error

Config Shell Config Object

func (*Shell) DoProbe

func (s *Shell) DoProbe() (bool, string)

DoProbe return the checking result

func (*Shell) ExportMetrics

func (s *Shell) ExportMetrics()

ExportMetrics export shell metrics

Jump to

Keyboard shortcuts

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