models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 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"`
}

type JobFile

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

type Stage

type Stage string

type Variable

type Variable map[string]any

Jump to

Keyboard shortcuts

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