libvirt

package
v0.0.0-...-f1b23c0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Libvirt

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

A Libvirt is component of virtual machine.

func New

func New(ds datastore.Datastore) *Libvirt

New create ganymede application

func (*Libvirt) AttachInterface

func (l *Libvirt) AttachInterface(ctx context.Context, vmID, bridgeID, leaseID uuid.UUID, average int, name string) (*ganymede.InterfaceAttachment, error)

AttachInterface is

func (*Libvirt) CreateBridge

func (l *Libvirt) CreateBridge(ctx context.Context, name string, vlanID uint32) (*ganymede.Bridge, error)

CreateBridge is

func (*Libvirt) CreateInternalBridge

func (l *Libvirt) CreateInternalBridge(ctx context.Context, name string) (*ganymede.Bridge, error)

CreateInternalBridge is

func (*Libvirt) CreateVirtualMachine

func (l *Libvirt) CreateVirtualMachine(ctx context.Context, name string, vcpus uint32, memoryKiB uint64, bootDeviceName, hypervisorName, rootVolumeID string, readBytesSec, writeBytesSec, readIOPSSec, writeIOPSSec uint32, cpuPinningGroupName string) (*ganymede.VirtualMachine, error)

CreateVirtualMachine send create operation to teleskop

func (*Libvirt) DeleteBridge

func (l *Libvirt) DeleteBridge(ctx context.Context, bridgeID uuid.UUID) error

DeleteBridge is

func (*Libvirt) DeleteVirtualMachine

func (l *Libvirt) DeleteVirtualMachine(ctx context.Context, vmID uuid.UUID) error

DeleteVirtualMachine delete virtual machine

func (*Libvirt) DetachInterface

func (l *Libvirt) DetachInterface(ctx context.Context, attachmentID uuid.UUID) error

DetachInterface is

func (*Libvirt) GetAttachment

func (l *Libvirt) GetAttachment(ctx context.Context, attachmentID uuid.UUID) (*ganymede.InterfaceAttachment, error)

GetAttachment is

func (*Libvirt) GetBridge

func (l *Libvirt) GetBridge(ctx context.Context, bridgeID uuid.UUID) (*ganymede.Bridge, error)

GetBridge is

func (*Libvirt) ListAttachment

func (l *Libvirt) ListAttachment(ctx context.Context) ([]ganymede.InterfaceAttachment, error)

ListAttachment is

func (*Libvirt) ListBridge

func (l *Libvirt) ListBridge(ctx context.Context) ([]ganymede.Bridge, error)

ListBridge is

func (*Libvirt) StartVirtualMachine

func (l *Libvirt) StartVirtualMachine(ctx context.Context, vmID uuid.UUID) error

StartVirtualMachine send start operation to teleskop

Jump to

Keyboard shortcuts

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