build

package
v1.16.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TruncateID added in v1.13.0

func TruncateID(id string) string

Types

type ContractBuilder

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

ContractBuilder handles building smart contracts using just commands

func NewContractBuilder

func NewContractBuilder(opts ...ContractBuilderOptions) *ContractBuilder

NewContractBuilder creates a new ContractBuilder instance

func (*ContractBuilder) Build

func (b *ContractBuilder) Build(ctx context.Context, _ string) (string, error)

Build executes the contract build command

func (*ContractBuilder) GetContractUrl added in v1.13.3

func (b *ContractBuilder) GetContractUrl() string

type ContractBuilderOptions

type ContractBuilderOptions func(*ContractBuilder)

func WithContractBaseDir

func WithContractBaseDir(baseDir string) ContractBuilderOptions

func WithContractDryRun

func WithContractDryRun(dryRun bool) ContractBuilderOptions

func WithContractEnclave added in v1.13.2

func WithContractEnclave(enclave string) ContractBuilderOptions

func WithContractEnclaveManager added in v1.13.3

func WithContractEnclaveManager(manager *enclave.KurtosisEnclaveManager) ContractBuilderOptions

func WithContractFS added in v1.13.2

func WithContractFS(fs afero.Fs) ContractBuilderOptions

type DockerBuilder

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

DockerBuilder handles building docker images using just commands

func NewDockerBuilder

func NewDockerBuilder(opts ...DockerBuilderOptions) *DockerBuilder

NewDockerBuilder creates a new DockerBuilder instance

func (*DockerBuilder) Build

func (b *DockerBuilder) Build(ctx context.Context, projectName, imageTag string) (string, error)

Build ensures the docker image for the given project is built, respecting concurrency limits. It blocks until the specific requested build is complete. Other builds may run concurrently.

type DockerBuilderOptions

type DockerBuilderOptions func(*DockerBuilder)

func WithDockerBaseDir

func WithDockerBaseDir(baseDir string) DockerBuilderOptions

func WithDockerCmdTemplate

func WithDockerCmdTemplate(cmdTemplate *template.Template) DockerBuilderOptions

func WithDockerConcurrency added in v1.13.0

func WithDockerConcurrency(limit int) DockerBuilderOptions

WithDockerConcurrency sets the maximum number of concurrent builds.

func WithDockerDryRun

func WithDockerDryRun(dryRun bool) DockerBuilderOptions

type PrestateBuilder

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

PrestateBuilder handles building prestates using just commands

func NewPrestateBuilder

func NewPrestateBuilder(opts ...PrestateBuilderOptions) *PrestateBuilder

NewPrestateBuilder creates a new PrestateBuilder instance

func (*PrestateBuilder) Build

func (b *PrestateBuilder) Build(ctx context.Context, path string) error

Build executes the prestate build command

type PrestateBuilderOptions

type PrestateBuilderOptions func(*PrestateBuilder)

func WithPrestateBaseDir

func WithPrestateBaseDir(baseDir string) PrestateBuilderOptions

func WithPrestateDryRun

func WithPrestateDryRun(dryRun bool) PrestateBuilderOptions

func WithPrestateTemplate

func WithPrestateTemplate(cmdTemplate *template.Template) PrestateBuilderOptions

Jump to

Keyboard shortcuts

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