gwsidecar

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendConnectionContext

func SendConnectionContext(ctx context.Context, serverAddr string, gwConnCtx *GwConnectionContext) error

SendConnectionContext sends connection context info to sidecar

Types

type GwConnectionContext

type GwConnectionContext struct {
	RemoteSliceGwVpnIP     string
	RemoteSliceGwNsmSubnet string
}

type GwStatus

type GwStatus struct {
	NsmStatus
	TunnelStatus
}

func GetStatus

func GetStatus(ctx context.Context, serverAddr string) (*GwStatus, error)

GetStatus retrieves sidecar status

type NsmStatus

type NsmStatus struct {
	IntfName string
	LocalIP  string
}

type TunnelStatus

type TunnelStatus struct {
	IntfName string
	LocalIP  string
	RemoteIP string
	Latency  uint64
	TxRate   uint64
	RxRate   uint64
}

Jump to

Keyboard shortcuts

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