github.com/letsencrypt/boulder@v0.20251208.0/sa/proto/subsets.go (about) 1 // Copied from the auto-generated sa_grpc.pb.go 2 3 package proto 4 5 import ( 6 context "context" 7 8 grpc "google.golang.org/grpc" 9 emptypb "google.golang.org/protobuf/types/known/emptypb" 10 11 proto "github.com/letsencrypt/boulder/core/proto" 12 ) 13 14 // StorageAuthorityCertificateClient is a subset of the sapb.StorageAuthorityClient interface that only reads and writes certificates 15 type StorageAuthorityCertificateClient interface { 16 AddSerial(ctx context.Context, in *AddSerialRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 17 AddPrecertificate(ctx context.Context, in *AddCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 18 AddCertificate(ctx context.Context, in *AddCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 19 GetCertificate(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.Certificate, error) 20 GetLintPrecertificate(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.Certificate, error) 21 }