package transform

import "github.com/compose-spec/compose-go/v2/transform"

Index

Functions

func Canonical

func Canonical(yaml map[string]any, ignoreParseError bool) (map[string]any, error)

Canonical transforms a compose model into canonical syntax

func SetDefaultValues

func SetDefaultValues(yaml map[string]any) (map[string]any, error)

SetDefaultValues transforms a compose model to set default values to missing attributes

Source Files

build.go canonical.go defaults.go dependson.go device.go devices.go envfile.go extends.go external.go gpus.go include.go mapping.go ports.go secrets.go services.go ssh.go ulimits.go volume.go

Version
v2.6.1 (latest)
Published
Apr 22, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
now

Tools for package owners.