carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package status
2
3import "embed"
4
5// assetsFS embeds the fleet status page's viewer — index.html and
6// status.css — straight into the carlos binary. This is the "the viewer
7// rides the binary" half of the design (see the design spec §3): page
8// changes deploy with a binary release, data changes deploy every 5
9// minutes when the status-lease holder republishes fleet.json. Kept in its
10// own file (rather than fleet.go) because it's a pure asset declaration
11// with no logic of its own — PublishFleet in fleet.go is what actually
12// reads out of this FS and Puts each file to the bucket.
13//
14//go:embed assets/*
15var assetsFS embed.FS
16