Documentation
¶
Overview ¶
Package blobprefix names every key prefix that sluis reads or writes in the blob store on layout v5, and is the one place they are defined.
A module owns the blobs under `<module>/`, and nothing else in the bucket: the function role of the module that hosts it is granted exactly that prefix (deploy/pulumi, BlobPrefix), so a prefix defined anywhere else would be one no role may touch. The code, the backup export and the IAM policy all take their prefixes from here, and a test fails when one of them is not under the module's own root.
Index ¶
Constants ¶
const ( GitHub = "github/" Slack = "slack/" Google = "google/" )
The module roots.
const ( // GitHubReports holds what the GitHub controller last reported, one object // per organisation. GitHubReports = GitHub + "reports/" // SlackReports holds what the Slack controller last reported, one object per // workspace. SlackReports = Slack + "reports/" // GoogleCache holds the hub's directory snapshots, one object per workspace. GoogleCache = Google + "cache/" )
The prefixes below a module's root.
const ( LegacyGitHubReports = "reports/github/" LegacySlackReports = "reports/slack/" LegacyCache = "snapshots/" )
The prefixes of layout v4 and of releases before v1.75, where the reports sat at the root of the bucket and the cache under `snapshots/`. Nothing reads or writes them on layout v5 except `sluis migrate v5`, which copies the reports from them; they can be deleted from a bucket.
Variables ¶
This section is empty.
Functions ¶
func Legacy ¶
Legacy is the layout v4 location of a prefix of Used, or "" for one that has none worth copying.
Types ¶
This section is empty.