config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateExecutionPlan

func ValidateExecutionPlan(plan *ExecutionPlan) error

ValidateExecutionPlan validates the execution plan

Types

type ExecutionPlan

type ExecutionPlan struct {
	Name          string                       `yaml:"name"`
	Version       string                       `yaml:"version"`
	Description   string                       `yaml:"description"`
	WorkDirectory string                       `yaml:"work_directory,omitempty"`
	Platforms     map[string]map[string]string `yaml:"platforms,omitempty"`
	Executors     map[string]ExecutorConfig    `yaml:"executors"`
	Steps         []Step                       `yaml:"steps"`
}

ExecutionPlan represents the top-level structure of a YAML execution plan

func LoadExecutionPlan

func LoadExecutionPlan(path string) (*ExecutionPlan, error)

LoadExecutionPlan loads and parses an execution plan from a YAML file

type ExecutorConfig

type ExecutorConfig map[string]interface{}

ExecutorConfig represents the configuration for an executor

type FileConfig

type FileConfig struct {
	Path     string `yaml:"path"`
	Timeout  int    `yaml:"timeout,omitempty"`
	Retry    int    `yaml:"retry,omitempty"`
	Platform string `yaml:"platform,omitempty"`
	SkipIf   string `yaml:"skip_if,omitempty"`
}

FileConfig represents the configuration for a file to be executed

type Step

type Step struct {
	ID              string       `yaml:"id"`
	Description     string       `yaml:"description"`
	Executor        string       `yaml:"executor"`
	DependsOn       []string     `yaml:"depends_on,omitempty"`
	SkipIf          string       `yaml:"skip_if,omitempty"`
	CheckCommand    string       `yaml:"check_command,omitempty"`
	WorkDirectory   string       `yaml:"work_directory,omitempty"`
	Files           []FileConfig `yaml:"files"`
	TransactionMode string       `yaml:"transaction_mode,omitempty"`
}

Step represents a single execution step

Jump to

Keyboard shortcuts

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