types

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	OS            string `json:"os"`
	Created       string `json:"created"`
	DockerVersion string `json:"docker_version"`
	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

	// StoredSize is how much space the image's layers take in the archive,
	// when an index knows their members; zero when it does not.
	StoredSize int64
}

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