types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 2 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 GatewayConfig added in v0.1.1

type GatewayConfig struct {
	IP   net.IP
	MAC  net.HardwareAddr
	Name string
}

type NodeConfig added in v0.1.1

type NodeConfig struct {
	Bridge  string
	Name    string
	PodCIDR *net.IPNet
	*GatewayConfig
}

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