Documentation ¶
Index ¶
- Constants
- Variables
- func NewTiltfileLogWriter(s store.RStore, loadCount int) *tiltfileLogWriter
- func SpanIDForLoadCount(loadCount int) logstore.SpanID
- func ToFileWatchObjects(watchInputs WatchInputs) typedObjectSet
- type ConfigsController
- type ConfigsReloadStartedAction
- type ConfigsReloadedAction
- type WatchInputs
- type WatchableTarget
Constants ¶
View Source
const LabelOwnerKind = v1alpha1.LabelOwnerKind
View Source
const LabelOwnerKindTiltfile = v1alpha1.LabelOwnerKindTiltfile
Variables ¶
View Source
var ConfigsTargetID = model.TargetID{ Type: model.TargetTypeConfigs, Name: "singleton", }
Functions ¶
func NewTiltfileLogWriter ¶
func SpanIDForLoadCount ¶ added in v0.10.24
func ToFileWatchObjects ¶ added in v0.21.0
func ToFileWatchObjects(watchInputs WatchInputs) typedObjectSet
FileWatchesFromManifests creates FileWatch specs from Tilt manifests in the engine state.
Types ¶
type ConfigsController ¶
type ConfigsController struct {
// contains filtered or unexported fields
}
func NewConfigsController ¶
func NewConfigsController(tfl tiltfile.TiltfileLoader, dockerClient docker.Client, ctrlClient ctrlclient.Client) *ConfigsController
func (*ConfigsController) DisableForTesting ¶
func (cc *ConfigsController) DisableForTesting(disabled bool)
func (*ConfigsController) OnChange ¶
func (cc *ConfigsController) OnChange(ctx context.Context, st store.RStore, _ store.ChangeSummary) error
func (*ConfigsController) SetTiltfileLoaderForTesting ¶
func (cc *ConfigsController) SetTiltfileLoaderForTesting(tfl tiltfile.TiltfileLoader)
type ConfigsReloadStartedAction ¶
type ConfigsReloadStartedAction struct { FilesChanged []string StartTime time.Time SpanID logstore.SpanID Reason model.BuildReason }
func (ConfigsReloadStartedAction) Action ¶
func (ConfigsReloadStartedAction) Action()
type ConfigsReloadedAction ¶
type ConfigsReloadedAction struct { // TODO(nick): Embed TiltfileLoadResult instead of copying fields. Manifests []model.Manifest Tiltignore model.Dockerignore ConfigFiles []string FinishTime time.Time Err error Warnings []string Features map[string]bool TeamID string TelemetrySettings model.TelemetrySettings MetricsSettings model.MetricsSettings Secrets model.SecretSet DockerPruneSettings model.DockerPruneSettings AnalyticsTiltfileOpt analytics.Opt VersionSettings model.VersionSettings UpdateSettings model.UpdateSettings WatchSettings model.WatchSettings // A checkpoint into the logstore when Tiltfile execution started. // Useful for knowing how far back in time we have to scrub secrets. CheckpointAtExecStart logstore.Checkpoint }
func (ConfigsReloadedAction) Action ¶
func (ConfigsReloadedAction) Action()
type WatchInputs ¶ added in v0.21.0
type WatchInputs struct { Manifests []model.Manifest ConfigFiles []string WatchSettings model.WatchSettings Tiltignore model.Dockerignore EngineMode store.EngineMode }
type WatchableTarget ¶ added in v0.21.0
type WatchableTarget interface { ignore.IgnorableTarget Dependencies() []string ID() model.TargetID }
Click to show internal directories.
Click to hide internal directories.