actuator

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPipeline

func RunPipeline(ctx context.Context, pipeline *models.Pipeline, resChan chan *models.Result)

执行流水线

func RunStep added in v0.5.0

运行任务

Types

type Contract

type Contract interface {
	Exec(ctx context.Context) *models.TaskRecords
}

type Hook

type Hook struct {
	Url     string
	Method  string
	Content string
}

func (*Hook) Exec

func (actuator *Hook) Exec(ctx context.Context) *models.TaskRecords

type Http

type Http struct {
	Url     string
	Method  string
	Content string
}

func (*Http) Exec

func (actuator *Http) Exec(ctx context.Context) *models.TaskRecords

type Mail

type Mail struct {
	Mail *notify.Mail
}

func (*Mail) Exec

func (actuator *Mail) Exec(ctx context.Context) *models.TaskRecords

type Shell

type Shell struct {
	User    string
	Env     []string
	Dir     string
	Command string
}

func (*Shell) Exec

func (actuator *Shell) Exec(ctx context.Context) *models.TaskRecords

Exec Execute shell tasks

Jump to

Keyboard shortcuts

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