Documentation ¶
Index ¶
- func Register(name string, factory func() SignerProvider, opts ...registry.Configurer)
- func RegisterVerifier(name string, factory func() VerifierProvider, opts ...registry.Configurer)
- func RegistryEntries() []registry.Entry[SignerProvider]
- func VerifierRegistryEntries() []registry.Entry[VerifierProvider]
- type SignerProvider
- type VerifierProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, factory func() SignerProvider, opts ...registry.Configurer)
func RegisterVerifier ¶ added in v0.3.0
func RegisterVerifier(name string, factory func() VerifierProvider, opts ...registry.Configurer)
func RegistryEntries ¶
func RegistryEntries() []registry.Entry[SignerProvider]
func VerifierRegistryEntries ¶ added in v0.3.0
func VerifierRegistryEntries() []registry.Entry[VerifierProvider]
Types ¶
type SignerProvider ¶
type SignerProvider interface {
Signer(context.Context) (cryptoutil.Signer, error)
}
func NewSignerProvider ¶
func NewSignerProvider(name string, opts ...func(SignerProvider) (SignerProvider, error)) (SignerProvider, error)
type VerifierProvider ¶ added in v0.3.0
type VerifierProvider interface {
Verifier(context.Context) (cryptoutil.Verifier, error)
}
NOTE: This is a temporary interface, and should not be used. It will be deprecated in a future release. The same applies to the functions that use this interface.
func NewVerifierProvider ¶ added in v0.3.0
func NewVerifierProvider(name string, opts ...func(VerifierProvider) (VerifierProvider, error)) (VerifierProvider, error)
Click to show internal directories.
Click to hide internal directories.