resultdb

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInvocations

func CreateInvocations(ctx context.Context, builds []*model.Build, opts []CreateOptions) errors.MultiError

CreateInvocations creates resultdb invocations for each build. build.Proto.Infra.Resultdb must not be nil. builds and opts must have the same length and match 1:1.

Note: it will mutate the value of build.Proto.Infra.Resultdb.Invocation and build.ResultDBUpdateToken.

func FinalizeInvocation

func FinalizeInvocation(ctx context.Context, buildID int64) error

FinalizeInvocation calls ResultDB to finalize the build's invocation.

func SetMockRecorder

func SetMockRecorder(ctx context.Context, mock rdbPb.RecorderClient) context.Context

SetMockRecorder set the mock resultDB recorder client for testing purpose.

Types

type CreateOptions

type CreateOptions struct {
	// Whether to mark the ResultDB invocation an export root.
	IsExportRoot bool
}

CreateOptions for each invocation created by CreateInvocations.

Jump to

Keyboard shortcuts

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