builder

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBuildManager

type FakeBuildManager struct {
	StartFunc func(ctx context.Context, opts *models.BuildOpts) error
	RunFunc   func(ctx context.Context, id uuid.UUID) error
}

func (*FakeBuildManager) Run

func (fb *FakeBuildManager) Run(ctx context.Context, id uuid.UUID) error

func (*FakeBuildManager) Start

func (fb *FakeBuildManager) Start(ctx context.Context, opts *models.BuildOpts) error

type Manager

type Manager struct {
	// BRunner is needed for Run()
	BRunner models.Builder
	// JRunner is needed for Start()
	JRunner models.JobRunner
	// TCheck is needed for Run()
	TCheck models.TagChecker
	// FetcherFactory is needed for Run()
	FetcherFactory func(token string) models.CodeFetcher
	// GitHubTokenKey is needed for Run()
	GitHubTokenKey [32]byte
	// DL is needed for all methods
	DL datalayer.DataLayer
}

Manager is an object that performs high-level management of image builds

func (*Manager) Run

func (m *Manager) Run(ctx context.Context, buildID uuid.UUID) (err error)

Run synchronously executes a build using BuildRunner

func (*Manager) Start

func (m *Manager) Start(ctx context.Context, opts *models.BuildOpts) error

Start starts a single build using JobRunner and waits for the build to begin running, or returns error

Jump to

Keyboard shortcuts

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