Documentation ¶
Index ¶
- Constants
- type CertExtractor
- func (ce *CertExtractor) Close()
- func (ce *CertExtractor) DefaultSpec() interface{}
- func (ce *CertExtractor) Description() string
- func (ce *CertExtractor) Handle(ctx httpcontext.HTTPContext) string
- func (ce *CertExtractor) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)
- func (ce *CertExtractor) Init(filterSpec *httppipeline.FilterSpec)
- func (ce *CertExtractor) Kind() string
- func (ce *CertExtractor) Results() []string
- func (ce *CertExtractor) Status() interface{}
- type Spec
Constants ¶
View Source
const (
// Kind is the kind of CertExtractor.
Kind = "CertExtractor"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertExtractor ¶
type CertExtractor struct {
// contains filtered or unexported fields
}
CertExtractor extracts given field from TLS certificates and sets it to request headers.
func (*CertExtractor) DefaultSpec ¶
func (ce *CertExtractor) DefaultSpec() interface{}
DefaultSpec returns the default spec of CertExtractor.
func (*CertExtractor) Description ¶
func (ce *CertExtractor) Description() string
Description returns the description of CertExtractor.
func (*CertExtractor) Handle ¶
func (ce *CertExtractor) Handle(ctx httpcontext.HTTPContext) string
Handle retrieves header values and sets request headers.
func (*CertExtractor) Inherit ¶
func (ce *CertExtractor) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)
Inherit inherits previous generation of CertExtractor.
func (*CertExtractor) Init ¶
func (ce *CertExtractor) Init(filterSpec *httppipeline.FilterSpec)
Init initializes CertExtractor.
func (*CertExtractor) Kind ¶
func (ce *CertExtractor) Kind() string
Kind returns the kind of CertExtractor.
func (*CertExtractor) Results ¶
func (ce *CertExtractor) Results() []string
Results returns the results of CertExtractor.
type Spec ¶
type Spec struct { CertIndex int16 `yaml:"certIndex" jsonschema:"required"` Target string `yaml:"target" jsonschema:"required,enum=subject,enum=issuer"` // Different field options listed here https://pkg.go.dev/crypto/x509/pkix#Name Field string `` /* 186-byte string literal not displayed */ HeaderKey string `yaml:"headerKey" jsonschema:"required"` }
Spec describes the CertExtractor.
Click to show internal directories.
Click to hide internal directories.