image

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InlineBuilder = "<in-line>"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Compatibilitier

type Compatibilitier interface {
	AddDeprecated(deprecated ...string)
	AddRemoved(removed ...string)
	AddChanged(changed ...string)
}

Compatibilitier is the interface for the compatibility checker

type Image

type Image struct {
	Builder           interface{}            `yaml:"builder"`
	Children          map[string][]string    `yaml:"children"`
	Labels            map[string]string      `yaml:"labels"`
	Name              string                 `yaml:"name"`
	Parents           map[string][]string    `yaml:"parents"`
	PersistentLabels  map[string]string      `yaml:"persistent_labels"`
	PersistentVars    map[string]interface{} `yaml:"persistent_vars"`
	RegistryHost      string                 `yaml:"registry"`
	RegistryNamespace string                 `yaml:"namespace"`
	Tags              []string               `yaml:"tags"`
	Vars              map[string]interface{} `yaml:"vars"`
	Version           string                 `yaml:"version"`
}

Image is the domain definition of a docker image

func (*Image) CheckCompatibility

func (i *Image) CheckCompatibility(compabilitiy Compatibilitier)

CheckCompatibility checks that image compatibility

func (*Image) Copy

func (i *Image) Copy() (*Image, error)

Copy method return a copy of the instanced Image

func (*Image) CreateDomainImage

func (i *Image) CreateDomainImage() (*domainimage.Image, error)

CreateDomainImage creates a domain image from the image

func (*Image) YAMLMarshal

func (i *Image) YAMLMarshal() ([]byte, error)

YAMLMarshal marshals the image to YAML

func (*Image) YAMLUnmarshal

func (i *Image) YAMLUnmarshal(in []byte) error

YAMLUnmarshal unmarshals the image from a YAML string

Jump to

Keyboard shortcuts

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