querier

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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) []networkingv1beta1.NetworkPolicy
	GetAddressGroups() []networkingv1beta1.AddressGroup
	GetAppliedToGroups() []networkingv1beta1.AppliedToGroup
	GetNetworkPolicy(npName, npNamespace string) *networkingv1beta1.NetworkPolicy
	GetAppliedNetworkPolicies(pod, namespace string) []networkingv1beta1.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