@@ -39,7 +39,7 @@ type RecorderRPC struct {
3939 artifactsResponders map [string ]func (context.Context , any ) (* clientpb.Artifacts , error )
4040 buildConfigResponders map [string ]func (context.Context , any ) (* clientpb.BuildConfig , error )
4141 contextResponders map [string ]func (context.Context , any ) (* clientpb.Context , error )
42- contextStreamResponders map [string ]func (context.Context , any ) (grpc. ServerStreamingClient [clientpb. ContextChunk ] , error )
42+ contextStreamResponders map [string ]func (context.Context , any ) (clientrpc. MaliceRPC_SyncStreamClient , error )
4343 taskContextResponders map [string ]func (context.Context , any ) (* clientpb.TaskContext , error )
4444 taskContextsResponders map [string ]func (context.Context , any ) (* clientpb.TaskContexts , error )
4545 tasksResponders map [string ]func (context.Context , any ) (* clientpb.Tasks , error )
@@ -71,7 +71,7 @@ func NewRecorderRPC() *RecorderRPC {
7171 artifactsResponders : map [string ]func (context.Context , any ) (* clientpb.Artifacts , error ){},
7272 buildConfigResponders : map [string ]func (context.Context , any ) (* clientpb.BuildConfig , error ){},
7373 contextResponders : map [string ]func (context.Context , any ) (* clientpb.Context , error ){},
74- contextStreamResponders : map [string ]func (context.Context , any ) (grpc. ServerStreamingClient [clientpb. ContextChunk ] , error ){},
74+ contextStreamResponders : map [string ]func (context.Context , any ) (clientrpc. MaliceRPC_SyncStreamClient , error ){},
7575 taskContextResponders : map [string ]func (context.Context , any ) (* clientpb.TaskContext , error ){},
7676 taskContextsResponders : map [string ]func (context.Context , any ) (* clientpb.TaskContexts , error ){},
7777 tasksResponders : map [string ]func (context.Context , any ) (* clientpb.Tasks , error ){},
@@ -150,7 +150,7 @@ func (r *RecorderRPC) OnContext(method string, fn func(context.Context, any) (*c
150150 r .contextResponders [method ] = fn
151151}
152152
153- func (r * RecorderRPC ) OnContextStream (method string , fn func (context.Context , any ) (grpc. ServerStreamingClient [clientpb. ContextChunk ] , error )) {
153+ func (r * RecorderRPC ) OnContextStream (method string , fn func (context.Context , any ) (clientrpc. MaliceRPC_SyncStreamClient , error )) {
154154 r .contextStreamResponders [method ] = fn
155155}
156156
@@ -491,7 +491,7 @@ func (r *RecorderRPC) Sync(ctx context.Context, in *clientpb.Sync, opts ...grpc.
491491 return & clientpb.Context {Id : in .GetContextId ()}, nil
492492}
493493
494- func (r * RecorderRPC ) SyncStream (ctx context.Context , in * clientpb.Sync , opts ... grpc.CallOption ) (grpc. ServerStreamingClient [clientpb. ContextChunk ] , error ) {
494+ func (r * RecorderRPC ) SyncStream (ctx context.Context , in * clientpb.Sync , opts ... grpc.CallOption ) (clientrpc. MaliceRPC_SyncStreamClient , error ) {
495495 r .recordPrimary (ctx , "SyncStream" , in )
496496 if responder , ok := r .contextStreamResponders ["SyncStream" ]; ok {
497497 return responder (ctx , in )
@@ -919,6 +919,10 @@ func (r *RecorderRPC) SyncBuild(ctx context.Context, in *clientpb.BuildConfig, o
919919 return r .artifactResponse (ctx , "SyncBuild" , in )
920920}
921921
922+ func (r * RecorderRPC ) ReplayArtifact (ctx context.Context , in * clientpb.Artifact , opts ... grpc.CallOption ) (* clientpb.Artifact , error ) {
923+ return r .artifactResponse (ctx , "ReplayArtifact" , in )
924+ }
925+
922926func (r * RecorderRPC ) ListArtifact (ctx context.Context , in * clientpb.Empty , opts ... grpc.CallOption ) (* clientpb.Artifacts , error ) {
923927 r .recordPrimary (ctx , "ListArtifact" , in )
924928 if responder , ok := r .artifactsResponders ["ListArtifact" ]; ok {
@@ -946,6 +950,10 @@ func (r *RecorderRPC) DownloadArtifact(ctx context.Context, in *clientpb.Artifac
946950 return r .artifactResponse (ctx , "DownloadArtifact" , in )
947951}
948952
953+ func (r * RecorderRPC ) GetArtifactProfile (ctx context.Context , in * clientpb.Artifact , opts ... grpc.CallOption ) (* clientpb.Artifact , error ) {
954+ return r .artifactResponse (ctx , "GetArtifactProfile" , in )
955+ }
956+
949957func (r * RecorderRPC ) UpdateArtifact (ctx context.Context , in * clientpb.Artifact , opts ... grpc.CallOption ) (* clientpb.Artifact , error ) {
950958 return r .artifactResponse (ctx , "UpdateArtifact" , in )
951959}
0 commit comments