auxiliary

package
v0.0.0-...-2c28433 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const FullName = "AuxiliaryMetadata"

FullName is the Auxiliary Metadata message descriptor's full name. See Remote API: https://github.com/bazelbuild/remote-apis/blob/7f51b3676b5d19df726783d9a861e45d7389b5ae/build/bazel/remote/execution/v2/remote_execution.proto#L1046 It's worth noting that the backend can give this proto message any arbitrary name; however, the client side proto message should strictly use `AuxiliaryMetadata` to receive it. For example, in the unit test, the backend send the proto msg out with name `WorkerAuxiliaryMetadata`, and client receives it as `AuxiliaryMetadata`.

Variables

AuxMsgDescriptor is the message descriptor for Auxiliary Metadata. This variable should be set via SetMessageDescriptor() in reproxy before logger is initialed.

Functions

func FlatRawMsg

func FlatRawMsg(rawMsg []byte) map[string]string

FlatRawMsg decode raw bytes of a protobuf message according to the given message descriptor, returns a flatted map representation of the message.

func SetMessageDescriptor

func SetMessageDescriptor(path string) error

SetMessageDescriptor reads a .pb file for an auxiliary metadata, parse the file to a message descriptor, and returns the message descriptor.

Types

This section is empty.

Jump to

Keyboard shortcuts

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