networkpolicy

package
v0.0.0-...-7fcd28e Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	// contains filtered or unexported fields
}

ACL defines an access list action empty values mean all

type ACLPort

type ACLPort struct {
	// contains filtered or unexported fields
}

type Action

type Action string
const (
	DropAction   Action = "drop"
	PassAction   Action = "pass"
	FilterAction Action = "filter"
)

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller manages selector-based networkpolicy endpoints.

func NewController

func NewController(client clientset.Interface,
	networkpolicyInformer networkinginformers.NetworkPolicyInformer,
	namespaceInformer coreinformers.NamespaceInformer,
	podInformer coreinformers.PodInformer,
	reconciler Reconciler,
) *Controller

NewController returns a new *Controller.

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{}) error

Run will not return until stopCh is closed. workers determines how many endpoints will be handled in parallel.

type Policy

type Policy struct {
	Name          string
	AccessList    []ACL
	DefaultAction Action
}

Policy consist in a set of ACLs and a default action ACLs are not ordered and the result should be the union of them

type Reconciler

type Reconciler interface {
	Reconcile(name string, policy Policy) error
}

Jump to

Keyboard shortcuts

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