hub v0.181.0 (not deployed): root files are 'behind' only when the files differ (R-1392, decision 304); Go 1.27.4 (R-1391)
gates / gates (push) Successful in 1m55s

This commit is contained in:
admin committed 2026-11-14 10:11:31 +01:00
1 parent 561a4d98e9
commit 83316fc986
15 files changed
+442 -11

No files matched your search

+6
View File
@@ -77,6 +77,7 @@ type Server struct {
offsiteWindowGrant func(customerID string) error
offsiteWindowGrantMax func(customerID string, maxRemove int) error
osUpdates OSUpdateAdmin
sameBundleFiles func(boxVersion, boxSHA, vouchedVersion, vouchedSHA string) bool // R-1392; nil = never the same
offsiteWindowSwitch func(on bool) error
// operator key-file clean-up (decision 72) and abandonment cancel (decision 74). nil → 503.
offsiteRemoveUnpinned func(ctx context.Context, customerID string) (int, error)
@@ -254,6 +255,11 @@ type OSUpdateAdmin interface {
// SetOSUpdateAdmin wires the OS-update operator routes.
func (s *Server) SetOSUpdateAdmin(a OSUpdateAdmin) { s.osUpdates = a }
// SetSameBundleFiles wires the "same files under another label" answer for the System page's Root files cell (R-1392).
func (s *Server) SetSameBundleFiles(f func(boxVersion, boxSHA, vouchedVersion, vouchedSHA string) bool) {
s.sameBundleFiles = f
}
// SetOffsiteWindowLargeGrant wires the operator's one-window raised cap (R-833).
func (s *Server) SetOffsiteWindowLargeGrant(fn func(string, int) error) { s.offsiteWindowGrantMax = fn }