Skip to content

Commit

Permalink
sa: add GetRevokedCertsByShard
Browse files Browse the repository at this point in the history
Which queries for revoked certificates by explicit shard only.

Also, remove explicit shard support from GetRevokedCerts.
  • Loading branch information
jsha committed Jan 14, 2025
1 parent 2e1f733 commit 909464d
Show file tree
Hide file tree
Showing 6 changed files with 752 additions and 550 deletions.
10 changes: 10 additions & 0 deletions mocks/sa.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,16 @@ func (sa *StorageAuthority) GetRevokedCerts(ctx context.Context, _ *sapb.GetRevo
return &ServerStreamClient[corepb.CRLEntry]{}, nil
}

// GetRevokedCertsByShard is a mock
func (sa *StorageAuthorityReadOnly) GetRevokedCertsByShard(ctx context.Context, _ *sapb.GetRevokedCertsByShardRequest, _ ...grpc.CallOption) (sapb.StorageAuthorityReadOnly_GetRevokedCertsClient, error) {
return &ServerStreamClient[corepb.CRLEntry]{}, nil
}

// GetRevokedCertsByShard is a mock
func (sa *StorageAuthority) GetRevokedCertsByShard(ctx context.Context, _ *sapb.GetRevokedCertsByShardRequest, _ ...grpc.CallOption) (sapb.StorageAuthority_GetRevokedCertsClient, error) {
return &ServerStreamClient[corepb.CRLEntry]{}, nil
}

// GetMaxExpiration is a mock
func (sa *StorageAuthorityReadOnly) GetMaxExpiration(_ context.Context, req *emptypb.Empty, _ ...grpc.CallOption) (*timestamppb.Timestamp, error) {
return nil, nil
Expand Down
Loading

0 comments on commit 909464d

Please sign in to comment.