docs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package docs embeds the OpenAPI description of the daemon API so a compiled binary can describe itself with no network and no checkout.

The Go file lives in docs/ rather than in internal/ because //go:embed patterns cannot contain ".." — the file has to sit beside the spec. Keeping the spec at docs/openapi.yaml (rather than copying it under internal/) means there is exactly one copy: the file a human edits, the file `make api-check` verifies against internal/daemon/routes.go, and the bytes the daemon serves at /openapi.yaml are the same bytes.

Index

Constants

This section is empty.

Variables

View Source
var OpenAPISpec []byte

OpenAPISpec is docs/openapi.yaml verbatim. It is served, unmodified, by the daemon's GET /openapi.yaml; GET /openapi.json converts it on demand.

Treat it as read-only: it is backed by the binary's read-only data section in spirit, and every caller shares the slice.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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