libvirt

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package libvirt is used to start and stop containerized libvirt instances.

The code in this package should be kept minimal, and likely won't need to be changed unless we do a major refactoring of our QEMU/libvirt installation.

Index

Constants

View Source
const LibvirtTCPConnectURI = "qemu+tcp://localhost:16599/system"

LibvirtTCPConnectURI is the default URI to connect to containerized libvirt. Non standard port to avoid conflict with host libvirt. Changes here should also be reflected in the Dockerfile in "cli/internal/libvirt/Dockerfile".

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

Runner handles starting and stopping of containerized libvirt instances.

func New

func New() *Runner

New creates a new LibvirtRunner.

func (*Runner) Start

func (r *Runner) Start(ctx context.Context, name, imageName string) error

Start starts a containerized libvirt instance.

func (*Runner) Stop

func (r *Runner) Stop(ctx context.Context) error

Stop stops a containerized libvirt instance.

Jump to

Keyboard shortcuts

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