buildtree

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildTree

type BuildTree struct {
	// contains filtered or unexported fields
}

BuildTree is a build tree

func ReadBuildTree

func ReadBuildTree(r io.Reader, variableMap map[string]string, variableFiles []string) (*BuildTree, error)

ReadBuildTree reads a build tree from reader

func ReadBuildTreeFromFile

func ReadBuildTreeFromFile(buildFile string, variableMap map[string]string, variableFiles []string) (*BuildTree, error)

ReadBuildTreeFromFile reads BuildTree from a build file

func (*BuildTree) Build

func (t *BuildTree) Build() error

Build builds all new images

func (*BuildTree) Clean added in v1.4.2

func (t *BuildTree) Clean()

Clean .

func (*BuildTree) FindLatestTag added in v1.4.0

func (t *BuildTree) FindLatestTag(name string) (string, error)

FindLatestTag .

func (*BuildTree) Prepare

func (t *BuildTree) Prepare(optFns ...PrepareOptFn) error

func (*BuildTree) PrintTree

func (t *BuildTree) PrintTree(noColor bool)

PrintTree prints the build tree

func (*BuildTree) Pull added in v1.4.7

func (t *BuildTree) Pull() error

Pull .

func (*BuildTree) Push

func (t *BuildTree) Push() error

Push pushes new images to registry

func (*BuildTree) TryBuild added in v1.1.0

func (t *BuildTree) TryBuild() error

TryBuild tries to build new images locally, then delete them

func (*BuildTree) WaitImageExist added in v1.5.1

func (t *BuildTree) WaitImageExist(name string, timeout time.Duration, interval time.Duration) error

type ErrCyclicDependency added in v1.3.0

type ErrCyclicDependency struct {
	Name string
}

func (ErrCyclicDependency) Error added in v1.3.0

func (e ErrCyclicDependency) Error() string

type ErrDependencyMissing added in v1.3.0

type ErrDependencyMissing struct {
	Name   string
	Depend string
}

func (ErrDependencyMissing) Error added in v1.3.0

func (e ErrDependencyMissing) Error() string

type ErrImageTagOutdated added in v1.3.0

type ErrImageTagOutdated struct {
	Name string
}

func (ErrImageTagOutdated) Error added in v1.3.0

func (e ErrImageTagOutdated) Error() string

type ErrMismatchDependencyImage added in v1.3.0

type ErrMismatchDependencyImage struct {
	Name           string
	Depend         string
	ActualFullname string
}

func (ErrMismatchDependencyImage) Error added in v1.3.0

type ErrMismatchDependencyTag added in v1.3.0

type ErrMismatchDependencyTag struct {
	Name        string
	Depend      string
	ExpectedTag string
	ActualTag   string
}

func (ErrMismatchDependencyTag) Error added in v1.3.0

func (e ErrMismatchDependencyTag) Error() string

type ErrMissingCredential added in v1.3.0

type ErrMissingCredential struct {
	RegistryName string
}

func (ErrMissingCredential) Error added in v1.3.0

func (e ErrMissingCredential) Error() string

type ErrMissingTag added in v1.3.0

type ErrMissingTag struct {
	Tag  string
	Name string
}

func (ErrMissingTag) Error added in v1.3.0

func (e ErrMissingTag) Error() string

type PrepareOptFn added in v1.6.0

type PrepareOptFn func(opt *prepareOpt)

func SkipDirtyCheck added in v1.6.0

func SkipDirtyCheck() PrepareOptFn

Jump to

Keyboard shortcuts

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