Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 LintOutput ¶ added in v0.9.0
type LintOutput struct {
Image string `json:"image,omitempty"`
Local bool `json:"local,omitempty"`
Issues []pkg.LintIssue `json:"issues"`
ErrorCount int `json:"error_count"`
WarnCount int `json:"warning_count"`
Success bool `json:"success"`
}
LintOutput represents the JSON output structure for the lint command
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
Click to show internal directories.
Click to hide internal directories.