Documentation ¶
Index ¶
- func GetAllIPs() ([]net.IP, error)
- func GetIPsByName(name string) ([]net.IP, error)
- func GetIPsNeedListen(c *v1alpha1.EdgeGatewayConfig) ([]net.IP, error)
- func IsClosedError(err error) bool
- func Register(c *v1alpha1.EdgeGatewayConfig, cli *clients.Clients) error
- type EdgeGateway
- func (gw *EdgeGateway) Enable() bool
- func (gw *EdgeGateway) Group() string
- func (gw *EdgeGateway) Name() string
- func (gw *EdgeGateway) OnGatewayAdd(gateway *istiv1alpha3.Gateway)
- func (gw *EdgeGateway) OnGatewayDelete(gateway *istiv1alpha3.Gateway)
- func (gw *EdgeGateway) OnGatewayUpdate(_, gateway *istiv1alpha3.Gateway)
- func (gw *EdgeGateway) Run() error
- func (gw *EdgeGateway) Shutdown()
- func (gw *EdgeGateway) Start()
- type HTTP
- type Protocol
- type Server
- type ServerOptions
- type TCP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIPsNeedListen ¶
func GetIPsNeedListen(c *v1alpha1.EdgeGatewayConfig) ([]net.IP, error)
GetIPsNeedListen get Ips need listen
func IsClosedError ¶ added in v1.13.0
Types ¶
type EdgeGateway ¶
type EdgeGateway struct { Config *v1alpha1.EdgeGatewayConfig // contains filtered or unexported fields }
EdgeGateway is an edge ingress gateway
func (*EdgeGateway) Enable ¶
func (gw *EdgeGateway) Enable() bool
Enable indicates whether enable this module
func (*EdgeGateway) OnGatewayAdd ¶
func (gw *EdgeGateway) OnGatewayAdd(gateway *istiv1alpha3.Gateway)
OnGatewayAdd add a gateway server
func (*EdgeGateway) OnGatewayDelete ¶
func (gw *EdgeGateway) OnGatewayDelete(gateway *istiv1alpha3.Gateway)
OnGatewayDelete delete a gateway server
func (*EdgeGateway) OnGatewayUpdate ¶
func (gw *EdgeGateway) OnGatewayUpdate(_, gateway *istiv1alpha3.Gateway)
OnGatewayUpdate update a gateway server
func (*EdgeGateway) Run ¶
func (gw *EdgeGateway) Run() error
func (*EdgeGateway) Shutdown ¶ added in v1.13.1
func (gw *EdgeGateway) Shutdown()
Shutdown edgegateway
type HTTP ¶
type HTTP struct { Conn net.Conn VirtualService *istioapi.VirtualService SvcName string SvcNamespace string SvcPort int }
HTTP http
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is gateway server
Source Files ¶
Click to show internal directories.
Click to hide internal directories.