types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address interface {
	GetMatchValue() string
	GetMatchKey(addrType AddressType) int
	GetValue() interface{}
}

type AddressCategory

type AddressCategory uint8
const (
	IPAddr AddressCategory = iota
	IPNetAddr
	OFPortAddr
)

type AddressType

type AddressType int
const (
	SrcAddress AddressType = iota
	DstAddress
)

type PolicyRule

type PolicyRule struct {
	ID         uint32
	Direction  v1.PolicyType
	From       []Address
	ExceptFrom []Address
	To         []Address
	ExceptTo   []Address
	Service    []*v1.NetworkPolicyPort
}

PolicyRule groups configurations to set up conjunctive match for egress/ingress policy rules.

Jump to

Keyboard shortcuts

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