builder

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCanceled = errors.New("build: canceled by context")
)

Functions

This section is empty.

Types

type Build

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

func NewBuild

func NewBuild(definition *entity.BuildDefinition, basePath string) *Build

func (*Build) AddReportEntry

func (b *Build) AddReportEntry(e string)

func (*Build) AddReportEntryf

func (b *Build) AddReportEntryf(f string, a ...interface{})

func (*Build) GetArtifact

func (b *Build) GetArtifact() string

func (*Build) GetArtifactDir

func (b *Build) GetArtifactDir() string

func (*Build) GetBuildDir

func (b *Build) GetBuildDir() string

func (*Build) GetCloneDir

func (b *Build) GetCloneDir() string

func (*Build) GetProjectDir

func (b *Build) GetProjectDir() string

func (*Build) GetReport

func (b *Build) GetReport() string

func (*Build) GetStatus

func (b *Build) GetStatus() entity.BuildStatus

func (*Build) Pack

func (b *Build) Pack(ctx context.Context) error

Pack packs the Build (the content from the build folder) into a zip file and puts the path to the resulting zip file into the artifact field.

func (*Build) SetArtifact

func (b *Build) SetArtifact(a string)

func (*Build) SetStatus

func (b *Build) SetStatus(s entity.BuildStatus)

func (*Build) Setup

func (b *Build) Setup(ctx context.Context) error

Jump to

Keyboard shortcuts

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