builders

package
v0.0.0-...-2887efe Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 46 Imported by: 0

Documentation

Overview

Package builders builds objects from config.InstanceConfig objects.

These are functions separate from config.InstanceConfig so that we don't end up with cyclical import issues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheFromConfig

func GetCacheFromConfig(ctx context.Context, instanceConfig config.InstanceConfig) (cache.Cache, error)

GetCacheFromConfig returns a cache.Cache instance based on the given configuration.

func NewAlertStoreFromConfig

func NewAlertStoreFromConfig(ctx context.Context, local bool, instanceConfig *config.InstanceConfig) (alerts.Store, error)

NewAlertStoreFromConfig creates a new alerts.Store from the InstanceConfig.

func NewAnomalyGroupStoreFromConfig

func NewAnomalyGroupStoreFromConfig(ctx context.Context, instanceConfig *config.InstanceConfig) (anomalygroup.Store, error)

NewAnomalyGroupStoreFromConfig creates a new anomalygroup.Store from the InstanceConfig which provides access to the anomalygroup data.

func NewCockroachDBFromConfig

func NewCockroachDBFromConfig(ctx context.Context, instanceConfig *config.InstanceConfig, checkSchema bool) (pool.Pool, error)

NewCockroachDBFromConfig opens an existing CockroachDB database.

No migrations are applied automatically, they must be applied by the 'migrate' command line application. See COCKROACHDB.md for more details.

func NewCulpritStoreFromConfig

func NewCulpritStoreFromConfig(ctx context.Context, instanceConfig *config.InstanceConfig) (culprit.Store, error)

NewCulpritStoreFromConfig creates a new culprit.Store from the InstanceConfig which provides access to the culprit data.

func NewFavoriteStoreFromConfig

func NewFavoriteStoreFromConfig(ctx context.Context, instanceConfig *config.InstanceConfig) (favorites.Store, error)

NewFavoriteStoreFromConfig creates a new favorites.Store from the InstanceConfig which provides access to the favorite data.

func NewGraphsShortcutStoreFromConfig

func NewGraphsShortcutStoreFromConfig(ctx context.Context, local bool, instanceConfig *config.InstanceConfig) (graphsshortcut.Store, error)

NewShortcutStoreFromConfig creates a new shortcut.Store from the InstanceConfig.

func NewIngestedFSFromConfig

func NewIngestedFSFromConfig(ctx context.Context, cfg *config.InstanceConfig, local bool) (fs.FS, error)

NewIngestedFSFromConfig creates a new fs.FS from the InstanceConfig which provides access to ingested files.

If local is true then we aren't running in production.

func NewPerfGitFromConfig

func NewPerfGitFromConfig(ctx context.Context, local bool, instanceConfig *config.InstanceConfig) (perfgit.Git, error)

NewPerfGitFromConfig return a new perfgit.Git for the given instanceConfig.

The instance created does not poll by default, callers need to call StartBackgroundPolling().

func NewRegressionStoreFromConfig

func NewRegressionStoreFromConfig(ctx context.Context, local bool, instanceConfig *config.InstanceConfig, alertsConfigProvider alerts.ConfigProvider) (regression.Store, error)

NewRegressionStoreFromConfig creates a new regression.RegressionStore from the InstanceConfig.

If local is true then we aren't running in production.

func NewShortcutStoreFromConfig

func NewShortcutStoreFromConfig(ctx context.Context, local bool, instanceConfig *config.InstanceConfig) (shortcut.Store, error)

NewShortcutStoreFromConfig creates a new shortcut.Store from the InstanceConfig.

func NewSourceFromConfig

func NewSourceFromConfig(ctx context.Context, instanceConfig *config.InstanceConfig, local bool) (file.Source, error)

NewSourceFromConfig creates a new file.Source from the InstanceConfig.

If local is true then we aren't running in production.

func NewSubscriptionStoreFromConfig

func NewSubscriptionStoreFromConfig(ctx context.Context, instanceConfig *config.InstanceConfig) (subscription.Store, error)

NewSubscriptionStoreFromConfig creates a new subscription.Store from the InstanceConfig which provides access to the subscription data.

func NewTraceStoreFromConfig

func NewTraceStoreFromConfig(ctx context.Context, local bool, instanceConfig *config.InstanceConfig) (tracestore.TraceStore, error)

NewTraceStoreFromConfig creates a new TraceStore from the InstanceConfig.

If local is true then we aren't running in production.

func NewUserIssueStoreFromConfig

func NewUserIssueStoreFromConfig(ctx context.Context, instanceConfig *config.InstanceConfig) (userissue.Store, error)

NewUserIssueStoreFromConfig creates a new userissue.Store from the InstanceConfig which provides access to the userissue data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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