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 CreateManager ¶ added in v0.5.25
func CreateManager(conn *grpc.ClientConn, config *Configuration) (api.BotCoder, error)
Types ¶
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. |
Click to show internal directories.
Click to hide internal directories.