image

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvVariables

func EnvVariables() map[string]string

func TemplateFile

func TemplateFile(templateFile string, destinationFile string, args map[string]interface{}) error

func TemplateList

func TemplateList(source []string, configSet map[string]interface{}) ([]string, error)

func TemplateMap

func TemplateMap(source map[string]string, configSet map[string]interface{}) (map[string]string, error)

func TemplateString

func TemplateString(pattern string, args map[string]interface{}) (string, error)

Types

type Image

type Image struct {
	Name               string
	Registry           string
	Prefix             string
	DockerfileTemplate string
	Dockerfile         string
	BuildContextDir    string
	Variables          map[string]interface{}

	Version   string
	Labels    map[string]string
	BuildArgs map[string]string
	Platforms []string
	Options   map[string]string
	Flags     *config.Flags
	// contains filtered or unexported fields
}

func From

func From(name string, cfg *config.Config, configSet map[string]interface{}, flags *config.Flags) *Image

func New

func New() *Image

func (*Image) ConfigSet

func (i *Image) ConfigSet() map[string]interface{}

func (*Image) Equal

func (i *Image) Equal(image *Image) bool

func (*Image) RemoveTemporaryDockerfile

func (i *Image) RemoveTemporaryDockerfile()

func (*Image) Representation

func (i *Image) Representation() map[string]interface{}

func (*Image) SetDockerfileTemplate

func (i *Image) SetDockerfileTemplate(templateFile string) *Image

func (*Image) SetFlags

func (i *Image) SetFlags(flags *config.Flags) *Image

func (*Image) SetMaintainer

func (i *Image) SetMaintainer(maintainer string) *Image

func (*Image) String

func (i *Image) String() string

func (*Image) Tags

func (i *Image) Tags() []string

func (*Image) UniqName

func (i *Image) UniqName() string

func (*Image) Validate

func (i *Image) Validate() error

Jump to

Keyboard shortcuts

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