api

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	True     = true
	False    = false
	RealTime = "realtime"
	Cached   = "cached"
)

Functions

func PathToID

func PathToID(path string) string

Types

type LBInfo

type LBInfo struct {
	Config         *model.LBService
	Status         *model.LBServiceStatus
	Stats          *model.LBServiceStatistics
	VirtualServers []VSInfo
	Pools          []PoolInfo
}

type MemberInfo

type MemberInfo struct {
	Status model.LBPoolMemberStatus
	Stats  model.LBPoolMemberStatistics
}

type NSXApi

type NSXApi struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewNSXApi

func NewNSXApi(config *config.NSXConfig) (*NSXApi, error)

func (*NSXApi) GetClusterNodeInfo

func (a *NSXApi) GetClusterNodeInfo(nodeID string) (*NodeInfo, error)

func (*NSXApi) GetClusterStatus

func (a *NSXApi) GetClusterStatus() (*administration.ClusterStatus, error)

func (*NSXApi) GetLBServiceInfo

func (a *NSXApi) GetLBServiceInfo(lbID string) (*LBInfo, error)

func (*NSXApi) GetT0Status

func (a *NSXApi) GetT0Status(tierID string) (*model.Tier0GatewayState, error)

func (*NSXApi) GetT1Status

func (a *NSXApi) GetT1Status(tierID string) (*model.Tier1GatewayState, error)

func (*NSXApi) ListLoadBalancers

func (a *NSXApi) ListLoadBalancers() ([]model.LBService, error)

func (*NSXApi) ListT0

func (a *NSXApi) ListT0() ([]model.Tier0, error)

func (*NSXApi) ListT1

func (a *NSXApi) ListT1() ([]model.Tier1, error)

type NodeInfo

type NodeInfo struct {
	Interfaces []Interface
	Config     administration.ClusterNodeConfig
	Status     administration.ClusterNodeStatus
}

type PoolInfo

type PoolInfo struct {
	Config  *model.LBPool
	Status  model.LBPoolStatus
	Stats   model.LBPoolStatistics
	Members []MemberInfo
}

type VSInfo

type VSInfo struct {
	Config *model.LBVirtualServer
	Status model.LBVirtualServerStatus
	Stats  model.LBVirtualServerStatistics
}

Jump to

Keyboard shortcuts

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