A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/moby/moby/v2@v2.0.0-20250814210528-a34c4d9bb99f/daemon/internal/image below:

image package - github.com/moby/moby/v2/daemon/internal/image - Go Packages

TypeLayers is used for RootFS.Type for filesystems organized into layers.

This section is empty.

CheckOS checks if the given OS matches the host's platform, and returns an error otherwise.

ChildConfig is the configuration to apply to an Image to create a new Child image. Other properties of the image are copied from the parent.

Details provides additional image data

type DigestWalkFunc func(id digest.Digest) error

DigestWalkFunc is function called by StoreBackend.Walk

Exporter provides interface for loading and saving images

History stores build commands that were used to create an image

NewHistory creates a new history struct from arguments, and sets the created time to the current time in UTC

ID is the content-addressable ID of an image.

func (id ID) Digest() digest.Digest

Digest converts ID into a digest

type Image struct {
	V1Image

	
	
	
	
	
	Parent ID `json:"parent,omitempty"` 

	
	
	RootFS  *RootFS   `json:"rootfs,omitempty"`
	History []History `json:"history,omitempty"`

	
	
	OSVersion  string   `json:"os.version,omitempty"`
	OSFeatures []string `json:"os.features,omitempty"`

	
	Details *Details `json:"-"`
	
}

Image stores the image configuration

Clone clones an image and changes ID.

NewChildImage creates a new Image as a child of this image.

NewFromJSON creates an Image configuration from json.

NewImage creates a new image with the given ID

BaseImgArch returns the image's architecture. If not populated, defaults to the host runtime arch.

BaseImgVariant returns the image's variant, whether populated or not. This avoids creating an inconsistency where the stored image variant is "greater than" (i.e. v8 vs v6) the actual image variant.

ID returns the image's content-addressable ID.

MarshalJSON serializes the image to JSON. It sorts the top-level keys so that JSON that's been manipulated by a push/pull cycle with a legacy registry won't end up with a different key order.

OperatingSystem returns the image's operating system. If not populated, defaults to the host runtime OS.

Platform generates an OCI platform from the image

RawJSON returns the immutable JSON associated with the image.

RunConfig returns the image's container config.

LayerGetReleaser is a minimal interface for getting and releasing images.

type RootFS struct {
	Type    string         `json:"type"`
	DiffIDs []layer.DiffID `json:"diff_ids,omitempty"`
}

RootFS describes images root filesystem This is currently a placeholder that only supports layers. In the future this can be made into an interface that supports different implementations.

NewRootFS returns empty RootFS struct

Append appends a new diffID to rootfs

ChainID returns the ChainID for the top layer in RootFS.

Clone returns a copy of the RootFS

Store is an interface for creating and accessing images

NewImageStore returns new store object for given set of layer stores

StoreBackend provides interface for image.Store persistence

NewFSStoreBackend returns new filesystem based backend for image.Store

type V1Image struct {
	
	ID string `json:"id,omitempty"`

	
	
	
	
	
	Parent string `json:"parent,omitempty"`

	
	Comment string `json:"comment,omitempty"`

	
	Created *time.Time `json:"created"`

	
	
	
	Container string `json:"container,omitempty"`

	
	
	ContainerConfig container.Config `json:"container_config,omitempty"`

	
	
	
	DockerVersion string `json:"docker_version,omitempty"`

	
	
	Author string `json:"author,omitempty"`

	
	Config *container.Config `json:"config,omitempty"`

	
	Architecture string `json:"architecture,omitempty"`

	
	Variant string `json:"variant,omitempty"`

	
	OS string `json:"os,omitempty"`

	
	Size int64 `json:",omitempty"`
}

V1Image stores the V1 image configuration.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4