builder

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

View Source
const DefaultUid = 1001
View Source
const DefaultUsername = "somebody"

Variables

This section is empty.

Functions

func NewDirFS added in v0.2.0

func NewDirFS(ctx context.Context) (fs.FullFS, error)

NewDirFS is a utility function to create a filesystem in a temporary directory

Types

type Builder

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

func NewBuilder

func NewBuilder(ctx context.Context, baseRef string, statements []pipelines.OrderedPipelineStatement, options Options) (*Builder, error)

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, platform *v1.Platform) (containers.Result, error)

type MetadataOptions added in v0.1.3

type MetadataOptions struct {
	Author    string
	CreatedBy string
}

func (*MetadataOptions) GetCreatedBy added in v0.1.3

func (o *MetadataOptions) GetCreatedBy() string

type Options added in v0.1.2

type Options struct {
	WorkingDir string
	// Username is the name of the Linux user
	// that the container will run as.
	Username string
	// Uid is the numerical ID of the Linux user
	// that the container will run as.
	Uid int
	// Shell is the default shell that will be opened
	// whenever a user connects. If not provided,
	// it will default to /bin/sh
	Shell           string
	Entrypoint      []string
	Command         []string
	ForceEntrypoint bool
	Metadata        MetadataOptions
	FS              fs.FullFS
	BaseImage       containers.Result
	// GenerateIndex instructs the builder to use
	// a multi-arch index instead of a standalone
	// image.
	GenerateIndex bool
}

func (*Options) GetUid added in v0.1.7

func (o *Options) GetUid() int

GetUid returns the nominated uid or the DefaultUid

func (*Options) GetUsername added in v0.1.2

func (o *Options) GetUsername() string

GetUsername returns the nominated username or the DefaultUsername

Jump to

Keyboard shortcuts

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