querier

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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.

func GetSelfPod

func GetSelfPod() v1.ObjectReference

GetSelfPod gets current pod.

func GetVersion

func GetVersion() string

GetVersion gets current version.

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
}

type NetworkPolicyInfoQuerier

type NetworkPolicyInfoQuerier interface {
	GetNetworkPolicyNum() int
	GetAddressGroupNum() int
	GetAppliedToGroupNum() int
}

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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