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 NotifyConfig

type NotifyConfig struct {
	base.DefaultNotify `yaml:",inline"`

	Cmd  string   `yaml:"cmd" json:"cmd" jsonschema:"required,title=Command,description=the command to run"`
	Args []string `yaml:"args,omitempty" json:"args,omitempty" jsonschema:"title=Arguments,description=the arguments for command"`
	Env  []string `` /* 132-byte string literal not displayed */

	CleanEnv bool `` /* 184-byte string literal not displayed */
}

NotifyConfig is the config for shell notify

func (*NotifyConfig) Config

func (c *NotifyConfig) Config(gConf global.NotifySettings) error

Config is the config for shell probe

func (*NotifyConfig) RunShell

func (c *NotifyConfig) RunShell(title, msg string) error

RunShell is the shell for shell notify

Jump to

Keyboard shortcuts

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