model

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHELL_TYPE_POWERSHELL = "powershell"
	SHELL_TYPE_PWSH       = "pwsh"
	SHELL_TYPE_BASH       = "bash"
	SHELL_TYPE_DOCKER     = "docker"
	SHELL_TYPE_SSH        = "ssh"
	SHELL_TYPE_CUSTOM     = "custom"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentDefinition

type ArgumentDefinition struct {
	Description string   `yaml:"description"`
	Default     string   `yaml:"default"`
	Allowed     []string `yaml:"allowed"`
}

type ArgumentMap

type ArgumentMap map[string]*ArgumentDefinition

func (*ArgumentMap) UnmarshalYAML

func (a *ArgumentMap) UnmarshalYAML(v *yaml.Node) error

type Conditional

type Conditional struct {
	If        []VariableMap `yaml:"if"`
	Overwrite *Job          `yaml:"overwrite"`
}

type FlagArray

type FlagArray []string

func (*FlagArray) Set

func (i *FlagArray) Set(value string) error

func (*FlagArray) String

func (i *FlagArray) String() string

type Job

type Job struct {
	Name              string         `yaml:"-"`
	Shell             *Shell         `yaml:"shell"`
	If                []VariableMap  `yaml:"if"`
	Conditional       []*Conditional `yaml:"conditional"`
	AllowFail         bool           `yaml:"allowFail"`
	WorkDir           string         `yaml:"workDir"`
	JobsPre           []string       `yaml:"jobs:pre"`
	JobsPost          []string       `yaml:"jobs:post"`
	JobsFinalize      []string       `yaml:"jobs:finalize"`
	ScriptPre         []string       `yaml:"script:pre"`
	Script            []string       `yaml:"script"`
	ScriptPost        []string       `yaml:"script:post"`
	ScriptFinalize    []string       `yaml:"script:finalize"`
	Variables         VariableMap    `yaml:"variables"`
	VariablesExcluded []string       `yaml:"variablesExcluded"`
	Foreach           []VariableMap  `yaml:"foreach"`
	Arguments         ArgumentMap    `yaml:"arguments"`
}

func (*Job) Overwrite

func (j *Job) Overwrite(overwrite *Job) error

func (*Job) SetDefaults

func (j *Job) SetDefaults()

func (*Job) UnmarshalYAML

func (j *Job) UnmarshalYAML(v *yaml.Node) error

type Shell

type Shell struct {
	Type        string   `yaml:"type"`
	Image       string   `yaml:"image"`
	UidGid      string   `yaml:"uidGid"`
	BootCommand []string `yaml:"bootCommand"`
	Server      string   `yaml:"server"`
}

func (*Shell) SetDefaults

func (e *Shell) SetDefaults()

type VariableMap

type VariableMap map[string]string

Jump to

Keyboard shortcuts

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