models

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Name       string     `yaml:"name" validate:"required"`
	Src        string     `yaml:"src"`
	Stage      Stage      `yaml:"stage" validate:"required"`
	Variables  []Variable `yaml:"variables"`
	Image      string     `yaml:"image" validate:"required"`
	Script     []string   `yaml:"script"`
	Entrypoint []string   `yaml:"entrypoint"`
	Artifacts  []string   `yaml:"artifacts"`
	Condition  string     `yaml:"condition"`
}

Job represents a single job in a stage

type JobFile

type JobFile struct {
	Stages []Stage `yaml:"stages" validate:"required,dive"`
	Jobs   []Job   `yaml:"jobs" validate:"required,dive"`
}

JobFile represents the dot.yml file

type Stage

type Stage string

type Variable

type Variable map[string]any

Variable represents a job variable as a key-value pair. Variables are defined as an array of key-value pairs, so each Variable map only has 1 entry.

Jump to

Keyboard shortcuts

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