bootc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootcDisk

type BootcDisk struct {
	ImageNameOrId string
	User          user.User
	Ctx           context.Context
	ImageId       string

	RepoTag   string
	CreatedAt time.Time
	Directory string
	// contains filtered or unexported fields
}

func NewBootcDisk

func NewBootcDisk(imageNameOrId string, ctx context.Context, user user.User) *BootcDisk

func (*BootcDisk) Cleanup

func (p *BootcDisk) Cleanup() (err error)

func (*BootcDisk) GetCreatedAt

func (p *BootcDisk) GetCreatedAt() time.Time

GetCreatedAt returns the creation time of the disk image

func (*BootcDisk) GetDirectory

func (p *BootcDisk) GetDirectory() string

func (*BootcDisk) GetImageId

func (p *BootcDisk) GetImageId() string

func (*BootcDisk) GetRepoTag

func (p *BootcDisk) GetRepoTag() string

GetRepoTag returns the repository of the container image

func (*BootcDisk) GetSize

func (p *BootcDisk) GetSize() (int64, error)

GetSize returns the virtual size of the disk in bytes; this may be larger than the actual disk usage

func (*BootcDisk) Install

func (p *BootcDisk) Install(quiet bool, config DiskImageConfig) (err error)

type DiskImageConfig

type DiskImageConfig struct {
	Filesystem  string
	RootSizeMax string
	DiskSize    string
}

DiskImageConfig defines configuration for the

Jump to

Keyboard shortcuts

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