oskind

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package oskind is the single source of truth for the string values of the OS recipe criterion. It is intentionally a leaf package with no internal dependencies so it can be imported from anywhere in the tree (pkg/recipe for the typed CriteriaOSType constants, pkg/collector for factory backend selection, pkg/k8s/agent for pod-manifest gating, pkg/snapshotter for env-var validation, and the CLI) without reintroducing the pkg/recipe -> pkg/snapshotter -> pkg/collector import cycle that previously forced these constants to be duplicated in three places with manual "must stay in sync" comments.

Index

Constants

View Source
const (
	Any         = "any"
	Ubuntu      = "ubuntu"
	RHEL        = "rhel"
	COS         = "cos"
	AmazonLinux = "amazonlinux"
	OracleLinux = "ol"
	Talos       = "talos"
)

Supported OS criterion values. Keep this list aligned with the `os` enum in api/aicr/v1/server.yaml and the user-facing OS lists in docs/.

Variables

This section is empty.

Functions

func All

func All() []string

All returns every supported OS value (excluding `Any`) sorted alphabetically. Used by the recipe package's GetCriteriaOSTypes and any caller that needs to enumerate concrete OS choices.

func IsKnown

func IsKnown(s string) bool

IsKnown reports whether s is one of the supported OS values, including `Any`. Aliases (e.g., al2/al2023 -> amazonlinux) are NOT recognized here; callers that need alias normalization should use recipe.ParseCriteriaOSType.

Types

This section is empty.

Jump to

Keyboard shortcuts

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