admission

package
v3.0.0-alpha.3....-0a41b70 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admission

type Admission interface {
	Admit(addr string) bool
}

func NewAdmission

func NewAdmission(reversed bool, matchers []matcher.Matcher, opts ...Option) Admission

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

func NewAdmissionPatterns

func NewAdmissionPatterns(reversed bool, patterns []string, opts ...Option) Admission

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

type Option

type Option func(opts *options)

func LoggerOption

func LoggerOption(logger logger.Logger) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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