Documentation
¶
Index ¶
- type Fake
- func (f *Fake) Generate(ctx context.Context, req *jwt.Request) (string, error)
- func (f *Fake) JWKS() jwk.Set
- func (f *Fake) JWTSignatureAlgorithm() jwa.KeyAlgorithm
- func (f *Fake) SignIdentity(ctx context.Context, req *ca.SignRequest) ([]*x509.Certificate, error)
- func (f *Fake) TrustAnchors() []byte
- func (f *Fake) WithGenerateJWT(fn func(context.Context, *jwt.Request) (string, error)) *Fake
- func (f *Fake) WithJWKS(fn func() jwk.Set) *Fake
- func (f *Fake) WithJWTSignatureAlgorithm(fn func() jwa.KeyAlgorithm) *Fake
- func (f *Fake) WithSignIdentity(fn func(context.Context, *ca.SignRequest) ([]*x509.Certificate, error)) *Fake
- func (f *Fake) WithTrustAnchors(fn func() []byte) *Fake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
// contains filtered or unexported fields
}
func (*Fake) JWTSignatureAlgorithm ¶
func (f *Fake) JWTSignatureAlgorithm() jwa.KeyAlgorithm
func (*Fake) SignIdentity ¶
func (f *Fake) SignIdentity(ctx context.Context, req *ca.SignRequest) ([]*x509.Certificate, error)
func (*Fake) TrustAnchors ¶
func (*Fake) WithGenerateJWT ¶
func (*Fake) WithJWTSignatureAlgorithm ¶
func (f *Fake) WithJWTSignatureAlgorithm(fn func() jwa.KeyAlgorithm) *Fake
func (*Fake) WithSignIdentity ¶
func (f *Fake) WithSignIdentity(fn func(context.Context, *ca.SignRequest) ([]*x509.Certificate, error)) *Fake
func (*Fake) WithTrustAnchors ¶
Click to show internal directories.
Click to hide internal directories.