builder

package
v0.0.0-...-9362506 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory BuilderFactory)

Types

type BuildOption

type BuildOption struct {
	DerefId string

	Stdout io.Writer
	Stderr io.Writer
}

type Builder

type Builder interface {
	Build(image *clade.ResolvedImage, option BuildOption) error
}

func New

func New(name string, conf BuilderConfig) (Builder, error)

type BuilderConfig

type BuilderConfig struct {
	DryRun bool
	Args   []string
}

type BuilderFactory

type BuilderFactory func(conf BuilderConfig) (Builder, error)

type DockerCmdBuilder

type DockerCmdBuilder struct {
	Config BuilderConfig

	Platforms []PlatformSpecifier
	// contains filtered or unexported fields
}

func NewDockerCmdBuilder

func NewDockerCmdBuilder(conf BuilderConfig) (*DockerCmdBuilder, error)

func (*DockerCmdBuilder) Build

func (b *DockerCmdBuilder) Build(image *clade.ResolvedImage, option BuildOption) error

type PlatformSpecifier

type PlatformSpecifier struct {
	Os   string
	Arch string
}

func (*PlatformSpecifier) String

func (s *PlatformSpecifier) String() string

Jump to

Keyboard shortcuts

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