ctr2disk

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	AssetDir       string
	CTRImageName   string
	CTRImageSource string
	VMImageDevice  string
	VMImageMount   string
	Services       []string
	LoginUser      string
	LoginShell     string
	Debug          bool
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(fs afero.Fs, opts ...BuilderOpt) (*Builder, error)

func (*Builder) MakeVMImage

func (b *Builder) MakeVMImage() (err error)

type BuilderOpt

type BuilderOpt func(*Builder)

func WithAssetDir

func WithAssetDir(assetDir string) BuilderOpt

func WithCTRImageName

func WithCTRImageName(ctrImageName string) BuilderOpt

func WithCTRImageSource added in v0.6.0

func WithCTRImageSource(ctrImageSource string) BuilderOpt

func WithDebug

func WithDebug(debug bool) BuilderOpt

func WithLoginShell

func WithLoginShell(loginShell string) BuilderOpt

func WithLoginUser

func WithLoginUser(user string) BuilderOpt

func WithServices

func WithServices(services []string) BuilderOpt

func WithVMImageDevice

func WithVMImageDevice(vmImageDevice string) BuilderOpt

func WithVMImageMount

func WithVMImageMount(vmImageMount string) BuilderOpt

Jump to

Keyboard shortcuts

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