builder

package
v0.0.0-...-378889b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuilderWithMetrics

func BuilderWithMetrics(b Builder, reg prometheus.Registerer) *instrumentedBuilder

Types

type Builder

type Builder interface {
	Build(aur.Pkg) error
}

type MakepkgBuilder

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

MakepkgBuilder implements the Builder interface. It builds the packages using the `makepkg` script.

func NewMakepkgBuilder

func NewMakepkgBuilder(workDir string) *MakepkgBuilder

func (*MakepkgBuilder) Build

func (mb *MakepkgBuilder) Build(pkg aur.Pkg) error

Build takes a package as input and starts building it locally. This requires `makepkg` to be present in the PATH to work. TODO(prmsrswt): Remove dependency on `makepkg` by doing everything natively.

type NoOpBuilder

type NoOpBuilder struct {
	ShouldFail bool
}

NoOpBuilder implements Builder interface. It's just a stub used for testing.

func (*NoOpBuilder) Build

func (nb *NoOpBuilder) Build(aur.Pkg) error

Jump to

Keyboard shortcuts

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