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: 0

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