builder

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 52 Imported by: 16

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 BuildImageFromManifestWithOptions added in v0.3.3

func BuildImageFromManifestWithOptions(client *srpc.Client,
	options BuildLocalOptions, streamName string, expiresIn time.Duration,
	buildLog buildLogger) (string, error)

func BuildTreeFromManifest

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

func BuildTreeFromManifestWithOptions added in v0.3.3

func BuildTreeFromManifestWithOptions(client *srpc.Client,
	options BuildLocalOptions, buildLog io.Writer) (string, error)

func ProcessManifest

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

func ProcessManifestWithOptions added in v0.3.3

func ProcessManifestWithOptions(options BuildLocalOptions,
	rootDir string, buildLog io.Writer) error

func UnpackImageAndProcessManifest

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

func UnpackImageAndProcessManifestWithOptions added in v0.3.3

func UnpackImageAndProcessManifestWithOptions(client *srpc.Client,
	options BuildLocalOptions, rootDir string, buildLog io.Writer) error

Types

type BuildLocalOptions added in v0.3.3

type BuildLocalOptions struct {
	BindMounts        []string
	ManifestDirectory string
	Variables         map[string]string
}

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 LoadWithOptionsAndParams added in v0.3.3

func LoadWithOptionsAndParams(options BuilderOptions,
	params BuilderParams) (*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) GetDependencies added in v0.3.2

func (b *Builder) GetDependencies(request proto.GetDependenciesRequest) (
	proto.GetDependenciesResult, error)

func (*Builder) GetDirectedGraph added in v0.3.2

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

func (*Builder) GetLatestBuildLog

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

func (*Builder) ReplaceIdleSlaves added in v0.3.3

func (b *Builder) ReplaceIdleSlaves(immediateGetNew bool) 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)

type BuilderOptions added in v0.3.3

type BuilderOptions struct {
	ConfigurationURL     string
	ImageRebuildInterval time.Duration
	ImageServerAddress   string
	StateDirectory       string
	VariablesFile        string
}

type BuilderParams added in v0.3.3

type BuilderParams struct {
	BuildLogArchiver logarchiver.BuildLogArchiver
	Logger           log.DebugLogger
	SlaveDriver      *slavedriver.SlaveDriver
}

Jump to

Keyboard shortcuts

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