build

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package build provides the API for external builders

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, builder Builder)

Register registers a builder to a given name.

Types

type Builder

type Builder interface {
	WithDefaults(build config.Build) (config.Build, error)
	Build(ctx *context.Context, build config.Build, options Options) error
}

Builder defines a builder.

func For

func For(name string) Builder

For gets the previously registered builder for the given name.

type Options

type Options struct {
	Name    string
	Path    string
	Ext     string
	Target  string
	Goos    string
	Goarch  string
	Goamd64 string
	Goarm   string
	Gomips  string
}

Options to be passed down to a builder.

Jump to

Keyboard shortcuts

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