actuator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "inner:"

Variables

View Source
var Trace = atomic.Bool{}

Trace 是否打印日志

Functions

This section is empty.

Types

type Actuator

type Actuator interface {
	Name() string
	Run(ctx context.Context) error
	String() string
}

type Cmd

type Cmd struct {
	Setup   func(cmd *exec.Cmd)
	CmdName string
	Args    []string
	// contains filtered or unexported fields
}

func (*Cmd) ExitCode

func (c *Cmd) ExitCode() int

func (*Cmd) Name

func (c *Cmd) Name() string

func (*Cmd) Run

func (c *Cmd) Run(ctx context.Context) error

func (*Cmd) String

func (c *Cmd) String() string

type Config

type Config struct {
	Name string
	Dir  string
	Args []string
	Env  []string
	// contains filtered or unexported fields
}

func (*Config) ExitCode

func (r *Config) ExitCode() int

func (*Config) Run

func (r *Config) Run(ctx context.Context) (err error)

func (*Config) String

func (r *Config) String() string

type Echo1

type Echo1 struct {
	Args []string
}

Echo1 测试用的命令

func (*Echo1) Name

func (e *Echo1) Name() string

func (*Echo1) Run

func (e *Echo1) Run(ctx context.Context) error

func (*Echo1) String

func (e *Echo1) String() string

type FindExec

type FindExec struct {
	Args []string
	// contains filtered or unexported fields
}

FindExec 查找指定文件名,名在其目录下执行执行子命令

func (*FindExec) Name

func (fe *FindExec) Name() string

func (*FindExec) Run

func (fe *FindExec) Run(ctx context.Context) error

func (*FindExec) String

func (fe *FindExec) String() string

Jump to

Keyboard shortcuts

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