check_point

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckPoint

type CheckPoint struct {
	Message      string           `yaml:"message" json:"message"`
	Weight       float32          `yaml:"weight" json:"weight"`
	Commands     command.Commands `yaml:"commands" json:"commands,omitempty"`
	Dependencies map[string][]int `yaml:"dependencies" json:"dependencies,omitempty"`
	Correct      bool             `yaml:"-" json:"correct"`
}

func (CheckPoint) Run

func (c CheckPoint) Run(name string, index int, dir string, contents content.Contents, env map[string]string, connectinfo map[workertype.WorkerType]map[string]instance.Instance, checkpoints CheckPoints, result map[string]map[int]CheckPoint) (stdout, stderr bytes.Buffer)

type CheckPoints

type CheckPoints map[string][]CheckPoint

func (CheckPoints) GormDBDataType

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

func (CheckPoints) GormDataType

func (CheckPoints) GormDataType() string

func (CheckPoints) GormValue

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

func (*CheckPoints) Scan

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

func (CheckPoints) Value

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

Jump to

Keyboard shortcuts

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