admission

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2016 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ExternalIPPluginName = "ExternalIPRanger"
View Source
const RestrictedEndpointsPluginName = "openshift.io/RestrictedEndpointsAdmission"

Variables

This section is empty.

Functions

func NewExternalIPRanger

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

NewConstraint creates a new SCC constraint admission plugin.

func NewRestrictedEndpointsAdmission

func NewRestrictedEndpointsAdmission(restrictedNetworks []*net.IPNet) *restrictedEndpointsAdmission

NewRestrictedEndpointsAdmission creates a new endpoints admission plugin.

func ParseRejectAdmitCIDRRules

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

ParseRejectAdmitCIDRRules 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.

func ParseSimpleCIDRRules

func ParseSimpleCIDRRules(rules []string) (networks []*net.IPNet, err error)

ParseSimpleCIDRRules parses a list of CIDR strings

Types

type NetworkSlice

type NetworkSlice []*net.IPNet

NetworkSlice is a helper for checking whether an IP is contained in a range of networks.

func (NetworkSlice) Contains

func (s NetworkSlice) Contains(ip net.IP) bool

Jump to

Keyboard shortcuts

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