Overview of taucorder
maintaucorder is a cloud diagnostics tool used for interacting with and diagnosing Taubyte cloud environments. For detailed documentation and guides, visit https://tau.how.repository·main·Indexed 26 days ago
https://github.com/taubyte/tauA fullstack workspace for humans and AI agents providing cloud-native primitives including Functions, Web Hosting, KV Databases, Object Storage, and Pub/Sub Messaging. The repository includes the spore-drive library for TypeScript and Python to deploy and operate Taubyte Cloud, the taucorder management tool, a Go-based Docker API abstraction layer (go-simple-container), a Raft cluster implementation for KV operations, and the go-patrick-http REST client.
taucorder is a cloud diagnostics tool used for interacting with and diagnosing Taubyte cloud environments. For detailed documentation and guides, visit https://tau.how.The http-auto package manages automatic HTTP services. It provides:
dream is a local development tool designed to let you run a full-fledged Taubyte-based Cloud environment directly on your local machine. It is intended for local development and testing of Taubyte-based applications.config-compiler package is a legacy compiler maintained solely as a conformance oracle for the tcc compiler. It is not used at runtime and is not part of the modern tcc compiler. Its purpose is to provide a byte-for-byte reference for the tcc test suite (specifically pkg/tcc/taubyte/v1's TestCompile) to ensure that the new compiler's output matches the original compiler's output exactly.parity/ directory contains frozen legacy code used as conformance oracles for the tcc pipeline. This code is not used in production. Its sole purpose is to allow tcc tests to perform diffing between new output and old output to ensure functional parity. Packages in this directory are temporary and are removed once their new counterparts have proven stable across multiple releases.The open and decompile functions return a Session. A Session provides a typed, editable representation of the configuration. Instead of manual YAML manipulation, you use generated getters and setters that handle the YAML serialization/deserialization inside the WASM module.
.function(), .setMemory()) to change values.import { open, decompile } from "@taubyte/tcc";
// From a cloned repo's YAML...
const session = await open(fs, "/my-project");
// ...or by decompiling a compiled object:
// const session = await decompile(compiledObject);
const fn = session.function("api"); // typed accessor, addressed by name
await fn.setMemory("64GB"); // source form is human-readable
await fn.setType("https"); // "http" | "https" | "pubsub" | "p2p"
const t = await fn.type(); // typed read
const { object } = await session.compile(); // compile the edited state
await session.save(fs, "/my-project"); // write the edits back as YAML
await session.close();To run integration tests or develop with the Spore Drive Python client, you need Go (for the mock server) and the following Python packages:
pip install pytest pytest-asyncio pyyamlYou can install the @taubyte/spore-drive package using npm or yarn to manage your Tau cloud infrastructure with code.
npm install @taubyte/spore-drive
# or
yarn add @taubyte/spore-driveTo use the go-simple-container abstraction layer for the Docker API in your Go projects, install it using the following command:
go get github.com/taubyte/tau/pkg/containersTo test automatic TLS management with a custom ACME server, you can run a local instance of StepCA using Docker. This allows you to simulate an ACME provider for domain validation and certificate management.
# 1. Pull the StepCA Docker image
docker pull smallstep/step-ca
# 2. Run the StepCA container
docker run -d --name step-ca \
-v step:/home/step \
-p 9000:9000 \
-e DOCKER_STEPCA_INIT_NAME=StepCA \
-e DOCKER_STEPCA_INIT_DNS_NAMES=localhost \
smallstep/step-ca
# 3. Verify it is running
curl http://localhost:9000/health
# 4. Add an ACME provider inside the container
docker exec -it step-ca sh
# Inside the container shell:
step ca provisioner add acme --type ACME
# 5. Restart the container to apply changes
docker restart step-caUse the tau login command to authenticate with a Taubyte-based Cloud.
tau login: Opens a selection menu (with default selected) or logs in directly if only one profile exists. If no profiles are found, it opens a new one.tau login --new: Starts the process for a new profile.tau login --set-default: Use this with --new to make the new authentication profile your default.tau login <profile-name>: Log in using a specific existing profile name.tau loginTo run the package tests, first generate the necessary test files and then execute the Go test command.
cd tests
go generate
go test -v