builder

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	Path     string
	Tag      string
	NoCache  bool
	Push     bool
	Platform string
}

BuildOptions represents build options

type BuildResult

type BuildResult struct {
	ImageID string
	Size    string
	Tags    []string
}

BuildResult represents build result

type Builder

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

Builder handles agent building

func New

func New() *Builder

New creates a new builder instance

func (*Builder) Build

func (b *Builder) Build(options *BuildOptions) (*BuildResult, error)

Build builds an agent from the given options

func (*Builder) Push

func (b *Builder) Push(tag string) error

Push pushes the image to a registry

func (*Builder) ValidateContext

func (b *Builder) ValidateContext(path string) error

ValidateContext validates the build context

Jump to

Keyboard shortcuts

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