Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a mapped representation of the config at a particular point in time
func Observe ¶
func Observe(ctx context.Context, log logrus.FieldLogger, client gcs.ConditionalClient, configPath gcs.Path, update OnConfigUpdate) (*Config, error)
Observe will continuously keep the config up-to-date. If it the config changes, the callback will be called. Runs continuously until the context expires.
func (*Config) AllDashboards ¶
AllDashboards returns all dashboards
func (*Config) DashboardTestGroups ¶
func (cs *Config) DashboardTestGroups(dashboardName string) (*configpb.Dashboard, map[string]*configpb.TestGroup)
DashboardTestGroups returns a dashboard's configuration and a map containing:
Each dashboard tabs name -> the configuration of the test group backing it
type OnConfigUpdate ¶
OnConfigUpdate is a function to be called whenever the config is found to have changed Errors returned by this will be logged, but will not stop the config update.
Click to show internal directories.
Click to hide internal directories.