Documentation
¶
Index ¶
Constants ¶
const ( BuildPath = "/.holon/build" BuildFile = ".holon/build.json" BuildTokenHeader = "X-Holon-Build-Token" BaseImageEnv = "HOLON_BASE_IMAGE" )
const ( ContextHeader = "X-Holon-Context" CallerHeader = "X-Holon-Caller" )
Holon's waypoint sets these on a request it admits, after removing any X-Holon-* header the client sent. ContextHeader carries the signed caller context. CallerHeader carries "<session>/<app>", the app of the same session that calls, a lifecycle hook's job calling as its app, and is absent when a person or the platform calls.
const ( ReloadPath = "/.holon/reload" OverlayFileEnv = "HOLON_OVERLAY_FILE" OverlayMediaType = "application/vnd.holon.source-overlay.v0.tar+zstd" PlanFile = ".holon/plan.json" )
Variables ¶
var CatalogMethods = []string{"tools/list", "resources/list", "events/list"}
CatalogMethods are the MCP methods that list what a server serves, which types are generated from.
Functions ¶
func AppDiscoveryRequest ¶
AppDiscoveryRequest reports a request the platform may make of an app without a caller context: the methods that describe what the app serves.
func DecodeContextClaims ¶
Types ¶
type BuildReply ¶
type BuildReply struct {
ReloadReply
Image string `json:"image,omitempty"`
Ran *Ran `json:"ran,omitempty"`
}
type OverlayRecord ¶
type OverlayRecord struct {
Registry string `json:"registry"`
Repository string `json:"repository"`
Tag string `json:"tag"`
Token string `json:"token"`
}
func (OverlayRecord) Location ¶
func (r OverlayRecord) Location() *url.URL