v1.15.2 Latest Latest

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0




View Source
const (
	IsAppliedToServiceIndex = "isAppliedToService"
	SourceGroupIndex        = "sourceGroup"
View Source
const (
	ServiceIndex      = "service"
	ChildGroupIndex   = "childGroup"
	IPBlockGroupIndex = "hasIPBlocks"
	HasIPBlocks       = "true"
View Source
const (
	AppliedToGroupIndex = "appliedToGroup"
	AddressGroupIndex   = "addressGroup"
View Source
const IsNodeAddressGroupIndex = "isNodeAddressGroup"


This section is empty.


func AddressGroupKeyFunc

func AddressGroupKeyFunc(obj interface{}) (string, error)

AddressGroupKeyFunc knows how to get the key of an AddressGroup.

func AppliedToGroupKeyFunc

func AppliedToGroupKeyFunc(obj interface{}) (string, error)

AppliedToGroupKeyFunc knows how to get the key of an AppliedToGroup.

func GroupKeyFunc

func GroupKeyFunc(obj interface{}) (string, error)

GroupKeyFunc knows how to get the key of a Group.

func NetworkPolicyKeyFunc

func NetworkPolicyKeyFunc(obj interface{}) (string, error)

NetworkPolicyKeyFunc knows how to get the key of a NetworkPolicy.

func NewAddressGroupStore

func NewAddressGroupStore() storage.Interface

NewAddressGroupStore creates a store of AddressGroup.

func NewAppliedToGroupStore

func NewAppliedToGroupStore() storage.Interface

NewAppliedToGroupStore creates a store of AppliedToGroup.

func NewGroupStore

func NewGroupStore() storage.Interface

NewGroupStore creates a store of Group.

func NewNetworkPolicyStore

func NewNetworkPolicyStore() storage.Interface

NewNetworkPolicyStore creates a store of NetworkPolicy.

func ToAddressGroupMsg

func ToAddressGroupMsg(in *types.AddressGroup, out *controlplane.AddressGroup, includeBody bool)

ToAddressGroupMsg converts the stored AddressGroup to its message form. If includeBody is true, IPAddresses will be copied.

func ToAppliedToGroupMsg

func ToAppliedToGroupMsg(in *types.AppliedToGroup, out *controlplane.AppliedToGroup, includeBody bool, nodeName *string)

ToAppliedToGroupMsg converts the stored AppliedToGroup to its message form. If includeBody is true, GroupMembers will be copied. If nodeName is provided, only GroupMembers that hosted by the Node will be copied.

func ToNetworkPolicyMsg

func ToNetworkPolicyMsg(in *types.NetworkPolicy, out *controlplane.NetworkPolicy, includeBody bool)

ToNetworkPolicyMsg converts the stored NetworkPolicy to its message form. If includeBody is true, Rules and AppliedToGroups will be copied.


This section is empty.

Jump to

Keyboard shortcuts

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