iso

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package iso provides utilities for creating ISO images.

Index

Constants

View Source
const (
	// GenisoimageBinary is the name of the genisoimage executable.
	GenisoimageBinary = "genisoimage"
)

Variables

This section is empty.

Functions

func CheckPrerequisites

func CheckPrerequisites(ctx opctx.Ctx) error

CheckPrerequisites verifies that genisoimage is available.

Types

type CreateISOOptions

type CreateISOOptions struct {
	// OutputPath is the path where the ISO will be created.
	OutputPath string
	// VolumeID is the volume identifier for the ISO.
	VolumeID string
	// InputFiles is the list of files to include in the ISO.
	InputFiles []string
	// UseJoliet enables Joliet extensions for longer filenames.
	UseJoliet bool
	// UseRockRidge enables Rock Ridge extensions for POSIX attributes.
	UseRockRidge bool
	// Description is an optional human-readable description for progress display.
	Description string
}

CreateISOOptions contains configuration for creating an ISO image.

type Runner

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

Runner encapsulates options and dependencies for creating ISO images.

func NewRunner

func NewRunner(ctx opctx.Ctx) *Runner

NewRunner constructs a new Runner that can be used to create ISO images.

func (*Runner) CreateISO

func (r *Runner) CreateISO(ctx context.Context, options CreateISOOptions) error

CreateISO creates an ISO image from the specified input files.

Jump to

Keyboard shortcuts

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