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 ¶
FinalizeInvocation calls ResultDB to finalize the build's invocation.
func SetMockRecorder ¶
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.
Click to show internal directories.
Click to hide internal directories.