snapshot

package
v0.0.142 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Observe

func Observe(ctx context.Context, log logrus.FieldLogger, client gcs.ConditionalClient, configPath gcs.Path, ticker <-chan time.Time) (<-chan *Config, error)

Observe reads the config at configPath and return a ConfigSnapshot initially and, if a ticker is supplied, when the config changes Returns an error instead if there is no file at configPath

Types

type Config

type Config struct {
	Dashboards map[string]*configpb.Dashboard
	Groups     map[string]*configpb.TestGroup
	Attrs      storage.ReaderObjectAttrs
}

Config is a mapped representation of the config at a particular point in time. Not concurrency-safe; meant for reading only

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL