Documentation
¶
Overview ¶
Package logstream is a sov RouteHandler plugin that streams container logs and stats as NDJSON (application/x-ndjson, one JSON object per line) over a chunked response. It is the server half of the frontend's loom-rpc @stream transport.
Auth is validated BEFORE the first byte: the bearer token rides the Authorization header (these are POST routes), and the container is checked to exist, so a failure still returns a normal error status. Once the stream starts, no status can be sent — see PipeStream.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin streams logs/stats for a container.
func New ¶
New returns the logstream plugin (active-host aware). eng drives the streaming deploy operations (apply/deploy/destroy).
func (*Plugin) PluginName ¶
PluginName surfaces in /rpc/_introspect.plugins[].
func (*Plugin) RoutePatterns ¶
RoutePatterns claims the exact stream paths.