package provision // Record-write census entries for design-plans-and-caps (plans 1), layered // on scanDemandWriteCensusInventory. Reviewed by the branch author; the // census owner rules on #280 (PROPOSED-design-plans-and-caps). // - Server.registerCLIRoutes gains the two account plan doors // (GET/POST /api/cli/accounts/{account}/plan); its instance and sidecar // literals are unchanged, so it keeps its key-site class. // - ClassifyMutation gains the put-only accounts//limits.json // family; it still only names Put as a method string. // - plans.PutLimits writes accounts//limits.json, an account limits // record, never an instance or sidecar record: nonrecord. func plansCapsWriteCensusInventory() []censusEntry { entries := append([]censusEntry(nil), scanDemandWriteCensusInventory()...) replacements := []censusEntry{ {"internal/console/authcli.go", "Server.registerCLIRoutes", "key-site", "lit:instances,lit:sidecars", "baaf2626c2f32666f68109d38910b5e33349086de8b414bafe874a603d708490"}, {"internal/hostops/mutation_classifier.go", "ClassifyMutation", "reference", "str:Put", "b3e3b647a6786c67600ed808b45732e1b94a229c6706e58ee5547cba5f983633"}, {"internal/plans/record.go", "PutLimits", "nonrecord", "sel:Put", "4284a2f636e4d114538c16d7a4f6ec37bc2ecaf02bac034e8c7a4a0d43d96a9b"}, } for _, replacement := range replacements { found := false for i, entry := range entries { if entry.File == replacement.File && entry.Unit == replacement.Unit { entries[i], found = replacement, true break } } if !found { entries = append(entries, replacement) } } return entries }