admission

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdmission

func NewAdmission(opts ...Option) admission_pkg.Admission

NewAdmission creates and initializes a new Admission using matcher patterns as its match rules. The rules will be reversed if the reverse is true.

func NewPluginAdmission

func NewPluginAdmission(opts ...Option) admission_pkg.Admission

NewPluginAdmission creates a plugin admission.

Types

type Option

type Option func(opts *options)

func FileLoaderOption

func FileLoaderOption(fileLoader loader.Loader) Option

func HTTPLoaderOption

func HTTPLoaderOption(httpLoader loader.Loader) Option

func LoggerOption

func LoggerOption(logger logger.Logger) Option

func MatchersOption

func MatchersOption(matchers []string) Option

func PluginConnOption

func PluginConnOption(c *grpc.ClientConn) Option

func RedisLoaderOption

func RedisLoaderOption(redisLoader loader.Loader) Option

func ReloadPeriodOption

func ReloadPeriodOption(period time.Duration) Option

func WhitelistOption

func WhitelistOption(whitelist bool) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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