Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionWebhookFilter ¶
func (*AdmissionWebhookFilter) Execute ¶
func (hook *AdmissionWebhookFilter) Execute(req *restful.Request) (int, error)
type GeneralFilter ¶
type GeneralFilter struct {
// contains filtered or unexported fields
}
func NewFilter ¶
func NewFilter() *GeneralFilter
func (*GeneralFilter) AppendFilter ¶
func (gf *GeneralFilter) AppendFilter(filterFunc RequestFilterFunction)
func (*GeneralFilter) Filter ¶
func (gf *GeneralFilter) Filter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
type HeaderValidFilter ¶
type HeaderValidFilter struct {
// contains filtered or unexported fields
}
func (*HeaderValidFilter) Execute ¶
func (h *HeaderValidFilter) Execute(req *restful.Request) (int, error)
type Meta ¶
type Meta struct { commtypes.TypeMeta `json:",inline"` commtypes.ObjectMeta `json:"metadata"` }
type RequestFilterFunction ¶
type RequestFilterFunction interface { //Execute check http request Execute(req *restful.Request) (int, error) }
func NewAdmissionWebhookFilter ¶
func NewAdmissionWebhookFilter(scheduler backend.Scheduler, kubeconfig string) (RequestFilterFunction, error)
func NewHeaderValidFilter ¶
func NewHeaderValidFilter(conf *config.MesosDriverConfig) RequestFilterFunction
Click to show internal directories.
Click to hide internal directories.