docker

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultStep

type DefaultStep struct {
	Logger         log.Logger
	URLResolver    images.PullURLResolver
	ImageSaver     images.ImageSaver
	Viper          *viper.Viper
	BuilderBuilder *templates.BuilderBuilder
}

DefaultStep is the default implementation of Renderer

func (*DefaultStep) Execute

func (p *DefaultStep) Execute(
	rootFs root.Fs,
	asset api.DockerAsset,
	meta api.ReleaseMetadata,
	doWithProgress func(ch chan interface{}, debug log.Logger) error,
	dest string,
	templateContext map[string]interface{},
	configGroups []libyaml.ConfigGroup,
) func(ctx context.Context) error

Execute runs the step for an asset

type Renderer

type Renderer interface {
	Execute(
		rootFs root.Fs,
		asset api.DockerAsset,
		meta api.ReleaseMetadata,
		doWithProgress func(ch chan interface{}, debug log.Logger) error,

		saveDest string,
		templateContext map[string]interface{},
		configGroups []libyaml.ConfigGroup,
	) func(ctx context.Context) error
}

A Renderer can execute a "docker" step in the lifecycle

func NewStep

func NewStep(
	logger log.Logger,
	resolver images.PullURLResolver,
	saver images.ImageSaver,
	v *viper.Viper,
	bb *templates.BuilderBuilder,
) Renderer

NewStep gets a new Renderer with the default impl

Jump to

Keyboard shortcuts

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