bep

package
v1.202547.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BESErrors

func BESErrors(ctx context.Context) []error

func HasBESInterceptor

func HasBESInterceptor(ctx context.Context) bool

func HasInterceptor

func HasInterceptor(ctx context.Context) bool

func InjectBESInterceptor

func InjectBESInterceptor(ctx context.Context, besInterceptor BESInterceptor) context.Context

InjectBESInterceptor injects the given BESInterceptor into the context.

Types

type BESBackend

type BESBackend interface {
	BESInterceptor
	Addr() string
	Setup(opts ...grpc.ServerOption) error
}

BESBackend implements a Build Event Protocol backend to be passed to the `bazel build` command so that the Aspect plugins can register as subscribers to the build events.

func NewBESBackend

func NewBESBackend() BESBackend

NewBESBackend creates a new Build Event Protocol backend.

type BESInterceptor

type BESInterceptor interface {
	// Start anything needed in the background for the lifetime of the interceptor.
	ServeWait(ctx context.Context) error

	// Stop and cleanup.
	GracefulStop()

	// Args added to the bazel command line.
	Args() []string

	Errors() []error

	RegisterBesProxy(ctx context.Context, p besproxy.BESProxy)

	RegisterSubscriber(callback CallbackFn, multiThreaded bool)
}

func BESInterceptorFromContext

func BESInterceptorFromContext(ctx context.Context) BESInterceptor

InjectBESInterceptor injects the given BESInterceptor into the context.

type BESPipeInterceptor

type BESPipeInterceptor interface {
	BESInterceptor
	Setup() error
}

func NewBESPipe

func NewBESPipe(buildId, invocationId string) (BESPipeInterceptor, error)

type CallbackFn

type CallbackFn func(*buildeventstream.BuildEvent, int64, string) error

CallbackFn is the signature for the callback function used by the subscribers of the Build Event Protocol events.

Directories

Path Synopsis
Package mock contains generated files.
Package mock contains generated files.

Jump to

Keyboard shortcuts

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