qemu

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Overview

This package provides an interface to fake a CSP API for QEMU instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

type Cloud struct{}

Cloud provides an interface to fake a CSP API for QEMU instances.

func New

func New() *Cloud

New returns a new Cloud instance.

func (*Cloud) GetLoadBalancerEndpoint

func (c *Cloud) GetLoadBalancerEndpoint(ctx context.Context) (host, port string, err error)

GetLoadBalancerEndpoint returns the endpoint of the load balancer. For QEMU, the load balancer is the first control plane node returned by the metadata API.

func (*Cloud) InitSecretHash

func (c *Cloud) InitSecretHash(ctx context.Context) ([]byte, error)

InitSecretHash returns the hash of the init secret.

func (*Cloud) List

func (c *Cloud) List(ctx context.Context) ([]metadata.InstanceMetadata, error)

List retrieves all instances belonging to the current constellation.

func (*Cloud) Self

Self retrieves the current instance.

func (*Cloud) UID

func (c *Cloud) UID(_ context.Context) (string, error)

UID returns the UID of the constellation.

Jump to

Keyboard shortcuts

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