Documentation
¶
Index ¶
- type Service
- func (imns *Service) AsSource() jose.NonceSource
- func (imns *Service) Nonce(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*noncepb.NonceMessage, error)
- func (imns *Service) Redeem(ctx context.Context, in *noncepb.NonceMessage, opts ...grpc.CallOption) (*noncepb.ValidMessage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
*nonce.NonceService
}
Service implements noncepb.NonceServiceClient for tests.
func (*Service) AsSource ¶
func (imns *Service) AsSource() jose.NonceSource
AsSource returns a wrapper type that implements jose.NonceSource using this inmemory service. This is useful so that tests can get nonces for signing their JWS that will be accepted by the test WFE configured using this service.
func (*Service) Nonce ¶
func (imns *Service) Nonce(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*noncepb.NonceMessage, error)
Nonce implements proto.NonceServiceClient
func (*Service) Redeem ¶
func (imns *Service) Redeem(ctx context.Context, in *noncepb.NonceMessage, opts ...grpc.CallOption) (*noncepb.ValidMessage, error)
Redeem implements proto.NonceServiceClient
Click to show internal directories.
Click to hide internal directories.