builder

package
v0.0.0-...-63c3a42 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImageFromManifest

func BuildImageFromManifest(client *srpc.Client, manifestDir, streamName string,
	expiresIn time.Duration, bindMounts []string, buildLog buildLogger,
	logger log.Logger) (
	string, error)

func BuildTreeFromManifest

func BuildTreeFromManifest(client *srpc.Client, manifestDir string,
	bindMounts []string, buildLog io.Writer,
	logger log.Logger) (string, error)

func ProcessManifest

func ProcessManifest(manifestDir, rootDir string, bindMounts []string,
	buildLog io.Writer) error

func UnpackImageAndProcessManifest

func UnpackImageAndProcessManifest(client *srpc.Client, manifestDir string,
	rootDir string, bindMounts []string, buildLog io.Writer) error

Types

type Builder

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

func Load

func Load(confUrl, variablesFile, stateDir, imageServerAddress string,
	imageRebuildInterval time.Duration, slaveDriver *slavedriver.SlaveDriver,
	logger log.DebugLogger) (*Builder, error)

func (*Builder) BuildImage

func (b *Builder) BuildImage(request proto.BuildImageRequest,
	authInfo *srpc.AuthInformation,
	logWriter io.Writer) (*image.Image, string, error)

func (*Builder) GetCurrentBuildLog

func (b *Builder) GetCurrentBuildLog(streamName string) ([]byte, error)

func (*Builder) GetDirectedGraph

func (b *Builder) GetDirectedGraph(request proto.GetDirectedGraphRequest) (
	proto.GetDirectedGraphResult, error)

func (*Builder) GetLatestBuildLog

func (b *Builder) GetLatestBuildLog(streamName string) ([]byte, error)

func (*Builder) ShowImageStream

func (b *Builder) ShowImageStream(writer io.Writer, streamName string)

func (*Builder) ShowImageStreams

func (b *Builder) ShowImageStreams(writer io.Writer)

func (*Builder) WriteHtml

func (b *Builder) WriteHtml(writer io.Writer)

Jump to

Keyboard shortcuts

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