Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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 Plugins

type Plugins map[string]Plugin

Plugins is a mapping between plugin names and Plugins.

func (*Plugins) DeepEqual

func (p *Plugins) DeepEqual(o *Plugins) bool

DeepEqual returns true if all plugins are equal to those in o.

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.

Jump to

Keyboard shortcuts

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