cilium

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CiliumNetworkPolicyVersion = "v2"
)

Variables

View Source
var (
	EgressRule = RuleType{
		Type: "egress",
		RuleKeys: map[RuleKey]string{
			CIDRRuleKey:    "toCIDR",
			CIDRSetRuleKey: "toCIDRSet",
			EntityRuleKey:  "toEntities",
		},
	}
	IngressRule = RuleType{
		Type: "ingress",
		RuleKeys: map[RuleKey]string{
			CIDRRuleKey:    "fromCIDR",
			CIDRSetRuleKey: "fromCIDRSet",
			EntityRuleKey:  "fromEntities",
		},
	}
)

Functions

func CiliumClusterwideNetworkPolicy added in v0.2.0

func CiliumClusterwideNetworkPolicy() *unstructured.Unstructured

func CiliumClusterwideNetworkPolicyList added in v0.2.0

func CiliumClusterwideNetworkPolicyList() *unstructured.UnstructuredList

func CiliumNetworkPolicy

func CiliumNetworkPolicy() *unstructured.Unstructured

func CiliumNetworkPolicyList

func CiliumNetworkPolicyList() *unstructured.UnstructuredList

Types

type RuleKey added in v0.3.0

type RuleKey string
const (
	CIDRRuleKey    RuleKey = "cidr"
	CIDRSetRuleKey RuleKey = "cidrset"
	EntityRuleKey  RuleKey = "entity"
)

type RuleType

type RuleType struct {
	Type     string
	RuleKeys map[RuleKey]string
}

RuleType specifies lookup values for CIDR-based policies.

Jump to

Keyboard shortcuts

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