builder

package
v0.0.0-...-0f19e00 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 38 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRegistryAuths = []*config_j5pb.DockerRegistryAuth{{
	Registry: "ghcr.io/*",
	Auth: &config_j5pb.DockerRegistryAuth_Github_{
		Github: &config_j5pb.DockerRegistryAuth_Github{},
	},
}, {
	Registry: "*.dkr.ecr.*.amazonaws.com/*",
	Auth: &config_j5pb.DockerRegistryAuth_AwsEcs{
		AwsEcs: &config_j5pb.DockerRegistryAuth_AWSECS{},
	},
}}

Functions

This section is empty.

Types

type Builder

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

func NewBuilder

func NewBuilder(runner PipeRunner) *Builder

func (*Builder) RunGenerateBuild

func (b *Builder) RunGenerateBuild(ctx context.Context, pc PluginContext, input *source_j5pb.SourceImage, build *config_j5pb.GenerateConfig) error

func (*Builder) RunPublishBuild

func (b *Builder) RunPublishBuild(ctx context.Context, pc PluginContext, input *source_j5pb.SourceImage, build *config_j5pb.PublishConfig) error

type Dest

type Dest interface {
	PutFile(ctx context.Context, path string, body io.Reader) error
}

type PipeRunner

type PipeRunner interface {
	Run(ctx context.Context, rc RunContext) error
}

type PluginContext

type PluginContext struct {
	Variables map[string]string
	ErrOut    io.Writer
	Dest      Dest
}

type RunContext

type RunContext struct {
	Vars    map[string]string
	StdIn   io.Reader
	StdOut  io.Writer
	StdErr  io.Writer
	Command *config_j5pb.BuildPlugin
}

type Runner

type Runner struct {
	DockerOverride map[string]string // map[cmd]localCommand
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(registryAuth []*config_j5pb.DockerRegistryAuth) (*Runner, error)

func (*Runner) Close

func (dw *Runner) Close() error

func (*Runner) Run

func (rr *Runner) Run(ctx context.Context, rc RunContext) error

Directories

Path Synopsis
protogen

Jump to

Keyboard shortcuts

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