internal/

directory
v5.67.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0

Directories

Path Synopsis
Package admin provides a read-only web UI for inspecting and managing muster sessions.
Package admin provides a read-only web UI for inspecting and managing muster sessions.
Package agent provides comprehensive MCP (Model Context Protocol) client and server implementations for debugging, testing, and integrating with the muster aggregator.
Package agent provides comprehensive MCP (Model Context Protocol) client and server implementations for debugging, testing, and integrating with the muster aggregator.
commands
Package commands provides a shared interface for REPL command implementations.
Package commands provides a shared interface for REPL command implementations.
oauth
Package oauth implements OAuth 2.1 client authentication for the Muster Agent.
Package oauth implements OAuth 2.1 client authentication for the Muster Agent.
Package aggregator provides the MCP aggregator server implementation.
Package aggregator provides the MCP aggregator server implementation.
api
Package api provides the central API layer for muster's Service Locator Pattern.
Package api provides the central API layer for muster's Service Locator Pattern.
tagstest
Package tagstest builds tag lists for the tests of api's tag rules and of the MCPServer and Workflow tools that apply them.
Package tagstest builds tag lists for the tests of api's tag rules and of the MCPServer and Workflow tools that apply them.
Package app provides application bootstrap, lifecycle management, and configuration management for muster.
Package app provides application bootstrap, lifecycle management, and configuration management for muster.
Package approval keeps the pending approvals of calls whose effective approval is Ask and serves muster's approval page.
Package approval keeps the pending approvals of calls whose effective approval is Ask and serves muster's approval page.
Package callerwrite implements the shared caller-identity write gate for session-initiated CR mutations (issues #1056, #1069).
Package callerwrite implements the shared caller-identity write gate for session-initiated CR mutations (issues #1056, #1069).
Package chatgptlogin is OpenAI's device-code sign-in to ChatGPT, the one the Codex CLI runs with `codex login --device-auth`: muster asks for a user code, the person enters it at OpenAI's device page, muster polls until the sign-in is authorized and exchanges the authorization code it is handed, with its PKCE verifier, for the person's tokens.
Package chatgptlogin is OpenAI's device-code sign-in to ChatGPT, the one the Codex CLI runs with `codex login --device-auth`: muster asks for a user code, the person enters it at OpenAI's device page, muster polls until the sign-in is authorized and exchanges the authorization code it is handed, with its PKCE verifier, for the person's tokens.
chatgptlogintest
Package chatgptlogintest is a fake of OpenAI's authorization server for the device-code sign-in to ChatGPT: the user code, the poll, the code exchange and the refresh, with a refresh token that rotates on every use as OpenAI's does.
Package chatgptlogintest is a fake of OpenAI's authorization server for the device-code sign-in to ChatGPT: the user code, the poll, the code exchange and the refresh, with a refresh token that rotates on every use as OpenAI's does.
Package cli provides sophisticated command-line interface utilities for the muster application.
Package cli provides sophisticated command-line interface utilities for the muster application.
Package client provides a unified client abstraction for accessing muster resources both locally (filesystem) and in-cluster (Kubernetes API).
Package client provides a unified client abstraction for accessing muster resources both locally (filesystem) and in-cluster (Kubernetes API).
filesystem
Package filesystem is the filesystem-backed implementation of the unified muster client interface defined in the parent client package.
Package filesystem is the filesystem-backed implementation of the unified muster client interface defined in the parent client package.
Package clock is the source of the current time for muster's timers that measure elapsed time: the reconnect backoff of a remote MCPServer, the orchestrator's retry and health-probe ticks, the aggregator's capability poll, the age of its core catalogue and the reconciler's requeues and resync.
Package clock is the source of the current time for muster's timers that measure elapsed time: the reconnect backoff of a remote MCPServer, the orchestrator's retry and health-probe ticks, the aggregator's capability poll, the age of its core catalogue and the reconciler's requeues and resync.
Package config provides configuration management for muster.
Package config provides configuration management for muster.
Package context provides kubectl-style context management for muster CLI.
Package context provides kubectl-style context management for muster CLI.
Package credprovider makes muster a credential provider of Substrate's egress gateway, so a workspace Session's git and gh act as the person who started it without the person's token ever reaching the sandbox.
Package credprovider makes muster a credential provider of Substrate's egress gateway, so a workspace Session's git and gh act as the person who started it without the person's token ever reaching the sandbox.
durable
admission
Package admission decides which candidates can take a lease in one Queue.
Package admission decides which candidates can take a lease in one Queue.
call
Package call makes a durable run's effectful tool calls: each with an idempotency key that a retry repeats, and each only while this replica can prove it leads.
Package call makes a durable run's effectful tool calls: each with an idempotency key that a retry repeats, and each only while this replica can prove it leads.
engine
Package engine decides what a durable run does next, as pure functions of the run's status, its pinned revision and the time.
Package engine decides what a durable run does next, as pure functions of the run's status, its pinned revision and the time.
expr
Package expr compiles and evaluates the expressions of a Procedure, the definition of a durable run.
Package expr compiles and evaluates the expressions of a Procedure, the definition of a durable run.
history
Package history is the record of what a durable run did: one row per state it entered, call it made, observation that changed something, decision it took and the end it reached, appended in order and never rewritten.
Package history is the record of what a durable run did: one row per state it entered, call it made, observation that changed something, decision it took and the end it reached, appended in order and never rewritten.
leader
Package leader elects the one muster replica that drives durable runs, and fences it: a replica that can no longer prove it holds the Lease stops making calls before another replica can have taken over.
Package leader elects the one muster replica that drives durable runs, and fences it: a replica that can no longer prove it holds the Lease stops making calls before another replica can have taken over.
runs
Package runs is the durable-run controller: on the replica that leads, it reconciles Procedure, ProcedureRun, Trigger and Queue objects in muster's own namespace and in every namespace with a configured organization principal, driving each run through its pinned revision, one external step at a time.
Package runs is the durable-run controller: on the replica that leads, it reconciles Procedure, ProcedureRun, Trigger and Queue objects in muster's own namespace and in every namespace with a configured organization principal, driving each run through its pinned revision, one external step at a time.
triggers
Package triggers turns observations and cron due times into namespaced ProcedureRuns.
Package triggers turns observations and cron due times into namespaced ProcedureRuns.
Package egress chooses the HTTP transport of each outbound call muster makes on behalf of an MCPServer.
Package egress chooses the HTTP transport of each outbound call muster makes on behalf of an MCPServer.
egresstest
Package egresstest lets a test reach plain-http test servers through the guarded transport of organization destinations.
Package egresstest lets a test reach plain-http test servers through the guarded transport of organization destinations.
Package events provides core infrastructure for generating Kubernetes Events for muster CRD lifecycle operations.
Package events provides core infrastructure for generating Kubernetes Events for muster CRD lifecycle operations.
Package jq compiles and runs the jq programs a workflow step reshapes its result with (the step's `jq` field), on gojq, a pure-Go jq.
Package jq compiles and runs the jq programs a workflow step reshapes its result with (the step's `jq` field), on gojq, a pure-Go jq.
Package listenfds hands listening sockets from a parent process to a child as inherited file descriptors, in the systemd socket-activation protocol: descriptors from 3 on, counted by LISTEN_FDS and named by LISTEN_FDNAMES.
Package listenfds hands listening sockets from a parent process to a child as inherited file descriptors, in the systemd socket-activation protocol: descriptors from 3 on, counted by LISTEN_FDS and named by LISTEN_FDNAMES.
Package mcpserver provides MCP (Model Context Protocol) server management functionality.
Package mcpserver provides MCP (Model Context Protocol) server management functionality.
Package metatools provides server-side meta-tool handlers for the MCP aggregator.
Package metatools provides server-side meta-tool handlers for the MCP aggregator.
Package musterlogo holds the muster logo and advertises it as the MCP icon (serverInfo.icons) of muster's own MCP servers: the aggregator and `muster agent --mcp-server`.
Package musterlogo holds the muster logo and advertises it as the MCP icon (serverInfo.icons) of muster's own MCP servers: the aggregator and `muster agent --mcp-server`.
Package netdiag names the processes behind a network failure, so an error such as "address already in use" says who holds the port.
Package netdiag names the processes behind a network failure, so an error such as "address already in use" says who holds the port.
Package oauth implements OAuth 2.1 proxy functionality for remote MCP server authentication.
Package oauth implements OAuth 2.1 proxy functionality for remote MCP server authentication.
store
Package store provides per-session authentication and capability stores for the token broker layer.
Package store provides per-session authentication and capability stores for the token broker layer.
Package orchestrator manages the lifecycle of services registered in the shared service registry.
Package orchestrator manages the lifecycle of services registered in the shared service registry.
Package principal is the organization principal: the identity an organization's triggers and runs act as when no person calls them.
Package principal is the organization principal: the identity an organization's triggers and runs act as when no person calls them.
Package reconciler provides a unified reconciliation system for muster resources.
Package reconciler provides a unified reconciliation system for muster resources.
Package server provides OAuth 2.1 protection for the Muster Server.
Package server provides OAuth 2.1 protection for the Muster Server.
Package servericon keeps the icon each MCP server declares in its initialize result, as a data: URI the MCPServer status carries (status.icon).
Package servericon keeps the icon each MCP server declares in its initialize result, as a data: URI the MCPServer status carries (status.icon).
Package services provides the service abstraction layer for muster.
Package services provides the service abstraction layer for muster.
Package signinpage builds the pages a browser shows at the end of a sign-in to muster or through muster, so the server and the CLI word them alike.
Package signinpage builds the pages a browser shows at the end of a sign-in to muster or through muster, so the server and the CLI word them alike.
Package ssetest serves the frame that held an MCP call on a reused HTTP/1 connection for the idle connection's 90s under go1.27.1's net/http (Go issue 81404): an SSE body closed while its reader is blocked in Read, with the stream ending inside the transport's post-close drain.
Package ssetest serves the frame that held an MCP call on a reused HTTP/1 connection for the idle connection's 90s under go1.27.1's net/http (Go issue 81404): an SSE body closed while its reader is blocked in Read, with the stream ending inside the transport's post-close drain.
Package template implements the variable substitution and templating engine used by workflow steps.
Package template implements the variable substitution and templating engine used by workflow steps.
## Service Testing - **Lifecycle Management**: Test service creation, management, and deletion - **Dependency Management**: Validate service dependency resolution - **State Transitions**: Test service state changes and event handling - **Integration**: Test service interaction with other system components
## Service Testing - **Lifecycle Management**: Test service creation, management, and deletion - **Dependency Management**: Validate service dependency resolution - **State Transitions**: Test service state changes and event handling - **Integration**: Test service interaction with other system components
fixtures/oauth
Package oauth contains test fixtures for OAuth authentication testing.
Package oauth contains test fixtures for OAuth authentication testing.
fixtures/scale
Package scale is the installation-shaped fixture the scale budgets run on: 87 MCPServers (84 of them session-authenticated, in five families with an instanceArg, on 28 installations; three in-house servers without authentication), 18 distinct capability documents shared by the family members, 282 workflows referencing their tools, and 450 sessions each authenticated to every session-authenticated server -- the shape of a production installation, with every name invented.
Package scale is the installation-shaped fixture the scale budgets run on: 87 MCPServers (84 of them session-authenticated, in five families with an instanceArg, on 28 installations; three in-house servers without authentication), 18 distinct capability documents shared by the family members, 282 workflows referencing their tools, and 450 sessions each authenticated to every session-authenticated server -- the shape of a production installation, with every name invented.
fixtures/scale/gen command
Command gen rewrites the scale fixture's YAML files from the generator, so `go generate ./internal/testing/fixtures/scale/` is the one way to change the committed fixture.
Command gen rewrites the scale fixture's YAML files from the generator, so `go generate ./internal/testing/fixtures/scale/` is the one way to change the committed fixture.
mock
Package mock provides mock MCP server functionality for testing muster components.
Package mock provides mock MCP server functionality for testing muster components.
Package toolset implements declared toolsets: the selector list an agent sends in the X-Muster-Toolset header (or passes to filter_tools) that bounds which of the gateway's tools its meta-tools can see and call.
Package toolset implements declared toolsets: the selector list an agent sends in the X-Muster-Toolset header (or passes to filter_tools) that bounds which of the gateway's tools its meta-tools can see and call.
Package update keeps the muster binary current.
Package update keeps the muster binary current.
Package valkeyclient builds the Valkey clients muster's stores share: the aggregator's session auth and capability stores and the OAuth server's DPoP replay cache.
Package valkeyclient builds the Valkey clients muster's stores share: the aggregator's session auth and capability stores and the OAuth server's DPoP replay cache.
Package workflow provides workflow management and execution capabilities for muster.
Package workflow provides workflow management and execution capabilities for muster.

Jump to

Keyboard shortcuts

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