builder

package
v0.0.0-...-9f60fe2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	// BuildAndPush builds a container image from a build context and pushes it
	// to the cointainer registry.  The build context is a zip file containing
	// the source code and any other files needed to build the image.
	BuildAndPush(ctx context.Context, buildID, namespace, reponame string, buildCtx io.Reader) error
	// GetBuilder returns the name of the builder.
	GetBuilder() string
	// GetImageURI returns the URI of the image in the container registry.
	GetImageURI(ctx context.Context, buildID, namespace, reponame string) string
	// Logs returns the logs for a build.
	Logs(ctx context.Context, buildID string) (logs []types.LogEntry, err error)
}

Builder defines the interface for building and storing container images.

type LogDriver

type LogDriver interface {
	// GetLogs returns the logs for a build.
	GetLogs(ctx context.Context, buildID string) (logs []types.LogEntry, err error)
	// SaveLogs saves the logs for a build in long term storage.
	SaveLogs(ctx context.Context, buildID string, logs []types.LogEntry) error
}

LogDriver defines the interface for storing and retrieving build logs.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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