Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSelfNode ¶
func GetSelfNode(isAgent bool, node string) v1.ObjectReference
GetSelfNode gets current node.
Types ¶
type AgentNetworkPolicyInfoQuerier ¶
type AgentNetworkPolicyInfoQuerier interface { NetworkPolicyInfoQuerier GetControllerConnectionStatus() bool GetNetworkPolicies(namespace string) []cpv1beta1.NetworkPolicy GetAddressGroups() []cpv1beta1.AddressGroup GetAppliedToGroups() []cpv1beta1.AppliedToGroup GetNetworkPolicy(npName, npNamespace string) *cpv1beta1.NetworkPolicy GetAppliedNetworkPolicies(pod, namespace string) []cpv1beta1.NetworkPolicy }
type ControllerNetworkPolicyInfoQuerier ¶
type ControllerNetworkPolicyInfoQuerier interface { NetworkPolicyInfoQuerier GetConnectedAgentNum() int }
Click to show internal directories.
Click to hide internal directories.