route

package
v0.0.0-...-7b324af Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayInfo

type GatewayInfo struct {
	Metadata *mcp.Metadata
	Gateway  *networking.Gateway
}

GatewayInfo ...

type IngressGateway

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

IngressGateway is a utility to find Ingress Gateways services and pods

func NewIG

func NewIG() (*IngressGateway, error)

NewIG creates a new IngressGateway

func (*IngressGateway) FindService

func (ig *IngressGateway) FindService(namespaces []string, gateway *networking.Gateway) (string, string, error)

FindService tries to find a service that matches with the given gateway selector, in the given namespaces Returns the namespace and service name that is a match, or an error

type Route

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

Route ...

func New

func New(args *bootstrap.Args) (*Route, error)

New ...

func (*Route) DumpRoutes

func (r *Route) DumpRoutes()

DumpRoutes ...

func (*Route) Sync

func (r *Route) Sync(gatewaysInfo []GatewayInfo) error

Sync ...

Jump to

Keyboard shortcuts

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