2017-12-13 18:46:08 +00:00
|
|
|
package noop
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
|
2019-01-08 00:37:16 +00:00
|
|
|
"github.com/influxdata/influxdb/chronograf"
|
2017-12-13 18:46:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// ensure ConfigStore implements chronograf.ConfigStore
|
|
|
|
var _ chronograf.ConfigStore = &ConfigStore{}
|
|
|
|
|
|
|
|
type ConfigStore struct{}
|
|
|
|
|
|
|
|
// TODO(desa): this really should be removed
|
|
|
|
func (s *ConfigStore) Initialize(context.Context) error {
|
|
|
|
return fmt.Errorf("cannot initialize")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *ConfigStore) Get(context.Context) (*chronograf.Config, error) {
|
|
|
|
return nil, chronograf.ErrConfigNotFound
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *ConfigStore) Update(context.Context, *chronograf.Config) error {
|
|
|
|
return fmt.Errorf("cannot update conifg")
|
|
|
|
}
|