Documentation
¶
Index ¶
- func BGPPRoutePolicies(bgpMgr agent.BGPRouterManager) script.Cmd
- func BGPScriptCmds(bgpMgr agent.BGPRouterManager) map[string]script.Cmd
- func GoBGPAddPeerCmd(cmdCtx *GoBGPCmdContext) script.Cmd
- func GoBGPAddServerCmd(cmdCtx *GoBGPCmdContext) script.Cmd
- func GoBGPAdvertiseRouteCmd(cmdCtx *GoBGPCmdContext) script.Cmd
- func GoBGPDeleteServerCmd(cmdCtx *GoBGPCmdContext) script.Cmd
- func GoBGPPeersCmd(cmdCtx *GoBGPCmdContext) script.Cmd
- func GoBGPRoutesCmd(cmdCtx *GoBGPCmdContext) script.Cmd
- func GoBGPScriptCmds(ctx *GoBGPCmdContext) map[string]script.Cmd
- func GoBGPWaitStateCmd(cmdCtx *GoBGPCmdContext) script.Cmd
- func SvcScriptCmds(w *writer.Writer) map[string]script.Cmd
- func SvcSetProxyRedirectCmd(w *writer.Writer) script.Cmd
- type GoBGPCmdContext
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 ¶
SvcScriptCmds returns script commands for manipulating services in tests.
func SvcSetProxyRedirectCmd ¶
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
Click to show internal directories.
Click to hide internal directories.