admission

package
v1.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ExternalIPPluginName = "ExternalIPRanger"

Variables

This section is empty.

Functions

func NewExternalIPRanger

func NewExternalIPRanger(reject, admit []*net.IPNet) *externalIPRanger

NewConstraint creates a new SCC constraint admission plugin.

func ParseCIDRRules

func ParseCIDRRules(rules []string) (reject, admit []*net.IPNet, err error)

ParseCIDRRules calculates a blacklist and whitelist from a list of string CIDR rules (treating a leading ! as a negation). Returns an error if any rule is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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