plugin

package
v0.0.0-...-a4cbc98 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MulanPSL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHealthServer

func StartHealthServer(port string)

Types

type Interface

type Interface interface {
	Devices() resource.Devices
	Start(*StartOpts) error
	Stop() error
}

func New

func New(ctx context.Context, opts ...Option) ([]Interface, error)

type MockEid

type MockEid struct {
	GetBondingEidPatches *gomonkey.Patches

	ResetFunc []func()
}

func (*MockEid) Reset

func (m *MockEid) Reset()

type Option

type Option func(*options)

func WithResources

func WithResources(resources *resource.Resources) Option

type StartOpts

type StartOpts struct {
	Flags         []cli.Flag
	KubeletSocket string
	SyncInterval  time.Duration
	HealthPort    string
}

Source Files

  • api.go
  • factory.go
  • health.go
  • mock_eid.go
  • options.go
  • server.go

Jump to

Keyboard shortcuts

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