Documentation ¶
Overview ¶
Package contiv implements plugin providing GRPC-server that accepts requests from CNI plugin.
+-------------------------------------------------+ | vSwitch VPP host.go | +--------------+ | +--------------+ | | vethVPP |____________| veth Host | | routing | | | | | | +--------------+ | +--------------+ | +------+ +------+ | | | AF1 | | AFn | | | | | ... | | | | +------+ +------+ | | ^ | | | | +------|------------------------------------------+
v
+------------+ | | | Veth2 | | | +------------+
^ | pod.go
+------|------------+ | NS1 v | | +------------+ | | | | | | | Veth1 | | | | | | | +------------+ | | | +-------------------+
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { // GetIfName looks up logical interface name that corresponds to the interface // associated with the given pod. GetIfName(podNamespace string, podName string) (name string, exists bool) }
API for other plugins to query network-related information.
type Config ¶
Config is configuration for Contiv plugin. It can be injected or loaded from external config. Injection has priority to external config. To use external config add `<Contiv plugin name> + "-config="<absolute path to config>` in go run command flags.
type Deps ¶
type Deps struct { local.PluginInfraDeps GRPC grpc.Server Proxy *kvdbproxy.Plugin VPP *defaultplugins.Plugin GoVPP govppmux.API Resync resync.Subscriber ETCD *etcdv3.Plugin Watcher datasync.KeyValProtoWatcher }
Deps groups the dependencies of the Plugin.
type Plugin ¶
Plugin transforms GRPC requests into configuration for the VPP in order to connect a container into the network.
func (*Plugin) AfterInit ¶
AfterInit registers to the ResyncOrchestrator. The registration is done in this phase in order to trigger the resync for this plugin once the resync of defaultVPP plugins is finished.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
bin_api
|
|
session
Code generated by govpp binapi-generator DO NOT EDIT.
|
Code generated by govpp binapi-generator DO NOT EDIT. |
stn
Code generated by govpp binapi-generator DO NOT EDIT.
|
Code generated by govpp binapi-generator DO NOT EDIT. |
Package containeridx implements a mapping structure that allows to store configured container networking.
|
Package containeridx implements a mapping structure that allows to store configured container networking. |
Package ipam is responsible for IP addresses management
|
Package ipam is responsible for IP addresses management |
model
|
|
cni
Package cni is a generated protocol buffer package.
|
Package cni is a generated protocol buffer package. |
uid
Package uid is a generated protocol buffer package.
|
Package uid is a generated protocol buffer package. |