types

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultErrorDir      = "./logs/local_command"
	DefaultErrorFilename = "errors.txt"
	DefaultTimeout       = time.Minute * 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Command string            `yaml:"command"`
	Script  string            `yaml:"script"`
	Args    []string          `yaml:"args"`
	Env     map[string]string `yaml:"env"`
	Timeout time.Duration     `yaml:"timeout"`
	Output  Output            `yaml:"output"`
}

type Error

type Error struct {
	Record   bool   `yaml:"record"`
	Dir      string `yaml:"dir"`
	Filename string `yaml:"filename"`
}

type InputConfig

type InputConfig struct {
	Data []Command `yaml:"data"`
}

InputConfig struct

type Output

type Output struct {
	Dir      string `yaml:"dir"`
	Filename string `yaml:"filename"`
	Append   bool   `yaml:"append"`
}

type ProviderConfig

type ProviderConfig struct {
	Timeout time.Duration `yaml:"timeout"`
	Error   Error         `yaml:"error"`
}

ProviderConfig struct

func (*ProviderConfig) UpdateDefaults

func (pc *ProviderConfig) UpdateDefaults()

Jump to

Keyboard shortcuts

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