accumulator

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BEValues

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

BEValues is an in-memory data structure created for each new stream of build events. Every event in the stream is passed through BEValues, which extracts common values that many functions are interested in. By holding a reference to BEValues, those functions can obtain those common values without duplicating the BES parsing logic.

N.B. Commonly extracted values should be added here. BEValues is held in memory for the life of the stream, so it should not save every single event in full (that data lives in blobstore).

func NewBEValues

func NewBEValues(invocationID string) *BEValues

func (*BEValues) AddEvent

func (v *BEValues) AddEvent(event *build_event_stream.BuildEvent)

func (*BEValues) Command

func (v *BEValues) Command() string

func (*BEValues) CommitSHA

func (v *BEValues) CommitSHA() string

func (*BEValues) InvocationID

func (v *BEValues) InvocationID() string

func (*BEValues) Pattern

func (v *BEValues) Pattern() string

func (*BEValues) RepoURL

func (v *BEValues) RepoURL() string

func (*BEValues) Role

func (v *BEValues) Role() string

func (*BEValues) WorkspaceIsLoaded

func (v *BEValues) WorkspaceIsLoaded() bool

Jump to

Keyboard shortcuts

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