Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouteDriver ¶
Types ¶
type Driver ¶
type Driver interface { // Init inits the driver. If return an error, raven agent will exit. Init() error // Apply applies the given network to the cluster, which represents the desired state of the cluster. // If return an error, the caller is expected to retry again later. // Usually, the implementation should compare the current network state with the given desired state, // and make changes to reach the desired state. // This method should be idempotent. Apply(network *types.Network, vpnDriverMTUFn func() (int, error)) error // MTU return Minimal MTU in route driver MTU(network *types.Network) (int, error) // Cleanup performs the necessary uninstallation. Cleanup() error }
Driver is the interface for inner gateway routing mechanism.
Click to show internal directories.
Click to hide internal directories.