Documentation
¶
Overview ¶
Package appspec parses inline Compose and Quadlet application specifications for use by both server-side code and the device agent.
Index ¶
- Variables
- func ParseComposeFromSpec(contents []v1beta1.ApplicationContent) (*common.ComposeSpec, error)
- func ParseQuadletImageReferencesFromSpec(contents []v1beta1.ApplicationContent) ([]string, error)
- func ParseQuadletReferencesFromSpec(contents []v1beta1.ApplicationContent) (map[string]*common.QuadletReferences, error)
- type KubePodImageReferences
Constants ¶
This section is empty.
Variables ¶
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.