Documentation
¶
Index ¶
- type Config
- type Plugin
- func (p *Plugin) Config() any
- func (p *Plugin) Handler(next http.Handler) http.Handler
- func (p *Plugin) Init() error
- func (p *Plugin) MaterializeScopedSecrets(ctx context.Context, access base.ScopedSecretAccess) error
- func (p *Plugin) PostInit() error
- func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// HeaderSchema *string `json:"header_schema,omitempty"`
// BodySchema *string `json:"body_schema,omitempty"`
HeaderSchema map[string]any `json:"header_schema,omitempty"`
BodySchema map[string]any `json:"body_schema,omitempty"`
RejectedCode int `json:"rejected_code"`
RejectedMsg string `json:"rejected_msg"`
// contains filtered or unexported fields
}
type Plugin ¶
type Plugin struct {
base.BasePlugin
// contains filtered or unexported fields
}
func (*Plugin) MaterializeScopedSecrets ¶
func (*Plugin) RunRequestPhase ¶
func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult
Click to show internal directories.
Click to hide internal directories.