image

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package image discovers container images inside rendered Kubernetes manifests by parsing string values, not by hard-coding a table of kinds and field names.

Every string value reachable in a manifest tree is fed through distribution/reference — the canonical OCI image reference parser used by Docker, containerd, and Kubernetes. A string is recognised as an image when it parses as a named reference AND carries either a tag or a digest, which excludes plain hostnames, paths, and version-only strings like "v1.2.3".

Because detection is purely value-based, new CRDs that embed image references are picked up automatically — no per-kind override list to maintain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(doc map[string]any) []string

Extract returns nil when no images are found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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