Documentation ¶
Index ¶
- type Libvirt
- func (l *Libvirt) AttachInterface(ctx context.Context, vmID, bridgeID, leaseID uuid.UUID, average int, ...) (*ganymede.InterfaceAttachment, error)
- func (l *Libvirt) CreateBridge(ctx context.Context, name string, vlanID uint32) (*ganymede.Bridge, error)
- func (l *Libvirt) CreateInternalBridge(ctx context.Context, name string) (*ganymede.Bridge, error)
- func (l *Libvirt) CreateVirtualMachine(ctx context.Context, name string, vcpus uint32, memoryKiB uint64, ...) (*ganymede.VirtualMachine, error)
- func (l *Libvirt) DeleteBridge(ctx context.Context, bridgeID uuid.UUID) error
- func (l *Libvirt) DeleteVirtualMachine(ctx context.Context, vmID uuid.UUID) error
- func (l *Libvirt) DetachInterface(ctx context.Context, attachmentID uuid.UUID) error
- func (l *Libvirt) GetAttachment(ctx context.Context, attachmentID uuid.UUID) (*ganymede.InterfaceAttachment, error)
- func (l *Libvirt) GetBridge(ctx context.Context, bridgeID uuid.UUID) (*ganymede.Bridge, error)
- func (l *Libvirt) ListAttachment(ctx context.Context) ([]ganymede.InterfaceAttachment, error)
- func (l *Libvirt) ListBridge(ctx context.Context) ([]ganymede.Bridge, error)
- func (l *Libvirt) StartVirtualMachine(ctx context.Context, vmID uuid.UUID) error
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 (*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 ¶
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 ¶
DeleteBridge is
func (*Libvirt) DeleteVirtualMachine ¶
DeleteVirtualMachine delete virtual machine
func (*Libvirt) DetachInterface ¶
DetachInterface is
func (*Libvirt) GetAttachment ¶
func (l *Libvirt) GetAttachment(ctx context.Context, attachmentID uuid.UUID) (*ganymede.InterfaceAttachment, error)
GetAttachment is
func (*Libvirt) ListAttachment ¶
ListAttachment is
func (*Libvirt) ListBridge ¶
ListBridge is
Click to show internal directories.
Click to hide internal directories.