Documentation ¶
Overview ¶
Package tabulator processes test group state into tab state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TabStatePath ¶ added in v0.0.125
TabStatePath returns the path for a given tab.
func Update ¶
func Update(ctx context.Context, client gcs.ConditionalClient, mets *Metrics, opts *UpdateOptions, fixers ...Fixer) error
Update tab state with the given frequency continuously. If freq == 0, runs only once.
Copies the grid into the tab state, removing unneeded data. Observes each test group in allowedGroups, or all of them in the config if not specified
Types ¶
type Fixer ¶
type Fixer func(context.Context, *config.TestGroupQueue) error
Fixer should adjust the queue until the context expires.
func FixGCS ¶ added in v0.0.125
func FixGCS(client pubsub.Subscriber, log logrus.FieldLogger, projID, subID string, configPath gcs.Path, gridPathPrefix string) (Fixer, error)
FixGCS listens for GCS changes to test groups and schedules another update of its dashboards ~immediately.
Returns when the context is canceled or a processing error occurs.
func FixPersistent ¶ added in v0.0.125
func FixPersistent(log logrus.FieldLogger, client queue.PersistClient, path gcs.Path, tick <-chan time.Time) Fixer
FixPersistent persists the updater queue using queue.FixPersistent.
type Metrics ¶
Metrics holds metrics relevant to this controller.
func CreateMetrics ¶
CreateMetrics creates metrics for this controller
type UpdateOptions ¶ added in v0.0.156
type UpdateOptions struct { ConfigPath gcs.Path ReadConcurrency int WriteConcurrency int GridPathPrefix string TabsPathPrefix string AllowedGroups []string Confirm bool CalculateStats bool UseTabAlertSettings bool ExtendState bool Freq time.Duration }
UpdateOptions aggregates the Update function parameter into a single structure.