template

package
v0.0.0-...-8dbc9cc Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dockerfile

type Dockerfile interface {
	GetBuildContext() string
	GetContent() string
	GetContentWithoutIgnoredLines() string
	GetContextIncludes() []string
	GetFriendlyTag() string
	GetTagAliases() []string
	GetRequiredStages() []string
	Render() error
}

Dockerfile is the interface for a parsed Dockerfile

func NewDockerfile

func NewDockerfile(content []byte, stageName string, buildConf config.BuildConfiguration, currentContext, builderContext string, resolver StageResolver, exec executor.Executor) Dockerfile

NewDockerfile renders a given Dockerfile based on provided BuildData

func NewDockerfileFromFile

func NewDockerfileFromFile(filepath, stageName string, buildConf config.BuildConfiguration, currentContext, builderContext string, resolver StageResolver, exec executor.Executor) (Dockerfile, error)

NewDockerfileFromFile renders a given Dockerfile based on provided BuildData

type StageResolver

type StageResolver func(string) (string, error)

Jump to

Keyboard shortcuts

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