plugin

package
v0.0.0-...-c8766c1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VendorPluginSocketPath string = cnitypes.DaemonBaseDir + "vendor-plugin/vendor-plugin.sock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcPlugin

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

func NewGrpcPlugin

func NewGrpcPlugin(dpuMode bool) *GrpcPlugin

func (*GrpcPlugin) CreateBridgePort

func (g *GrpcPlugin) CreateBridgePort(createRequest *opi.CreateBridgePortRequest) (*opi.BridgePort, error)

func (*GrpcPlugin) DeleteBridgePort

func (g *GrpcPlugin) DeleteBridgePort(deleteRequest *opi.DeleteBridgePortRequest) error

func (*GrpcPlugin) Start

func (g *GrpcPlugin) Start() (string, int32, error)

func (*GrpcPlugin) Stop

func (g *GrpcPlugin) Stop()

type VendorPlugin

type VendorPlugin interface {
	Start() (string, int32, error)
	Stop()
	CreateBridgePort(bpr *opi.CreateBridgePortRequest) (*opi.BridgePort, error)
	DeleteBridgePort(bpr *opi.DeleteBridgePortRequest) error
}

Jump to

Keyboard shortcuts

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