build

package
v0.0.0-...-eb599cc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build(revision, workingDir string) (*Release, error)
}

Builder prepares a release

func Choose

func Choose(service *config.Service, target *config.Target) (Builder, error)

Choose returns a builder based on the service and target

type GoBuilder

type GoBuilder struct {
	Service *config.Service
	Target  *config.Target
}

GoBuilder is a builder for golang

func (*GoBuilder) Build

func (b *GoBuilder) Build(revision, workingDir string) (*Release, error)

Build build a go binary for the target architecture and puts it in workingDir

type Release

type Release struct {
	Cmd       string
	Env       env.Environment
	Revision  string
	ShortHash string
}

Release represents something that can be deployed

Jump to

Keyboard shortcuts

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