image

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package image provides data structures and logic for representing and manipulating container images within the build state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Healthcheck *image.HealthConfig `json:",omitempty"`
	specs.ImageConfig
}

Config is a docker compatible config for an image.

type Image

type Image struct {
	Architecture string `json:"architecture"`
	OS           string `json:"os"`
	Config       Config `json:"config"`
}

Image is a partial of the standard Image struct defined as part of the image opencontainers spec at https://github.com/opencontainers/image-spec/blob/master/specs-go/v1/config.go#L82

func NewImage

func NewImage() *Image

NewImage returns a new image.

func (*Image) Clone

func (img *Image) Clone() *Image

Clone creates a copy of the image.

Jump to

Keyboard shortcuts

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