routes

package
v0.0.0-...-83e77c6 Latest Latest
Warning

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

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

Documentation

Overview

Package routes provides a NetworkServiceServer that sets the routes in the kernel from the connection context

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

NewClient creates a NetworkServiceClient that will put the routes from the connection context into

the kernel network namespace kernel interface being inserted iff the
selected mechanism for the connection is a kernel mechanism
           Client
+- - - - - - - - - - - - - - - -+         +---------------------------+
|                               |         |  kernel network namespace |
                                          |                           |
|                               |         |                           |
                                          |                           |
|                               |         |                           |
                                          |                           |
|                               |         |                           |
                                +--------- ---------+                 |
|                               |         |                           |
                                          |                           |
|                               |         |                           |
                                          |      routes.Client()      |
|                               |         |                           |
                                          |                           |
|                               |         |                           |
+- - - - - - - - - - - - - - - -+         +---------------------------+

func NewServer

NewServer creates a NetworkServiceServer that will put the routes from the connection context into

connection context into the kernel network namespace kernel interface being inserted iff the
selected mechanism for the connection is a kernel mechanism
                                                     Endpoint
+- - - - - - - - - - - - - - - -+         +---------------------------+
|    kernel network namespace   |         |                           |
                                          |                           |
|                               |         |                           |
                                          |                           |
|                               |         |                           |
                                          |                           |
|                               |         |                           |
                      +--------- ---------+                           |
|                               |         |                           |
                                          |                           |
|                               |         |                           |
    routes.NewServer()                    |                           |
|                               |         |                           |
                                          |                           |
|                               |         |                           |
+- - - - - - - - - - - - - - - -+         +---------------------------+

Types

This section is empty.

Jump to

Keyboard shortcuts

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