command

package
v0.0.0-...-e2fb21b Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Exec    []string      `yaml:"exec" json:"exec"`
	Timeout duration      `yaml:"timeout" json:"timeout"`
	Worker  worker.Worker `yaml:"worker" json:"worker"`
}

func (Command) Run

func (c Command) Run(dir string, contents content.Contents, env map[string]string, connectinfo map[workertype.WorkerType]map[string]instance.Instance) (stdout, stderr bytes.Buffer, result bool)

type Commands

type Commands []Command

func (Commands) GormDBDataType

func (Commands) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (Commands) GormDataType

func (Commands) GormDataType() string

func (Commands) GormValue

func (js Commands) GormValue(ctx context.Context, db *gorm.DB) (expr clause.Expr)

func (*Commands) Scan

func (c *Commands) Scan(value interface{}) (err error)

func (Commands) Value

func (c Commands) Value() (value driver.Value, err error)

Jump to

Keyboard shortcuts

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