agentCredentialSpecFor (httpapi/harness_spec.go)

agent-orchestrator · cloud/internal/httpapi/harness_spec.go · go · Apache-2.0
ai

Registry of credential specs for cloud harnesses with validation logic.

// Source: https://github.com/Untrivial-ai/agent-orchestrator | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package httpapi

import (
	"context"
	"encoding/json"
	"strings"
)

// agentCredentialSpec encapsulates one cloud harness's control-plane credential
// business logic: which credential types it accepts, which are opaque documents
// that must be stored verbatim, and how each is validated before it is encrypted
// and stored. Adding a harness is a matter of implementing this interface and
// registering it below -- the handlers and validator hold no per-harness
// switches. (GitHub PAT validation lives outside this registry: it is not a
// coding-agent harness.)
type agentC

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key