qdr

package
v0.0.0-...-19934ff Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConnector

func AddConnector(connector *types.Connector, qdrDep *appsv1.Deployment)

func GetConnectedSites

func GetConnectedSites(edge bool, namespace string, clientset *kubernetes.Clientset, config *restclient.Config) (types.TransportConnectedSites, error)

func GetEdgeSitesForRouter

func GetEdgeSitesForRouter(routerid string, namespace string, clientset *kubernetes.Clientset, config *restclient.Config) (int, error)

func GetTransportMode

func GetTransportMode(dep *appsv1.Deployment) types.TransportMode

func IsInterior

func IsInterior(qdr *appsv1.Deployment) bool

func ListRouterConnectors

func ListRouterConnectors(mode types.TransportMode, namespace string, cli *kubernetes.Clientset) []types.Connector

Types

type Connection

type Connection struct {
	Container  string `json:"container"`
	OperStatus string `json:"operStatus"`
	Host       string `json:"host"`
	Role       string `json:"role"`
	Active     bool   `json:"active"`
	Dir        string `json:"dir"`
}

func GetConnections

func GetConnections(namespace string, clientset *kubernetes.Clientset, config *restclient.Config) ([]Connection, error)

func GetInterRouterOrEdgeConnection

func GetInterRouterOrEdgeConnection(host string, connections []Connection) *Connection

type RouterNode

type RouterNode struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	NextHop string `json:"nextHop"`
}

func GetNodes

func GetNodes(namespace string, clientset *kubernetes.Clientset, config *restclient.Config) ([]RouterNode, error)

Jump to

Keyboard shortcuts

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