dsl

package
v0.0.0-...-6a3170c Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: GPL-3.0 Imports: 1 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 {
	JobID  string  `yaml:"-"`
	Name   string  `yaml:"name"`
	RunsOn *RunsOn `yaml:"runs-on"`
	Steps  []*Step `yaml:"steps"`
}

type Pipeline

type Pipeline struct {
	Jobs map[string]*Job `yaml:"jobs"`
}

func ParseFromContent

func ParseFromContent(content []byte) (*Pipeline, error)

ParseFromContent parse yaml content into Pipeline dsl.

type RunsOn

type RunsOn struct {
	ContainerImage string `yaml:"container-image"`
	Image          string `yaml:"image"`
}

type Step

type Step struct {
	Name   string   `yaml:"name"`
	Run    []string `yaml:"run"`
	Script string   `yaml:"-"`
	// Don't open this feature now.
	Env map[string]string `yaml:"-"`
}

Jump to

Keyboard shortcuts

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