builder

package
v0.0.0-...-e1c53df Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package builder builds a pipeline configuration.

Index

Constants

This section is empty.

Variables

View Source
var SkipAll = errors.New("skip everything and stop the pipeline generation")

SkipAll is used as a return value from Rule to indicate that all remaining rules are to be skipped. It is never returned as an error by the Builder.

Functions

func ConfigureDefault

func ConfigureDefault(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigureDefault configures a default step if the system is unable to automatically add any language-specific steps.

func ConfigureDocker

func ConfigureDocker(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigureDocker configures a Docker step.

func ConfigureGo

func ConfigureGo(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigureGo configures a Go step.

func ConfigureNode

func ConfigureNode(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigureNode configures a Node step.

func ConfigurePlatform

func ConfigurePlatform(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigurePlatform configures the platform

func ConfigurePython

func ConfigurePython(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigurePython configures a Python step.

func ConfigureRails

func ConfigureRails(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigureRails configures a Ruby on Rails step.

func ConfigureRuby

func ConfigureRuby(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigureRuby configures a Ruby on Rails step.

func ConfigureRust

func ConfigureRust(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigureRust configures a Rust step.

func ConfigureSwift

func ConfigureSwift(fsys fs.FS, pipeline *spec.Pipeline) error

ConfigureSwift configures a Swift step.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder builds a pipeline configuration.

func New

func New() *Builder

New creates a new pipeline builder.

func NewRules

func NewRules(rules []Rule) *Builder

New creates a new pipeline builder with custom rules.

func (*Builder) Build

func (b *Builder) Build(fsys fs.FS) ([]byte, error)

Build the pipeline configuration.

type Rule

type Rule func(workspace fs.FS, pipeline *spec.Pipeline) error

Rule defines a pipeline build rule.

Jump to

Keyboard shortcuts

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