Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin interface {
datapathplugins.DatapathPluginClient
// Name returns the name of this datapath plugin.
Name() string
// AttachmentPolicy returns the attachment policy for this plugin.
AttachmentPolicy() api_v2alpha1.CiliumDatapathPluginAttachmentPolicy
// DeepEqual returns true if this plugin is equivalent to o.
DeepEqual(o Plugin) bool
}
A Plugin represents a registered datapath plugin and its client.
type Registry ¶
type Registry interface {
// Register registers a plugin and sets up a client to talk to it.
Register(dpp *api_v2alpha1.CiliumDatapathPlugin)
// Unregister unregisters a plugin and shuts down its client.
Unregister(dpp *api_v2alpha1.CiliumDatapathPlugin)
// Plugins returns a snapshot of the current state of the registry.
Plugins() Plugins
// Sync blocks until the registry is initialized or until ctx is done.
Sync(ctx context.Context) error
}
Registry contains all registered datapath plugins.
Click to show internal directories.
Click to hide internal directories.