tiltfile

package
Version: v0.13.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 56 Imported by: 0

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"
View Source
const TiltIgnoreFileName = ".tiltignore"

Variables

Functions

func DockerComposeConfigToService

func DockerComposeConfigToService(c dockercompose.Config, name string) (dcService, error)

Types

type FakeTiltfileLoader

type FakeTiltfileLoader struct {
	Result TiltfileLoadResult
	// contains filtered or unexported fields
}

func NewFakeTiltfileLoader

func NewFakeTiltfileLoader() *FakeTiltfileLoader

func (*FakeTiltfileLoader) Load

func (tfl *FakeTiltfileLoader) Load(ctx context.Context, filename string, userConfigState model.UserConfigState) TiltfileLoadResult

func (*FakeTiltfileLoader) PassedUserConfigState

func (tfl *FakeTiltfileLoader) PassedUserConfigState() model.UserConfigState

the UserConfigState that was passed to the last invocation of Load

type TiltfileLoadResult

type TiltfileLoadResult struct {
	Manifests           []model.Manifest
	ConfigFiles         []string
	TiltIgnoreContents  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
}

func (TiltfileLoadResult) Orchestrator

func (r TiltfileLoadResult) Orchestrator() model.Orchestrator

type TiltfileLoader

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, filename string, userConfigState model.UserConfigState) TiltfileLoadResult
}

func ProvideTiltfileLoader

func ProvideTiltfileLoader(
	analytics *analytics.TiltAnalytics,
	kCli k8s.Client,
	k8sContextExt k8scontext.Extension,
	versionExt version.Extension,
	dcCli dockercompose.DockerComposeClient,
	webHost model.WebHost,
	fDefaults feature.Defaults,
	env k8s.Env) TiltfileLoader

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to