builder

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 55 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
	MtimesCopyFilter  *filter.Filter
	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) DisableAutoBuilds added in v0.3.4

func (b *Builder) DisableAutoBuilds(disableFor time.Duration) (
	time.Time, error)

func (*Builder) DisableBuildRequests added in v0.3.4

func (b *Builder) DisableBuildRequests(disableFor time.Duration) (
	time.Time, 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 (b *Builder) GetRelationshipsQuickLinks() ([]WebLink, 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) WaitForStreamsLoaded added in v0.3.4

func (b *Builder) WaitForStreamsLoaded(timeout time.Duration) error

func (*Builder) WriteHtml

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

type BuilderOptions added in v0.3.3

type BuilderOptions struct {
	ConfigurationURL                    string
	CreateSlaveTimeout                  time.Duration
	ImageRebuildInterval                time.Duration
	ImageServerAddress                  string
	MaximumExpirationDuration           time.Duration // Default: 1 day.
	MaximumExpirationDurationPrivileged time.Duration // Default: 1 month.
	MinimumExpirationDuration           time.Duration // Def: 15 min. Min: 5 min
	PresentationImageServerAddress      string
	StateDirectory                      string
	VariablesFile                       string
}

type BuilderParams added in v0.3.3

type BuilderParams struct {
	BuildLogArchiver logarchiver.BuildLogArchiver
	Logger           log.DebugLogger
	SlaveDriver      *slavedriver.SlaveDriver
}
type WebLink struct {
	Name string
	URL  string
}

Jump to

Keyboard shortcuts

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