Documentation ¶
Index ¶
- func AddConnector(connector *types.Connector, qdrDep *appsv1.Deployment)
- func GetConnectedSites(edge bool, namespace string, clientset *kubernetes.Clientset, ...) (types.TransportConnectedSites, error)
- func GetEdgeSitesForRouter(routerid string, namespace string, clientset *kubernetes.Clientset, ...) (int, error)
- func GetTransportMode(dep *appsv1.Deployment) types.TransportMode
- func IsInterior(qdr *appsv1.Deployment) bool
- func ListRouterConnectors(mode types.TransportMode, namespace string, cli *kubernetes.Clientset) []types.Connector
- type Connection
- type RouterNode
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)
Click to show internal directories.
Click to hide internal directories.