uvdpa

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDaemonStub

type UserDaemonStub interface {
	// Initialize the Client
	Init() error
	// Close the Client
	Close() error
	// Version retrives the Framework's version
	Version() (string, error)
	// ListIfaces retrieves a list of active vhost interfaces
	ListIfaces() ([]VhostIface, error)
	// Create a vhost interface
	Create(VhostIface) error
	// Destroy a vhost interface identified by the device_id
	Destroy(string) error
}

UserDaemonStub is the Interface with the vDPA User Framework

func NewVdpaClient

func NewVdpaClient(mock bool) UserDaemonStub

NewVdpaClient returns a VdpaClient instance

type VhostIface

type VhostIface struct {
	ID     int    `json:"vdpa_id,omitempty"`
	Device string `json:"device-id"`
	Socket string `json:"socket-path,omitempty"`
	Mode   string `json:"socket-mode,omitempty"`
	Driver string `json:"driver,omitempty"`
}

VhostIface represents a vhost-user interface

Jump to

Keyboard shortcuts

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