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.4.9
Published
Mar 13, 2025
Platform
js/wasm
Imports
8 packages
Last checked
52 minutes ago

Tools for package owners.