storage

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: GPL-3.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImageAlreadyExists = errors.New("image already exists")
)

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(logger *slog.Logger, dataDir string) (*Storage, error)

func (*Storage) CheckDownloadAarch64EFIImage

func (s *Storage) CheckDownloadAarch64EFIImage(ctx context.Context) (string, error)

func (*Storage) CheckDownloadBaseImage

func (s *Storage) CheckDownloadBaseImage(ctx context.Context) (string, error)

func (*Storage) CheckDownloadVMBIOS

func (s *Storage) CheckDownloadVMBIOS(ctx context.Context) (string, error)

func (*Storage) CheckVMImageExists

func (s *Storage) CheckVMImageExists() (string, error)

func (*Storage) DataDirPath

func (s *Storage) DataDirPath() string

func (*Storage) GetAarch64EFIImagePath

func (s *Storage) GetAarch64EFIImagePath() string

func (*Storage) GetVMImagePath

func (s *Storage) GetVMImagePath() string

func (*Storage) ListNetTapAllocations

func (s *Storage) ListNetTapAllocations() ([]nettap.Alloc, error)

func (*Storage) ReleaseNetTapAllocation

func (s *Storage) ReleaseNetTapAllocation(tapName string) error

func (*Storage) RunCLIImageBuild

func (s *Storage) RunCLIImageBuild(showBuilderVMDisplay bool, overwrite bool) int

func (*Storage) SaveNetTapAllocation

func (s *Storage) SaveNetTapAllocation(tapName string, pid int) error

Jump to

Keyboard shortcuts

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