Documentation
¶
Index ¶
- Constants
- type MockRegistry
- func (r *MockRegistry) Close()
- func (r *MockRegistry) PushHTTPImage(name, tag string) error
- func (r *MockRegistry) PushPXEImage(name, tag, architecture string) error
- func (r *MockRegistry) PushPXEImageNoSquashFS(name, tag, architecture string) error
- func (r *MockRegistry) PushPXEImageOldFormat(name, tag, architecture string) error
- func (r *MockRegistry) RegistryAddress() string
- func (r *MockRegistry) URL() string
Constants ¶
const ( // MediaTypeKernel represents the Linux kernel image media type MediaTypeKernel = "application/vnd.ironcore.image.kernel" // MediaTypeInitrd represents the initial ramdisk media type MediaTypeInitrd = "application/vnd.ironcore.image.initramfs" // MediaTypeSquashfs represents the SquashFS filesystem media type MediaTypeSquashfs = "application/vnd.ironcore.image.squashfs" // MediaTypeUKI represents the unified kernel image media type MediaTypeUKI = "application/vnd.ironcore.image.uki" // MediaTypeKernelOld represents the legacy kernel media type MediaTypeKernelOld = "application/io.gardenlinux.kernel" // MediaTypeInitrdOld represents the legacy initrd media type MediaTypeInitrdOld = "application/io.gardenlinux.initrd" // MediaTypeOCIConfig represents the OCI image config media type MediaTypeOCIConfig = "application/vnd.oci.image.config.v1+json" )
OCI media types for boot components
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRegistry ¶
type MockRegistry struct {
// contains filtered or unexported fields
}
MockRegistry provides an in-memory OCI registry for testing
func NewMockRegistry ¶
func NewMockRegistry() *MockRegistry
NewMockRegistry creates a new mock OCI registry server
func (*MockRegistry) Close ¶
func (r *MockRegistry) Close()
Close shuts down the mock registry server
func (*MockRegistry) PushHTTPImage ¶
func (r *MockRegistry) PushHTTPImage(name, tag string) error
PushHTTPImage adds an HTTP boot image with UKI layer
func (*MockRegistry) PushPXEImage ¶
func (r *MockRegistry) PushPXEImage(name, tag, architecture string) error
PushPXEImage adds a PXE boot image with kernel, initrd, and squashfs layers
func (*MockRegistry) PushPXEImageNoSquashFS ¶
func (r *MockRegistry) PushPXEImageNoSquashFS(name, tag, architecture string) error
PushPXEImageNoSquashFS adds a PXE boot image with only kernel and initrd layers (no squashfs). Used for initramfs-only images such as the sanitizer.
func (*MockRegistry) PushPXEImageOldFormat ¶
func (r *MockRegistry) PushPXEImageOldFormat(name, tag, architecture string) error
PushPXEImageOldFormat adds a PXE boot image using old Gardenlinux media types
func (*MockRegistry) RegistryAddress ¶
func (r *MockRegistry) RegistryAddress() string
RegistryAddress returns the registry address without http:// prefix
func (*MockRegistry) URL ¶
func (r *MockRegistry) URL() string
URL returns the base URL of the mock registry