commandfile

package module
v0.0.0-...-6e72573 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package commandfile provides common interface to collector input file

  • Copyright (C) 2023 Intel Corporation
  • SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Name    string `default:"test" yaml:"name"`
	Binpath string `default:"." yaml:"bin_path"`
	Timeout int    `default:"300" yaml:"command_timeout"`
}

func (*Arguments) UnmarshalYAML

func (s *Arguments) UnmarshalYAML(unmarshal func(interface{}) error) error

type Command

type Command struct {
	Label     string `yaml:"label"`
	Command   string `yaml:"command"`
	Modprobe  string `yaml:"modprobe"`
	Superuser bool   `default:"false" yaml:"superuser"`
	Run       bool   `default:"false" yaml:"run"`
	Parallel  bool   `default:"false" yaml:"parallel"`
}

func (*Command) UnmarshalYAML

func (s *Command) UnmarshalYAML(unmarshal func(interface{}) error) error

type CommandFile

type CommandFile struct {
	Args     Arguments `yaml:"arguments"`
	Commands []Command `yaml:"commands"`
}

Jump to

Keyboard shortcuts

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