blobprefix

package
v1.76.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 0 Imported by: 1

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

View Source
const (
	GitHub = "github/"
	Slack  = "slack/"
	Google = "google/"
)

The module roots.

View Source
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.

View Source
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

func Legacy(prefix string) string

Legacy is the layout v4 location of a prefix of Used, or "" for one that has none worth copying.

func Root

func Root(module string) string

Root is the module's prefix in the bucket, with the trailing slash.

func Used

func Used() map[string][]string

Used is every prefix the code reads or writes, by the module that owns it. The backup export keeps the reports and not the cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

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