server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaTypeUKI = "application/vnd.ironcore.image.uki"
)

Variables

This section is empty.

Functions

func RunBootServer

func RunBootServer(
	ipxeServerAddr string,
	ipxeServiceURL string,
	k8sClient client.Client,
	log logr.Logger,
	registryValidator *registry.Validator,
	defaultOCIImage string,
	defaultUKIURL string,
	imageServerURL string,
	architecture string,
) error

func RunImageProxyServer

func RunImageProxyServer(imageProxyServerAddr string, k8sClient client.Client, validator *registry.Validator, log logr.Logger)

func SetStatusCondition added in v0.3.0

func SetStatusCondition(ctx context.Context, k8sClient client.Client, log logr.Logger, obj client.Object, conditionType string) error

Types

type AuthMethod added in v0.3.0

type AuthMethod int
const (
	AuthNone   AuthMethod = iota // Anonymous access
	AuthBearer                   // Bearer token via /token endpoint
)

type IPXETemplateData

type IPXETemplateData struct {
	KernelURL     string
	InitrdURL     string
	SquashfsURL   string
	RegistryURL   string
	IPXEServerURL string
}

type ImageDetails

type ImageDetails struct {
	OCIImageName   string
	RegistryDomain string
	RepositoryName string
	LayerDigest    string
	Version        string
}

type RegistryInfo added in v0.3.0

type RegistryInfo struct {
	Domain     string
	AuthMethod AuthMethod
	TokenURL   string // For bearer token auth
}

type TokenResponse

type TokenResponse struct {
	Token       string `json:"token"`        // Docker registry format
	AccessToken string `json:"access_token"` // OAuth2 format (takes precedence)
}

TokenResponse represents the JSON response from an OCI registry token endpoint. Supports both Docker registry format (token) and OAuth2 format (access_token).

Jump to

Keyboard shortcuts

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