filter

package
v0.20.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionWebhookFilter

type AdmissionWebhookFilter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL