networkinterfaceplugin

package
v0.0.0-...-d1db333 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPluginTypeRegistry = NewTypeOptionsRegistry()
)

Functions

This section is empty.

Types

type Options

type Options struct {
	PluginName string
	// contains filtered or unexported fields
}

func NewDefaultOptions

func NewDefaultOptions() *Options

func NewOptions

func NewOptions(registry *TypeOptionsRegistry) *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) NetworkInterfacePlugin

func (o *Options) NetworkInterfacePlugin() (providernetworkinterface.Plugin, func(), error)

type TypeOptions

type TypeOptions interface {
	PluginName() string
	AddFlags(fs *pflag.FlagSet)
	NetworkInterfacePlugin() (providernetworkinterface.Plugin, func(), error)
}

type TypeOptionsRegistry

type TypeOptionsRegistry struct {
	// contains filtered or unexported fields
}

func NewTypeOptionsRegistry

func NewTypeOptionsRegistry() *TypeOptionsRegistry

func (*TypeOptionsRegistry) DefaultPluginName

func (r *TypeOptionsRegistry) DefaultPluginName() string

func (*TypeOptionsRegistry) ForeachPluginTypeOpts

func (r *TypeOptionsRegistry) ForeachPluginTypeOpts(f func(pluginName string, pluginOpts TypeOptions) bool)

func (*TypeOptionsRegistry) PluginNames

func (r *TypeOptionsRegistry) PluginNames() []string

func (*TypeOptionsRegistry) PluginTypeOptsByName

func (r *TypeOptionsRegistry) PluginTypeOptsByName(pluginName string) (TypeOptions, error)

func (*TypeOptionsRegistry) Register

func (r *TypeOptionsRegistry) Register(pluginOpts TypeOptions, priority int) error

Jump to

Keyboard shortcuts

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