drone

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DronePipeline

type DronePipeline struct{}

func New

func New() *DronePipeline

func (DronePipeline) Convert

func (d DronePipeline) Convert(pipeline *Pipeline) (*transform.Pipeline, error)

func (DronePipeline) ConvertImage

func (d DronePipeline) ConvertImage(image string) string

func (DronePipeline) Transform

func (d DronePipeline) Transform(sources []*transform.Source) ([]*transform.Pipeline, error)

type Pipeline

type Pipeline struct {
	Kind  string  `yaml:"kind"`
	Type  string  `yaml:"type"`
	Name  string  `yaml:"name"`
	Steps []*Step `yaml:"steps"`
}

type Step

type Step struct {
	Name     string   `yaml:"name"`
	Image    string   `yaml:"image"`
	Commands []string `yaml:"commands"`
}

Jump to

Keyboard shortcuts

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