process

package
v1.25.12 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: LGPL-3.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, credentials *docker.RegistryCredentials, provider docker.ImageInfoProvider, cfg *config.Config, downloader nexus.Downloader, prepper Prepper, builder Builder) error

Types

type BuildahCmd added in v1.19.0

type BuildahCmd struct {
	TlsVerify bool
}

func (*BuildahCmd) Build added in v1.19.0

func (b *BuildahCmd) Build(ctx context.Context, buildFolder string) (string, error)

func (*BuildahCmd) Pull added in v1.19.0

func (b *BuildahCmd) Pull(ctx context.Context, image runtime.DockerImage) error

func (*BuildahCmd) Push added in v1.19.0

func (b *BuildahCmd) Push(ctx context.Context, ruuid string, tags []string, credentials *docker.RegistryCredentials) error

func (*BuildahCmd) Tag added in v1.19.0

func (b *BuildahCmd) Tag(ctx context.Context, ruuid string, tag string) error

type Builder added in v1.19.0

type Builder interface {
	Build(ctx context.Context, buildFolder string) (string, error)
	Push(ctx context.Context, imageid string, tag []string, credentials *docker.RegistryCredentials) error
	Tag(ctx context.Context, imageid string, tag string) error
	Pull(ctx context.Context, image runtime.DockerImage) error
}

type DockerCmd added in v1.19.0

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

func NewDockerBuilder added in v1.19.0

func NewDockerBuilder() (*DockerCmd, error)

func (*DockerCmd) Build added in v1.19.0

func (d *DockerCmd) Build(ctx context.Context, buildfolder string) (string, error)

func (*DockerCmd) Pull added in v1.19.0

func (d *DockerCmd) Pull(ctx context.Context, image runtime.DockerImage) error

func (*DockerCmd) Push added in v1.19.0

func (d *DockerCmd) Push(ctx context.Context, imageid string, tags []string, credentials *docker.RegistryCredentials) error

func (*DockerCmd) Tag added in v1.19.0

func (d *DockerCmd) Tag(ctx context.Context, imageid string, tag string) error

type Prepper

type Prepper func(
	cfg *config.Config,
	auroraVersion *runtime.AuroraVersion,
	deliverable nexus.Deliverable,
	baseImage runtime.BaseImage) ([]docker.DockerBuildConfig, error)

Prepper is a fuction used to prepare a docker image. It is called within the context of The

Jump to

Keyboard shortcuts

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