builder

package
v0.0.0-...-01b5cc5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerfileBuilder

type DockerfileBuilder interface {
	Render(dockerfileTemplate DockerfileTemplate) (string, error)
}

DockerfileBuilder is an interface that is implemented by structs that implement the Render method. The Render method takes a DockerfileTemplate and creates a custom Dockerfile that creates an operator-registry image based on the template's input.

func NewDockerfileBuilder

func NewDockerfileBuilder() DockerfileBuilder

NewDockerfileBuilder is a constructor for the DockerfileBuilder interface

type DockerfileTemplate

type DockerfileTemplate struct {
	WorkingDirectory string
}

DockerfileTemplate is a struct that describes the fields needed to render the operator-registry dockerfile.

type ImageBuilder

type ImageBuilder interface {
	Build(image, workingDirectory string, imageBuildArgs ...string) error
}

ImageBuilder is an interface that is implemented by structs that implement the Build method. Build takes an image name and a path which contains operator manifests and builds an operator-registry container image using docker build.

func NewImageBuilder

func NewImageBuilder() ImageBuilder

NewImageBuilder is a constructor for the ImageBuilder interface

Jump to

Keyboard shortcuts

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