besproxy

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MutateWorkflowsUri

func MutateWorkflowsUri(f *buildeventstream.File, remoteCacheAddress string) bool

func MutateWorkflowsUris

func MutateWorkflowsUris(req *buildv1.PublishBuildToolEventStreamRequest, remoteCacheAddress string) error

Mutate file URIs in the BES on the way out of the CLI to point to the remote cache grpc address instead of the Aspect Workflows runner's remote cache unix socket. this allows external BES consumers that have network access to the remove cache to access test logs from the remote cache.

func NewBesProxy

func NewBesProxy(host string, headers map[string]string, remoteCacheAddress string) *besProxy

Types

type BESProxy

type BESProxy interface {
	CloseSend() error
	Connect() error
	Host() string
	PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) error
	PublishLifecycleEvent(ctx context.Context, req *buildv1.PublishLifecycleEventRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Recv() (*buildv1.PublishBuildToolEventStreamResponse, error)
	Send(req *buildv1.PublishBuildToolEventStreamRequest) error
}

BESProxy 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.

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