Documentation ¶
Index ¶
- type LibvirtInstance
- func (l *LibvirtInstance) ConnectWithInfrastructureService(_ context.Context, url string) error
- func (l *LibvirtInstance) InitializeInfrastructure(ctx context.Context) (nodes *config.NodeInformation, err error)
- func (l *LibvirtInstance) TerminateConnection() error
- func (l *LibvirtInstance) TerminateInfrastructure() error
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.
Click to show internal directories.
Click to hide internal directories.