Documentation
¶
Overview ¶
Package demofixtures holds the files `datatug demo install` writes into the local demo project: the pinned Chinook SQLite database, a small inGitDB database of synthetic support notes, the curated Perimeter policy and the Meaning Graph sensitivity labels. Everything is embedded in the binary, so installing the demo needs no network; the Chinook bytes are checked against their pinned sha256 before they are written.
Index ¶
Constants ¶
const ( ChinookSHA256 = "7651ba378ac2fcd0dfc3c66fb101f7a7eed3ba39a612ec642b96e20702061f15" ChinookSize int64 = 1007616 )
ChinookSHA256 and ChinookSize pin the embedded Chinook SQLite file: the same fixture https://chinook.demodb.dev/data/chinook.sqlite serves.
const ( ChinookPath = "data/chinook.sqlite" SupportPath = "data/support" PolicyPath = "policies/agent.yaml" LabelsPath = "datatug-labels.json" NoticePath = "data/NOTICE.md" )
Paths of the demo project files, relative to the project directory.
const ( ChinookSource = "chinook" SupportSource = "support" )
Source ids of the demo project.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct {
Path string // relative to the project directory, slash-separated
Content []byte
// Fixture marks a file whose bytes are pinned: a different file on disk
// is refused (fail closed) rather than preserved.
Fixture bool
}
File is one file of the demo project.