osmodifierapi

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentifiedPartition

type IdentifiedPartition struct {
	Id string `yaml:"id"`
}

func (*IdentifiedPartition) IsValid

func (i *IdentifiedPartition) IsValid() error

type OS

type OS struct {
	Hostname          string                               `yaml:"hostname"`
	SELinux           imagecustomizerapi.SELinux           `yaml:"selinux"`
	Users             []imagecustomizerapi.User            `yaml:"users"`
	Overlays          *[]Overlay                           `yaml:"overlays"`
	KernelCommandLine imagecustomizerapi.KernelCommandLine `yaml:"kernelCommandLine"`
	Services          imagecustomizerapi.Services          `yaml:"services"`
	Modules           imagecustomizerapi.ModuleList        `yaml:"modules"`
	Verity            *Verity                              `yaml:"verity"`
	RootDevice        string                               `yaml:"rootDevice"`
}

OS defines how each system present on the image is supposed to be configured.

func (*OS) IsValid

func (s *OS) IsValid() error

type Overlay

type Overlay struct {
	LowerDir  string               `yaml:"lowerDir"`
	UpperDir  string               `yaml:"upperDir"`
	WorkDir   string               `yaml:"workDir"`
	Partition *IdentifiedPartition `yaml:"partition"`
}

func (*Overlay) IsValid

func (o *Overlay) IsValid() error

type Verity

type Verity struct {
	// ID is used to correlate `Verity` objects with `FileSystem` objects.
	Id string `yaml:"id"`
	// The name of the mapper block device.
	// Must be 'root' for the rootfs (/) filesystem.
	Name string `yaml:"name"`
	// The 'Partition' to use as the data partition.
	DataDevice string `yaml:"dataDevice"`
	// The 'Partition' to use as the hash partition.
	HashDevice string `yaml:"hashDevice"`
	// How to handle corruption.
	CorruptionOption imagecustomizerapi.CorruptionOption `yaml:"corruptionOption"`
}

func (*Verity) IsValid

func (v *Verity) IsValid() error

Jump to

Keyboard shortcuts

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