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

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