appspec

package
v1.4.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package appspec parses inline Compose and Quadlet application specifications for use by both server-side code and the device agent.

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseComposeFiles = []string{
		"docker-compose.yaml",
		"docker-compose.yml",
		"podman-compose.yaml",
		"podman-compose.yml",
	}

	OverrideComposeFiles = []string{
		"docker-compose.override.yaml",
		"docker-compose.override.yml",
		"podman-compose.override.yaml",
		"podman-compose.override.yml",
	}
)

Functions

func ParseComposeFromSpec

func ParseComposeFromSpec(contents []v1beta1.ApplicationContent) (*common.ComposeSpec, error)

ParseComposeFromSpec parses a Compose specification from a slice of inline application content for use by server-side code and inline application providers.

func ParseQuadletImageReferencesFromSpec

func ParseQuadletImageReferencesFromSpec(contents []v1beta1.ApplicationContent) ([]string, error)

ParseQuadletImageReferencesFromSpec returns external image references from inline Quadlet units, including the referenced Pod YAML for .kube units.

func ParseQuadletReferencesFromSpec

func ParseQuadletReferencesFromSpec(contents []v1beta1.ApplicationContent) (map[string]*common.QuadletReferences, error)

ParseQuadletReferencesFromSpec parses Quadlet specifications from a slice of inline application content. Drop-in overrides are applied to ensure that the specs It returns a map where the key is the filename and the value is the parsed QuadletSpec.

Types

type KubePodImageReferences

type KubePodImageReferences struct {
	// VolumeImages lists images used by image-backed Pod volumes.
	VolumeImages []string
	// InitContainerImages lists images used by init containers.
	InitContainerImages []string
	// ContainerImages lists images used by regular containers.
	ContainerImages []string
}

KubePodImageReferences lists images referenced by a Pod manifest used by a .kube Quadlet.

func ParseKubePodImageReferences

func ParseKubePodImageReferences(podYAML []byte) (KubePodImageReferences, error)

ParseKubePodImageReferences parses the image references from a Pod manifest.

Jump to

Keyboard shortcuts

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