controllerinfo

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transform

func Transform(reader io.Reader, _ bool, _ map[string]string) (interface{}, error)

Types

type Response

type Response struct {
	Version                     string                                 `json:"version,omitempty"`                     // Antrea binary version
	PodRef                      corev1.ObjectReference                 `json:"podRef,omitempty"`                      // The Pod that Antrea Controller is running in
	NodeRef                     corev1.ObjectReference                 `json:"nodeRef,omitempty"`                     // The Node that Antrea Controller is running in
	ServiceRef                  corev1.ObjectReference                 `json:"serviceRef,omitempty"`                  // Antrea Controller Service
	NetworkPolicyControllerInfo crdv1beta1.NetworkPolicyControllerInfo `json:"networkPolicyControllerInfo,omitempty"` // Antrea Controller NetworkPolicy information
	ConnectedAgentNum           int32                                  `json:"connectedAgentNum,omitempty"`           // Number of agents which are connected to this controller
	ControllerConditions        []crdv1beta1.ControllerCondition       `json:"controllerConditions,omitempty"`        // Controller condition contains types like ControllerHealthy
}

Response includes all data fields of clusterinfo.AntreaControllerInfo, but removes the resource meta fields.

func (Response) GetControllerConditionStr

func (r Response) GetControllerConditionStr() string

func (Response) GetTableHeader

func (r Response) GetTableHeader() []string

func (Response) GetTableRow

func (r Response) GetTableRow(maxColumnLength int) []string

func (Response) SortRows

func (r Response) SortRows() bool

Jump to

Keyboard shortcuts

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