cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command

func SetVersion

func SetVersion(version string)

SetVersion sets the version for the root command

Types

type DiskOutput added in v0.2.0

type DiskOutput struct {
	Device      string            `json:"device"`
	Size        uint64            `json:"size"`
	SizeHuman   string            `json:"size_human"`
	Model       string            `json:"model,omitempty"`
	IsRemovable bool              `json:"is_removable"`
	Partitions  []PartitionOutput `json:"partitions"`
}

DiskOutput represents a disk in JSON output

type ListOutput added in v0.2.0

type ListOutput struct {
	Disks []DiskOutput `json:"disks"`
}

ListOutput represents the JSON output structure for the list command

type PartitionOutput added in v0.2.0

type PartitionOutput struct {
	Device     string `json:"device"`
	Size       uint64 `json:"size"`
	SizeHuman  string `json:"size_human"`
	MountPoint string `json:"mount_point,omitempty"`
	FileSystem string `json:"filesystem,omitempty"`
}

PartitionOutput represents a partition in JSON output

type StatusOutput added in v0.2.0

type StatusOutput struct {
	Image          string       `json:"image"`
	Digest         string       `json:"digest,omitempty"`
	Device         string       `json:"device"`
	ActiveRoot     string       `json:"active_root,omitempty"`
	ActiveSlot     string       `json:"active_slot,omitempty"`
	BootloaderType string       `json:"bootloader_type"`
	FilesystemType string       `json:"filesystem_type"`
	InstallDate    string       `json:"install_date,omitempty"`
	KernelArgs     []string     `json:"kernel_args,omitempty"`
	UpdateCheck    *UpdateCheck `json:"update_check,omitempty"`
}

StatusOutput represents the JSON output structure for the status command

type UpdateCheck added in v0.2.0

type UpdateCheck struct {
	Available     bool   `json:"available"`
	RemoteDigest  string `json:"remote_digest,omitempty"`
	CurrentDigest string `json:"current_digest,omitempty"`
	Error         string `json:"error,omitempty"`
}

UpdateCheck represents the update check result in JSON output

type UpdateCheckOutput added in v0.2.0

type UpdateCheckOutput struct {
	UpdateNeeded  bool   `json:"update_needed"`
	Image         string `json:"image"`
	Device        string `json:"device"`
	CurrentDigest string `json:"current_digest,omitempty"`
	NewDigest     string `json:"new_digest,omitempty"`
	Message       string `json:"message,omitempty"`
}

UpdateCheckOutput represents the JSON output structure for the update --check command

type ValidateOutput added in v0.2.0

type ValidateOutput struct {
	Device  string `json:"device"`
	Valid   bool   `json:"valid"`
	Message string `json:"message,omitempty"`
	Error   string `json:"error,omitempty"`
}

ValidateOutput represents the JSON output structure for the validate command

Jump to

Keyboard shortcuts

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