configs

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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 NewTiltfileLogWriter(s store.RStore, loadCount int) *tiltfileLogWriter

func SpanIDForLoadCount added in v0.10.24

func SpanIDForLoadCount(loadCount int) logstore.SpanID

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 (*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
}

Jump to

Keyboard shortcuts

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