config

package
v0.0.0-...-a761d9d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WorkflowConfig WorkflowConfig    `yaml:"config"`
	Vars           map[string]string `yaml:"vars"`
	Tasks          []Task            `yaml:"tasks"`
}

func ReadYamlFromFile

func ReadYamlFromFile(filePath string) *Config

type Task

type Task struct {
	Name         string   `yaml:"name"`
	Image        string   `yaml:"image"`
	DockerHive   string   `yaml:"dockerhive"`
	Cmds         []string `yaml:"cmds"`
	Silent       bool     `yaml:"silent"`
	Parallel     bool     `yaml:"parallel"`
	Required     []string `yaml:"required"`
	Timeout      int      `yaml:"timeout"`
	StoponError  bool     `yaml:"stoponerr"`
	Type         string   `yaml:"type"`
	DynamicFile  string   `yaml:"dynamicFile"`
	DynamicRange string   `yaml:"dynamicRange"`
	MaxThreads   int      `yaml:"threads"`
	InputMouts   []string `yaml:"mounts"`
	Inputs       []string `yaml:"inputs"`
}

type WorkflowConfig

type WorkflowConfig struct {
	Name               string `yaml:"name"`
	Author             string `yaml:"author"`
	Usage              string `yaml:"usage"`
	Shell              string `yaml:"shell"`
	DefaultDockerimage string `yaml:"defaultimage"`
	DefaultHive        string `yaml:"hive"`
	EnableLogs         bool   `yaml:"logs"`
}

Jump to

Keyboard shortcuts

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