Documentation
¶
Overview ¶
Package api exposes the HTTP approval API (and the server-rendered dashboard that sits on top of it) on the gateway's :8081 listener.
Index ¶
Constants ¶
View Source
const DefaultTemplatesDir = "web/dashboard/templates"
DefaultTemplatesDir is where the dashboard looks for its templates when none is configured, relative to the process's working directory (the repo root when running `go run ./cmd/mcp-shield` or the Docker image's WORKDIR, both of which COPY web/ alongside the binary).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManifestView ¶
type ManifestView struct {
ID int64 `json:"id"`
Server string `json:"server"`
Hash string `json:"hash"`
State string `json:"state"`
CreatedAt time.Time `json:"created_at"`
}
ManifestView is the shape returned by GET /api/manifests/{id}.
type PendingManifestView ¶
type PendingManifestView struct {
ID int64 `json:"id"`
Server string `json:"server"`
Hash string `json:"hash"`
Changes []string `json:"changes"`
CreatedAt time.Time `json:"created_at"`
}
PendingManifestView is the shape returned by GET /api/manifests/pending.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.