github.com/letsencrypt/boulder@v0.20251208.0/test/inmem/ra/ra.go (about) 1 package ra 2 3 import ( 4 "context" 5 6 "github.com/letsencrypt/boulder/ra" 7 rapb "github.com/letsencrypt/boulder/ra/proto" 8 9 "google.golang.org/grpc" 10 "google.golang.org/protobuf/types/known/emptypb" 11 ) 12 13 // RA meets the `rapb.RegistrationAuthorityClient` interface and acts as a 14 // wrapper for an inner `*ra.RegistrationAuthorityImpl` (which in turn meets 15 // the `rapb.RegistrationAuthorityServer` interface). Only methods used by 16 // unit tests need to be implemented. 17 type RA struct { 18 rapb.RegistrationAuthorityClient 19 Impl *ra.RegistrationAuthorityImpl 20 } 21 22 // AdministrativelyRevokeCertificate is a wrapper for `*ra.RegistrationAuthorityImpl.AdministrativelyRevokeCertificate`. 23 func (ra RA) AdministrativelyRevokeCertificate(ctx context.Context, req *rapb.AdministrativelyRevokeCertificateRequest, _ ...grpc.CallOption) (*emptypb.Empty, error) { 24 return ra.Impl.AdministrativelyRevokeCertificate(ctx, req) 25 }