driver

package
v0.0.0-...-89dc3a7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB                  string
	StoragePool         string
	LibvirtURI          string
	NetworkTransportDev string
}

type Driver

type Driver struct {
	api.UnimplementedSoxServer
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) (*Driver, error)

func (*Driver) ConfigureNetworkInterface

func (driver *Driver) ConfigureNetworkInterface(ctx context.Context, network models.Network) (models.NetworkInterface, error)

func (*Driver) CreateMachine

func (driver *Driver) CreateMachine(ctx context.Context, request *api.CreateMachineRequest) (*api.CreateMachineResponse, error)

func (*Driver) CreateNetwork

func (driver *Driver) CreateNetwork(ctx context.Context, request *api.CreateNetworkRequest) (*api.CreateNetworkResponse, error)

func (*Driver) DeleteMachine

func (driver *Driver) DeleteMachine(ctx context.Context, request *api.DeleteMachineRequest) (*api.DeleteMachineResponse, error)

func (*Driver) GetMachineDetails

func (driver *Driver) GetMachineDetails(ctx context.Context, request *api.GetMachineDetailsRequest) (*api.GetMachineDetailsResponse, error)

func (*Driver) ListActivities

func (driver *Driver) ListActivities(ctx context.Context, request *api.ListActivitiesRequest) (*api.ListActivitiesResponse, error)

func (*Driver) ListImages

func (driver *Driver) ListImages(ctx context.Context, request *api.ListImagesRequest) (*api.ListImagesResponse, error)

func (*Driver) ListMachines

func (driver *Driver) ListMachines(ctx context.Context, request *api.ListMachinesRequest) (*api.ListMachinesResponse, error)

func (*Driver) ListNetworks

func (driver *Driver) ListNetworks(ctx context.Context, request *api.ListNetworksRequest) (*api.ListNetworksResponse, error)

func (*Driver) ListSSHKeys

func (driver *Driver) ListSSHKeys(ctx context.Context, request *api.ListSSHKeysRequest) (*api.ListSSHKeysResponse, error)

func (*Driver) Recover

func (driver *Driver) Recover() error

func (*Driver) TriggerMachine

func (driver *Driver) TriggerMachine(ctx context.Context, request *api.TriggerMachineRequest) (*api.TriggerMachineResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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