monitor

package
v0.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 17 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
	GetNetworkPolicies() []networkingv1beta1.NetworkPolicy
	GetAddressGroups() []networkingv1beta1.AddressGroup
	GetAppliedToGroups() []networkingv1beta1.AppliedToGroup
}

type AgentQuerier

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

type ControllerNetworkPolicyInfoQuerier added in v0.3.0

type ControllerNetworkPolicyInfoQuerier interface {
	NetworkPolicyInfoQuerier
	GetConnectedAgentNum() int
}

type ControllerQuerier

type ControllerQuerier interface {
	Querier
	GetService() v1.ObjectReference
	GetControllerInfo() *v1beta1.AntreaControllerInfo
}

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