Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnknownBuild = iota DockerBuild CustomBuild )
View Source
const ( TriggerModeUnset triggerMode = iota TriggerModeAuto triggerMode = iota TriggerModeManual triggerMode = iota )
View Source
const FileName = "Tiltfile"
Variables ¶
View Source
var TiltfileExecCount = &view.View{ Name: "tiltfile_exec_count", Measure: TiltfileExecDuration, Aggregation: view.Count(), Description: "Tiltfile exec count", TagKeys: []octag.Key{keyExecError}, }
View Source
var TiltfileExecDuration = stats.Float64( "tiltfile_exec_duration", "Tiltfile exec duration", stats.UnitMilliseconds)
View Source
var TiltfileExecDurationDistribution = view.Distribution(
10, 100, 500, 1000, 2000, 5000,
10000, 15000, 20000, 30000, 45000, 60000, 120000,
240000, 480000, 1000000, 2000000, 5000000)
View Source
var TiltfileExecDurationView = &view.View{ Name: "tiltfile_exec_duration_dist", Measure: TiltfileExecDuration, Aggregation: TiltfileExecDurationDistribution, Description: "Tiltfile exec time, by image ref", TagKeys: []octag.Key{keyExecError}, }
View Source
var WireSet = wire.NewSet( ProvideTiltfileLoader, k8scontext.NewPlugin, version.NewPlugin, config.NewPlugin, )
Functions ¶
func DockerComposeConfigToService ¶ added in v0.10.8
func DockerComposeConfigToService(svcConfig types.ServiceConfig) (dcService, error)
Types ¶
type FakeTiltfileLoader ¶ added in v0.7.11
type FakeTiltfileLoader struct { Result TiltfileLoadResult Delegate TiltfileLoader // contains filtered or unexported fields }
func NewFakeTiltfileLoader ¶ added in v0.7.11
func NewFakeTiltfileLoader() *FakeTiltfileLoader
func (*FakeTiltfileLoader) Load ¶ added in v0.7.11
func (tfl *FakeTiltfileLoader) Load(ctx context.Context, tf *v1alpha1.Tiltfile) TiltfileLoadResult
func (*FakeTiltfileLoader) PassedUserConfigState ¶ added in v0.14.0
func (tfl *FakeTiltfileLoader) PassedUserConfigState() model.UserConfigState
the UserConfigState that was passed to the last invocation of Load
type TiltfileLoadResult ¶ added in v0.7.11
type TiltfileLoadResult struct { Manifests []model.Manifest Tiltignore model.Dockerignore ConfigFiles []string FeatureFlags map[string]bool TeamID string TelemetrySettings model.TelemetrySettings Secrets model.SecretSet Error error DockerPruneSettings model.DockerPruneSettings AnalyticsOpt wmanalytics.Opt VersionSettings model.VersionSettings UpdateSettings model.UpdateSettings WatchSettings model.WatchSettings ObjectSet apiset.ObjectSet // For diagnostic purposes only BuiltinCalls []starkit.BuiltinCall `json:"-"` }
func (TiltfileLoadResult) Orchestrator ¶ added in v0.9.1
func (r TiltfileLoadResult) Orchestrator() model.Orchestrator
type TiltfileLoader ¶ added in v0.7.11
type TiltfileLoader interface { // Load the Tiltfile. // // By design, Load() always returns a result. // We want to be very careful not to treat non-zero exit codes like an error. // Because even if the Tiltfile has errors, we might need to watch files // or return partial results (like enabled features). Load(ctx context.Context, tf *corev1alpha1.Tiltfile) TiltfileLoadResult }
func ProvideTiltfileLoader ¶ added in v0.7.11
func ProvideTiltfileLoader( analytics *analytics.TiltAnalytics, kCli k8s.Client, k8sContextExt k8scontext.Plugin, versionExt version.Plugin, configExt *config.Plugin, dcCli dockercompose.DockerComposeClient, webHost model.WebHost, localEnv *localexec.Env, fDefaults feature.Defaults, env k8s.Env) TiltfileLoader
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Starkit is a toolkit for implementing Starlark interpreters, with support for: (1) reusable sets of builtins (2) collecting state on a starlark thread (3) instrumenting builtins with analytics So that builtins from different packages can be composed.
|
Starkit is a toolkit for implementing Starlark interpreters, with support for: (1) reusable sets of builtins (2) collecting state on a starlark thread (3) instrumenting builtins with analytics So that builtins from different packages can be composed. |
Package extension implements Tilt extensions.
|
Package extension implements Tilt extensions. |
Helper functions for doing value conversions.
|
Helper functions for doing value conversions. |
Click to show internal directories.
Click to hide internal directories.