setup

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BusSetup

type BusSetup struct {
	Bus             *logbus.Bus
	ConsoleWriter   *writersub.WriterSub
	Formatter       *formatter.Formatter
	SolverMonitor   *solvermon.SolverMonitor
	BusDebugWriter  *writersub.RawWriterSub
	LogStreamer     *ship.LogShipper
	InitialManifest *logstream.RunManifest
	// contains filtered or unexported fields
}

BusSetup is a helper for setting up a logbus.Bus.

func New

func New(ctx context.Context, bus *logbus.Bus, debug, verbose, displayStats, forceColor, noColor, disableOngoingUpdates bool, busDebugFile, buildID string, execStatsTracker *execstatssummary.Tracker, isGitHubActions bool) (*BusSetup, error)

New creates a new BusSetup.

func (*BusSetup) Close

func (bs *BusSetup) Close(ctx context.Context) error

Close the bus setup & gather all errors.

func (*BusSetup) DumpManifestToFile added in v0.7.0

func (bs *BusSetup) DumpManifestToFile(path string) error

DumpManifestToFile dumps the manifest to the given file.

func (*BusSetup) LogStreamerStarted added in v0.7.5

func (bs *BusSetup) LogStreamerStarted() bool

LogStreamerStarted returns true if the log streamer has been started.

func (*BusSetup) SetCI added in v0.8.4

func (bs *BusSetup) SetCI(isCI bool)

SetCI tracks whether this build is being run in a CI environment.

func (*BusSetup) SetDefaultPlatform added in v0.7.0

func (bs *BusSetup) SetDefaultPlatform(platform string)

SetDefaultPlatform sets the default platform of the build.

func (*BusSetup) SetGitAuthor added in v0.8.4

func (bs *BusSetup) SetGitAuthor(gitAuthor, gitCommitEmail string)

SetGitAuthor records the Git author information on the initial manifest.

func (*BusSetup) SetOrgAndProject added in v0.7.0

func (bs *BusSetup) SetOrgAndProject(orgName, projectName string)

SetOrgAndProject sets the org and project for the manifest.

func (*BusSetup) StartLogStreamer

func (bs *BusSetup) StartLogStreamer(c *cloud.Client)

StartLogStreamer starts a LogStreamer for the given build. The LogStreamer streams logs to the cloud.

Jump to

Keyboard shortcuts

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