text: import "go.chromium.org/luci/milo/buildsource/buildbot/buildstore"
  Package buildstore implements storage of //milo/api/buildbot/* types.
  annotations.go blame.go build.go buildbucket.go doc.go emulation.go encoding.go master.go query.go
  MasterExpiry is how long a master entity can be stale before we consider it to be expired.
  ErrNoBuildNumber is an error tag indicating that a build does not have a build number.
  ImportRejectedTag is tagged to an error when an entity cannot be mutated anymore.
  var TooBigTag = errors.BoolTag{ Key: errors.NewTagKey("entity was not saved because it was too large to store"), }
  TooBigTag indicates that entity was not saved because it was too large to store.
  BucketOf returns LUCI bucket that the given buildbot master is migrating to. Returns "" if it is unknown.
  CanAccessMaster returns nil if the currently logged in user can see the masters, or if the given master is a known public master, otherwise an error.
  EmulationEnabled returns true if emulation is enabled in c.
  EmulationOf returns the Buildbucket build that the given Buildbot build is emulating. Returns (nil, nil) if build is not found.
  GetBuild fetches a buildbot build from the storage. Returns (nil, nil) if build is not found. Does not check access.
  GetPendingCounts returns numbers of pending builds in builders. builders must be a list of slash-separated master, builder names.
  PutPendingCount persists number of pending builds to a builder. Useful for testing.
  SaveBuild persists the build in the storage.
  This will also update the model.BuildSummary and model.BuilderSummary.
  func SaveMaster(c context.Context, master *buildbot.Master, internal bool, expireCallback ExpireCallback) error
  SaveMaster persists the master in the storage.
  Expires all incomplete builds in the datastore associated with this master and
  - associated with builders not declared in master.Builders - OR or not "current" from this master's perspective and >=20min stale.
  WithEmulation enables or disables emulation.
  ExpireCallback is called when a build is marked as expired.
  Master is buildbot.Master plus extra storage-level information.
  AllMasters returns all buildbot masters.
  GetMaster fetches a master.
  If refreshState is true, refreshes individual builds from the datastore and the list of Cached builds.
  If any of the master's builders is emulated, the returned Master does not have any slave information or pending build states.
  Does not check access.
  type Query struct { Master string Builder string Limit int Finished Ternary Cursor string // KeyOnly, if true, makes the datastore query keys-only. // Loaded Buildbot builds will have only master, builder and number. KeyOnly bool // make the data // NoAnnotationFetch, if true, will not fetch annotation proto from LogDog. // Loaded LUCI builds will not have properties, steps, logs or text. NoAnnotationFetch bool // NoChangeFetch, if true, will not load change history from Gitiles. // Loaded LUCI builds will not have Blame or SourceStamp.Changes. NoChangeFetch bool }
  Query is a build query.
  type QueryResult struct { Builds []*buildbot.Build // ordered from greater-number to lower-number NextCursor string PrevCursor string }
  QueryResult is a result of running a Query.
  GetBuilds executes a build query and returns results. Does not check access.
  Ternary has 3 defined values: either (zero), yes and no.
  Package buildstore imports 48 packages (graph) and is imported by 4 packages. Updated 2018-08-14. Refresh now. Tools for package owners.