Help us shape the future of Go! Take the 2026 Go Developer Survey

metadata

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CreationConfigLabel = "devsy.sh/metadata-creation-config"

CreationConfigLabel identifies a metadata chain ending with the creation-time workspace config.

View Source
const ImageMetadataLabel = pkgconfig.DevcontainerMetadataLabel

Variables

This section is empty.

Functions

func DevContainerConfigToImageMetadata

func DevContainerConfigToImageMetadata(devConfig *config.DevContainerConfig) *config.ImageMetadata

func FeatureConfigToImageMetadata

func FeatureConfigToImageMetadata(feature *config.FeatureConfig) *config.ImageMetadata

func GetDevContainerMetadata

func GetDevContainerMetadata(
	substitutionContext *config.SubstitutionContext,
	baseImageMetadata *config.ImageMetadataConfig,
	devContainerConfig *config.SubstitutedConfig,
	featuresConfig []*config.FeatureSet,
) (*config.ImageMetadataConfig, error)

func GetImageMetadata

func GetImageMetadata(
	imageDetails *config.ImageDetails,
	substituteContext *config.SubstitutionContext,
) (*config.ImageMetadataConfig, error)

func GetImageMetadataFromContainer

func GetImageMetadataFromContainer(
	containerDetails *config.ContainerDetails,
	substituteContext *config.SubstitutionContext,
) (*config.ImageMetadataConfig, error)

func MarshalImageMetadata added in v1.1.0

func MarshalImageMetadata(raw []*config.ImageMetadata) ([]byte, error)

func ValidateImageMetadata added in v1.24.0

func ValidateImageMetadata(value string) error

ValidateImageMetadata is the strict counterpart to legacy permissive decoding. Errors deliberately exclude metadata, which can contain commands and secrets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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