const mockAnnotationKey … var _ … type pkcs11RemoteService … // NewPKCS11RemoteService creates a new PKCS11 remote service with SoftHSMv2 configuration file and keyID func NewPKCS11RemoteService(configFilePath, keyID string) (service.Service, error) { … } func (s *pkcs11RemoteService) Encrypt(ctx context.Context, uid string, plaintext []byte) (*service.EncryptResponse, error) { … } func (s *pkcs11RemoteService) Decrypt(ctx context.Context, uid string, req *service.DecryptRequest) ([]byte, error) { … } func (s *pkcs11RemoteService) Status(ctx context.Context) (*service.StatusResponse, error) { … }