image

package
v0.7.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	specs.ImageConfig

	Healthcheck *image.HealthConfig `json:",omitempty"`
}

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