Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( NewFilePrefs, wire.Bind(new(PrefsInterface), new(*filePrefs)), )
Functions ¶
func NewFilePrefs ¶
func NewFilePrefs(dir *dirs.TiltDevDir) *filePrefs
func UpdateMetricsMode ¶
func UpdateMetricsMode(pi PrefsInterface, mode model.MetricsMode) error
Types ¶
type FakePrefs ¶
type FakePrefs struct {
Prefs Prefs
}
func NewFakePrefs ¶
func NewFakePrefs() *FakePrefs
type Prefs ¶
type Prefs struct { // The kind of metrics stack the user is talking to. MetricsMode model.MetricsMode `json:"metricsMode,omitempty" yaml:"metricsMode,omitempty"` }
TODO(nick): Eventually would like this interface to help with 1) other kinds of user preferences (token? analytics opt-in/opt-out?) 2) server-based preferences
type PrefsInterface ¶
Read/write metrics setting from a store. Inspired loosely by https://pkg.go.dev/k8s.io/client-go/kubernetes/typed/core/v1#PodInterface
Click to show internal directories.
Click to hide internal directories.