monitor

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgentMonitor

func NewAgentMonitor(
	client clientset.Interface,
	ovsBridge string,
	nodeName string,
	nodeSubnet string,
	interfaceStore interfacestore.InterfaceStore,
	ofClient openflow.Client,
	ovsBridgeClient ovsconfig.OVSBridgeClient,
	networkPolicyInfoQuerier AgentNetworkPolicyInfoQuerier,
) *agentMonitor

func NewControllerMonitor

func NewControllerMonitor(client clientset.Interface, nodeInformer coreinformers.NodeInformer, networkPolicyInfoQuerier ControllerNetworkPolicyInfoQuerier) *controllerMonitor

Types

type AgentNetworkPolicyInfoQuerier added in v0.3.0

type AgentNetworkPolicyInfoQuerier interface {
	NetworkPolicyInfoQuerier
	GetControllerConnectionStatus() bool
}

type AgentQuerier

type AgentQuerier interface {
	Querier
	GetOVSFlowTable() map[string]int32
	GetLocalPodNum() int32
	GetAgentInfo() *v1beta1.AntreaAgentInfo
}

type ControllerNetworkPolicyInfoQuerier added in v0.3.0

type ControllerNetworkPolicyInfoQuerier interface {
	NetworkPolicyInfoQuerier
	GetConnectedAgentNum() int
}

type ControllerQuerier

type ControllerQuerier interface {
	Querier
	GetService() v1.ObjectReference
}

type NetworkPolicyInfoQuerier added in v0.3.0

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

type Querier

type Querier interface {
	GetSelfPod() v1.ObjectReference
	GetSelfNode() v1.ObjectReference
	GetNetworkPolicyControllerInfo() v1beta1.NetworkPolicyControllerInfo
	GetVersion() string
}

Querier provides interface for both monitor CRD and CLI to consume controller and agent status.

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