types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DockerDomain = "docker.io"
View Source
const DockerHubUrl = "https://hub.docker.com/"

Variables

This section is empty.

Functions

func GetUrl

func GetUrl(currentImage Image, destImage Image) (string, error)

Types

type Image

type Image struct {
	ImageName        `yaml:",inline" validate:"required"`
	Alias            []ImageName `yaml:"alias" validate:"omitempty,dive"`
	Path             string
	RelativeDir      string
	Parent           *Image `validate:"-"`
	Children         Images `validate:"omitempty,dive"`
	HasLocalParent   bool
	HasToBuild       bool
	HasParentToBuild bool
	EnvVariables     map[string]string `yaml:"envvars"`
	Packages         map[string]string `yaml:"packages"`
	Platforms        []string          `yaml:"platforms" validate:"platform-parent"`
}

func (Image) GetAllEnvVar

func (im Image) GetAllEnvVar() map[string]string

func (Image) GetAllPackages

func (im Image) GetAllPackages() map[string]string

func (Image) GetNames

func (im Image) GetNames() []string

func (Image) GetParents

func (im Image) GetParents() Images

type ImageName

type ImageName struct {
	Name string `yaml:"name" validate:"required"`
	Tag  string `yaml:"tag" validate:"required"`
}

func (ImageName) GetFullName

func (imn ImageName) GetFullName() string

func (ImageName) GetName

func (imn ImageName) GetName() string

func (ImageName) GetTag

func (imn ImageName) GetTag() string

type ImageType

type ImageType int
const (
	UNDEFINED ImageType = iota
	OFFICIAL
	UNOFFICIAL
	REGISTRY
)

func GetImageType

func GetImageType(imageData Image) ImageType

type Images

type Images []*Image

func (Images) FlagChanged

func (ims Images) FlagChanged(pathToBuild []string)

func (Images) FlagImagesToBuild

func (ims Images) FlagImagesToBuild(pathToBuild []string)

func (Images) GetAll

func (ims Images) GetAll() Images

func (Images) GetAllNames

func (ims Images) GetAllNames(includeChildren bool) []string

func (Images) GetImagesToBuild

func (ims Images) GetImagesToBuild() Images

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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