commands

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BGPPRoutePolicies

func BGPPRoutePolicies(bgpMgr agent.BGPRouterManager) script.Cmd

func BGPScriptCmds

func BGPScriptCmds(bgpMgr agent.BGPRouterManager) map[string]script.Cmd

func GoBGPAddPeerCmd

func GoBGPAddPeerCmd(cmdCtx *GoBGPCmdContext) script.Cmd

func GoBGPAddServerCmd

func GoBGPAddServerCmd(cmdCtx *GoBGPCmdContext) script.Cmd

func GoBGPAdvertiseRouteCmd added in v1.19.2

func GoBGPAdvertiseRouteCmd(cmdCtx *GoBGPCmdContext) script.Cmd

func GoBGPDeleteServerCmd

func GoBGPDeleteServerCmd(cmdCtx *GoBGPCmdContext) script.Cmd

func GoBGPPeersCmd

func GoBGPPeersCmd(cmdCtx *GoBGPCmdContext) script.Cmd

func GoBGPRoutesCmd

func GoBGPRoutesCmd(cmdCtx *GoBGPCmdContext) script.Cmd

func GoBGPScriptCmds

func GoBGPScriptCmds(ctx *GoBGPCmdContext) map[string]script.Cmd

func GoBGPWaitStateCmd

func GoBGPWaitStateCmd(cmdCtx *GoBGPCmdContext) script.Cmd

func SvcScriptCmds

func SvcScriptCmds(w *writer.Writer) map[string]script.Cmd

SvcScriptCmds returns script commands for manipulating services in tests.

func SvcSetProxyRedirectCmd

func SvcSetProxyRedirectCmd(w *writer.Writer) script.Cmd

SvcSetProxyRedirectCmd sets ProxyRedirect on a service, simulating that the local Envoy proxy is configured to handle traffic for this service. This is used to test BGP advertisement of Gateway API/Ingress services.

Types

type GoBGPCmdContext

type GoBGPCmdContext struct {
	// contains filtered or unexported fields
}

func NewGoBGPCmdContext

func NewGoBGPCmdContext() *GoBGPCmdContext

func (*GoBGPCmdContext) AddServer

func (ctx *GoBGPCmdContext) AddServer(name string, srv *server.BgpServer)

func (*GoBGPCmdContext) Cleanup

func (ctx *GoBGPCmdContext) Cleanup()

func (*GoBGPCmdContext) DeleteServer

func (ctx *GoBGPCmdContext) DeleteServer(name string)

func (*GoBGPCmdContext) GetServer

func (ctx *GoBGPCmdContext) GetServer(name string) (*server.BgpServer, bool)

func (*GoBGPCmdContext) NServers

func (ctx *GoBGPCmdContext) NServers() int

Jump to

Keyboard shortcuts

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