Documentation ¶
Index ¶
Constants ¶
View Source
const ( SymbolValidating = "ValidatingPlugin" SymbolMutating = "MutatingPlugin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader is used to load Cap10 plugins
func (*Loader) LookupM ¶
func (l *Loader) LookupM() []MutatingPlugin
func (*Loader) LookupV ¶
func (l *Loader) LookupV() []ValidatingPlugin
type MutatingPlugin ¶
MutatingPlugin takes a request and makes arbitrary modifications before passing it to the reverse proxy.
Returning an error will cause a 500 Internal Server Error to be returned to the requester.
type ValidatingPlugin ¶
ValidatingPlugin takes a request and determines whether the request should be allowed to continue.
ValidatingPlugin's will always be called AFTER the MutatingPlugin's
Returning false or an error will cause a 400 Bad Request to be returned to the requester.
Click to show internal directories.
Click to hide internal directories.