harness

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package harness implements interfaces in the ./api directory.

Package harness

Index

Constants

View Source
const ContainerWorkspace = "."

ContainerWorkspace is the fixed path every coding container's source lives at inside the container - Compiler's own UntarFS upload (below) extracts startingFiles here, and every caller's own FilesystemWrapper path (LsInfo/Read/Write/Edit) is expected to be rooted at this same directory, the same way api.BotCompiler's own doc comment describes startingFiles landing in "the base directory of the coding directory in the container".

Variables

View Source
var (
	ErrCompileNonzeroExit       = errors.New("cargo build exited non-zero")
	ErrLintNonzeroExit          = errors.New("cargo clippy exited non-zero")
	ErrTestNonzeroExit          = errors.New("cargo test exited non-zero")
	ErrFmtNonzeroExit           = errors.New("cargo fmt exited non-zero")
	ErrMachineAllocationTimeout = errors.New("timeout on machine allocation")
)

Functions

func Create

func Create(ctx context.Context, client state.Client, builder *txbuilder.BuildManager, parentKey sgo.PrivateKey) (api.Treasury, error)

func CreateManager added in v0.5.25

func CreateManager(conn *grpc.ClientConn, config *Configuration) (api.BotCoder, error)

Types

type Configuration added in v0.5.25

type Configuration struct {
	MachineSize machinev1.MachineSize `json:"size"`
	BuildType   machinev1.BuildType   `json:"type"`
	Timeout     time.Duration         `json:"timeout"`
}

Source Files

  • compiler.go
  • err.go
  • fs.go
  • harness.go
  • optimizer.go
  • treasury.go
  • treasuryevent.go

Directories

Path Synopsis
Package localdev implements api.BotCoder/api.BotCompiler/ api.FilesystemWrapper directly against the local filesystem and local subprocesses, instead of dialing a real machinev1/builderv1 gRPC server backed by a Firecracker guest over SFTP (see harness's own compiler.go/fs.go) - for fast local iteration against this package's own interfaces without needing that infrastructure running at all.
Package localdev implements api.BotCoder/api.BotCompiler/ api.FilesystemWrapper directly against the local filesystem and local subprocesses, instead of dialing a real machinev1/builderv1 gRPC server backed by a Firecracker guest over SFTP (see harness's own compiler.go/fs.go) - for fast local iteration against this package's own interfaces without needing that infrastructure running at all.

Jump to

Keyboard shortcuts

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