bep

package
v1.508.20 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BESErrors added in v1.503.2

func BESErrors(ctx context.Context) []error

func HasBESBackend added in v1.503.2

func HasBESBackend(ctx context.Context) bool

func InjectBESBackend

func InjectBESBackend(ctx context.Context, besBackend BESBackend) context.Context

InjectBESBackend injects the given BESBackend into the context.

Types

type BESBackend

type BESBackend interface {
	Setup(opts ...grpc.ServerOption) error
	ServeWait(ctx context.Context) error
	GracefulStop()
	Addr() string
	RegisterBesProxy(p besproxy.BESProxy)
	RegisterSubscriber(callback CallbackFn)
	Errors() []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 BESBackendFromContext

func BESBackendFromContext(ctx context.Context) BESBackend

BESBackendFromContext extracts a BESBackend from the given context. It panics if the context doesn't have a BESBackend set up.

func NewBESBackend

func NewBESBackend(ctx context.Context) BESBackend

NewBESBackend creates a new Build Event Protocol backend.

type CallbackFn

type CallbackFn func(*buildeventstream.BuildEvent) 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