cloudimg

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudImg

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

CloudImg stores cloud image blobs for UEFI boot under Cloud Hypervisor.

func New

func New(ctx context.Context, conf *config.Config) (*CloudImg, error)

func (*CloudImg) Config

func (c *CloudImg) Config(ctx context.Context, vms []*types.VMConfig) (result [][]*types.StorageConfig, boot []*types.BootConfig, err error)

Config resolves cloud images to qcow2 storage plus firmware boot config.

func (*CloudImg) Delete

func (c *CloudImg) Delete(ctx context.Context, ids []string) ([]string, error)

func (*CloudImg) GCModule

func (c *CloudImg) GCModule() gc.Module[images.ImageGCSnapshot]

func (*CloudImg) Import

func (c *CloudImg) Import(ctx context.Context, name string, tracker progress.Tracker, file ...string) error

func (*CloudImg) ImportFromReader added in v0.2.7

func (c *CloudImg) ImportFromReader(ctx context.Context, name string, tracker progress.Tracker, r io.Reader) error

func (*CloudImg) Inspect

func (c *CloudImg) Inspect(ctx context.Context, id string) (*types.Image, error)

Inspect returns (nil, nil) if not found.

func (*CloudImg) List

func (c *CloudImg) List(ctx context.Context) ([]*types.Image, error)

func (*CloudImg) Pull

func (c *CloudImg) Pull(ctx context.Context, url string, force bool, tracker progress.Tracker) error

func (*CloudImg) RegisterGC

func (c *CloudImg) RegisterGC(orch *gc.Orchestrator)

func (*CloudImg) Type

func (c *CloudImg) Type() string

type Config

type Config struct {
	images.BaseConfig
}

func NewConfig

func NewConfig(conf *config.Config) *Config

func (*Config) EnsureDirs

func (c *Config) EnsureDirs() error

func (*Config) FirmwarePath

func (c *Config) FirmwarePath() string

FirmwarePath returns the UEFI firmware blob (CLOUDHV.fd) under conf.RootDir/firmware.

Jump to

Keyboard shortcuts

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