types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package types defines the shared data structures of the udf library, mirroring the manifest.json and image config layout of image archives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageConfig

type ImageConfig struct {
	Architecture string `json:"architecture"`
	Config       struct {
		User         string         `json:"User"`
		Env          []string       `json:"Env"`
		Entrypoint   []string       `json:"Entrypoint"`
		Cmd          []string       `json:"Cmd"`
		WorkingDir   string         `json:"WorkingDir"`
		ExposedPorts map[string]any `json:"ExposedPorts"`
	} `json:"config"`
}

type ImageMetadata

type ImageMetadata struct {
	Index      int
	Total      int
	RepoTags   []string
	ConfigPath string
	LayerOrder []string
	Config     *ImageConfig
	ConfigRaw  any
}

type ManifestItem

type ManifestItem struct {
	Config   string   `json:"Config"`
	RepoTags []string `json:"RepoTags"`
	Layers   []string `json:"Layers"`
}

Jump to

Keyboard shortcuts

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