qemu

package
v0.0.0-...-97303f7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LibvirtInstance

type LibvirtInstance struct {
	Conn libvirtInterface

	Log *zap.Logger

	ImagePath          string
	RegisteredNetworks []string
	RegisteredPools    []string
	RegisteredDisks    []string
	// contains filtered or unexported fields
}

LibvirtInstance is a wrapper around libvirt. Probably a better way to test the package is trough the test:///default connection.

func NewQemu

func NewQemu(log *zap.Logger, imagePath string) (*LibvirtInstance, error)

NewQemu creates a new Qemu Infrastructure.

func (*LibvirtInstance) ConnectWithInfrastructureService

func (l *LibvirtInstance) ConnectWithInfrastructureService(_ context.Context, url string) error

ConnectWithInfrastructureService connects to the libvirt instance.

func (*LibvirtInstance) InitializeInfrastructure

func (l *LibvirtInstance) InitializeInfrastructure(ctx context.Context) (nodes *config.NodeInformation, err error)

InitializeInfrastructure initializes the infrastructure.

func (*LibvirtInstance) TerminateConnection

func (l *LibvirtInstance) TerminateConnection() error

TerminateConnection closes the libvirt connection.

func (*LibvirtInstance) TerminateInfrastructure

func (l *LibvirtInstance) TerminateInfrastructure() error

TerminateInfrastructure deletes all resources created by the infrastructure.

Jump to

Keyboard shortcuts

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