Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrValueNotFound = errors.New("extraction value not found")
Functions ¶
This section is empty.
Types ¶
type Extraction ¶
type Extractor ¶
type Extractor func(ctx context.Context, value *authv3.CheckRequest) (Extraction, bool, error)
Extractor is the interface for extracting values from a CheckRequest.
func NewHeader ¶
func NewHeader(config *HeaderConfig) Extractor
func NewMock ¶
func NewMock(cfg *MockConfig) Extractor
func NewRequestMethod ¶
func NewSpiffe ¶
func NewSpiffe(config *SpiffeConfig) Extractor
type ExtractorKit ¶
func (ExtractorKit) Extract ¶
func (ek ExtractorKit) Extract(ctx context.Context, req *authv3.CheckRequest) (*Check, error)
type HeaderConfig ¶
type HeaderConfig struct {
Name string `mapstructure:"name"`
}
func (*HeaderConfig) UnmarshalMap ¶
func (c *HeaderConfig) UnmarshalMap(data any) error
type MockConfig ¶
type SpiffeConfig ¶
type SpiffeConfig struct {
Type spiffeExtractionType `mapstructure:"type"`
}
Click to show internal directories.
Click to hide internal directories.