Documentation ¶
Overview ¶
This package provides an interface to fake a CSP API for QEMU instances.
Index ¶
- type Cloud
- func (c *Cloud) GetLoadBalancerEndpoint(ctx context.Context) (host, port string, err error)
- func (c *Cloud) InitSecretHash(ctx context.Context) ([]byte, error)
- func (c *Cloud) List(ctx context.Context) ([]metadata.InstanceMetadata, error)
- func (c *Cloud) Self(ctx context.Context) (metadata.InstanceMetadata, error)
- func (c *Cloud) UID(_ context.Context) (string, error)
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 (*Cloud) GetLoadBalancerEndpoint ¶
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 ¶
InitSecretHash returns the hash of the init secret.
Click to show internal directories.
Click to hide internal directories.