tiltfile

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 84 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownBuild dockerImageBuildType = iota
	DockerBuild
	CustomBuild
	DockerComposeBuild
)
View Source
const (
	TriggerModeUnset  triggerMode = iota
	TriggerModeAuto   triggerMode = iota
	TriggerModeManual triggerMode = iota
)
View Source
const FileName = "Tiltfile"

Variables

Functions

func ApiStubs added in v0.26.0

func ApiStubs() fs.FS

func DumpApiStubs added in v0.26.0

func DumpApiStubs(dir string, info model.TiltBuild, callback func(string, error)) error

func WalkApiStubs added in v0.26.0

func WalkApiStubs(fn fs.WalkDirFunc) error

Types

type FakeTiltfileLoader added in v0.7.11

type FakeTiltfileLoader struct {
	Result   TiltfileLoadResult
	Args     []string
	Delegate TiltfileLoader
}

func NewFakeTiltfileLoader added in v0.7.11

func NewFakeTiltfileLoader() *FakeTiltfileLoader

func (*FakeTiltfileLoader) Load added in v0.7.11

func (*FakeTiltfileLoader) PassedArgs added in v0.23.2

func (tfl *FakeTiltfileLoader) PassedArgs() []string

the Args that was passed to the last invocation of Load

type TiltfileLoadResult added in v0.7.11

type TiltfileLoadResult struct {
	Manifests           []model.Manifest
	EnabledManifests    []model.ManifestName
	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
	DefaultRegistry     *corev1alpha1.RegistryHosting
	ObjectSet           apiset.ObjectSet
	Hashes              hasher.Hashes
	CISettings          *corev1alpha1.SessionCISpec

	// For diagnostic purposes only
	BuiltinCalls []starkit.BuiltinCall `json:"-"`
}

func (TiltfileLoadResult) HasOrchestrator added in v0.25.1

func (r TiltfileLoadResult) HasOrchestrator(orc model.Orchestrator) bool

func (TiltfileLoadResult) WithAllManifestsEnabled added in v0.24.0

func (r TiltfileLoadResult) WithAllManifestsEnabled() TiltfileLoadResult

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, prevResult *TiltfileLoadResult) TiltfileLoadResult
}

func ProvideTiltfileLoader added in v0.7.11

func ProvideTiltfileLoader(
	analytics *analytics.TiltAnalytics,
	k8sContextPlugin k8scontext.Plugin,
	versionPlugin version.Plugin,
	configPlugin *config.Plugin,
	extensionPlugin *tiltextension.Plugin,
	ciSettingsPlugin cisettings.Plugin,
	dcCli dockercompose.DockerComposeClient,
	webHost model.WebHost,
	execer localexec.Execer,
	fDefaults feature.Defaults,
	env clusterid.Product) TiltfileLoader

Directories

Path Synopsis
Starkit is a toolkit for implementing Starlark interpreters, with support for:
Starkit is a toolkit for implementing Starlark interpreters, with support for:
Package extension implements Tilt extensions.
Package extension implements Tilt extensions.
Helper functions for doing value conversions.
Helper functions for doing value conversions.

Jump to

Keyboard shortcuts

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