Documentation ¶
Index ¶
- Constants
- Variables
- func NewErrorAction(err error) store.ErrorAction
- func ProvideSubscribers(hudsc *server.HeadsUpServerController, ...) []store.Subscriber
- func ProvideSubscribersAPIOnly(hudsc *server.HeadsUpServerController, ...) []store.Subscriber
- func SpanIDForBuildLog(buildCount int) logstore.SpanID
- type BuildController
- type BuildOrder
- type CompositeBuildAndDeployer
- type FallbackTester
- type HudStoppedAction
- type InitAction
- type ManifestReloadedAction
- type PodWatcherMaker
- type ServiceWatcherMaker
- type TelemetryScriptRanAction
- type UIDUpdateAction
- type Upper
Constants ¶
View Source
const BuildControlSource = "buildcontrol"
Variables ¶
View Source
var DeployerBaseWireSet = wire.NewSet(buildcontrol.BaseWireSet, wire.Value(UpperReducer), DefaultBuildOrder, wire.Bind(new(buildcontrol.BuildAndDeployer), new(*CompositeBuildAndDeployer)), NewCompositeBuildAndDeployer)
View Source
var DeployerWireSet = wire.NewSet( DeployerBaseWireSet, )
View Source
var DeployerWireSetTest = wire.NewSet( DeployerBaseWireSet, wire.InterfaceValue(new(trace.SpanExporter), (trace.SpanExporter)(nil)), )
View Source
var UpperReducer = store.Reducer(upperReducerFn)
Functions ¶
func NewErrorAction ¶
func NewErrorAction(err error) store.ErrorAction
func ProvideSubscribers ¶ added in v0.8.0
func ProvideSubscribers( hudsc *server.HeadsUpServerController, tscm *controllers.TiltServerControllerManager, cb *controllers.ControllerBuilder, hud hud.HeadsUpDisplay, ts *hud.TerminalStream, tp *prompt.TerminalPrompt, sw *k8swatch.ServiceWatcher, bc *BuildController, cc *configs.ConfigsController, tqs *configs.TriggerQueueSubscriber, dclm *runtimelog.DockerComposeLogManager, ar *analytics.AnalyticsReporter, au *analytics.AnalyticsUpdater, ewm *k8swatch.EventWatchManager, tcum *cloud.CloudStatusManager, dp *dockerprune.DockerPruner, tc *telemetry.Controller, lsc *local.ServerController, podm *k8srollout.PodMonitor, sc *session.Controller, uss *uisession.Subscriber, urs *uiresource.Subscriber, ) []store.Subscriber
func ProvideSubscribersAPIOnly ¶ added in v0.19.0
func ProvideSubscribersAPIOnly( hudsc *server.HeadsUpServerController, tscm *controllers.TiltServerControllerManager, cb *controllers.ControllerBuilder, ts *hud.TerminalStream, ) []store.Subscriber
Subscribers that only read from the new Tilt API, and run the API server.
func SpanIDForBuildLog ¶ added in v0.10.24
Types ¶
type BuildController ¶
type BuildController struct {
// contains filtered or unexported fields
}
func NewBuildController ¶
func NewBuildController(b buildcontrol.BuildAndDeployer) *BuildController
func (*BuildController) DisableForTesting ¶ added in v0.1.0
func (c *BuildController) DisableForTesting()
func (*BuildController) OnChange ¶
func (c *BuildController) OnChange(ctx context.Context, st store.RStore, summary store.ChangeSummary) error
type BuildOrder ¶
type BuildOrder []buildcontrol.BuildAndDeployer
func DefaultBuildOrder ¶
func DefaultBuildOrder(ibad *buildcontrol.ImageBuildAndDeployer, dcbad *buildcontrol.DockerComposeBuildAndDeployer, ltbad *buildcontrol.LocalTargetBuildAndDeployer, updMode liveupdates.UpdateMode) BuildOrder
func (BuildOrder) String ¶ added in v0.7.11
func (bo BuildOrder) String() string
type CompositeBuildAndDeployer ¶
type CompositeBuildAndDeployer struct {
// contains filtered or unexported fields
}
CompositeBuildAndDeployer tries to run each builder in order. If a builder emits an error, it uses the FallbackTester to determine whether the error is critical enough to stop the whole pipeline, or to fallback to the next builder.
func NewCompositeBuildAndDeployer ¶
func NewCompositeBuildAndDeployer(builders BuildOrder, tracer trace.Tracer) *CompositeBuildAndDeployer
func (*CompositeBuildAndDeployer) BuildAndDeploy ¶
func (composite *CompositeBuildAndDeployer) BuildAndDeploy(ctx context.Context, st store.RStore, specs []model.TargetSpec, currentState store.BuildStateSet) (store.BuildResultSet, error)
type FallbackTester ¶
type HudStoppedAction ¶ added in v0.1.0
type HudStoppedAction struct {
// contains filtered or unexported fields
}
func NewHudStoppedAction ¶ added in v0.1.0
func NewHudStoppedAction(err error) HudStoppedAction
func (HudStoppedAction) Action ¶ added in v0.1.0
func (HudStoppedAction) Action()
type InitAction ¶
type InitAction struct { TiltfilePath string ConfigFiles []string UserArgs []string TiltBuild model.TiltBuild StartTime time.Time AnalyticsUserOpt analytics.Opt CloudAddress string Token token.Token TerminalMode store.TerminalMode }
func (InitAction) Action ¶
func (InitAction) Action()
type ManifestReloadedAction ¶
type ManifestReloadedAction struct { OldManifest model.Manifest NewManifest model.Manifest Error error }
func (ManifestReloadedAction) Action ¶
func (ManifestReloadedAction) Action()
type TelemetryScriptRanAction ¶ added in v0.10.25
func (TelemetryScriptRanAction) Action ¶ added in v0.10.25
func (TelemetryScriptRanAction) Action()
type UIDUpdateAction ¶ added in v0.8.9
type UIDUpdateAction struct { UID types.UID EventType watch.EventType ManifestName model.ManifestName Entity k8s.K8sEntity }
func (UIDUpdateAction) Action ¶ added in v0.8.9
func (UIDUpdateAction) Action()
type Upper ¶
type Upper struct {
// contains filtered or unexported fields
}
TODO(nick): maybe this should be called 'BuildEngine' or something? Upper seems like a poor and undescriptive name.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package analytics handles reporting of anonymized usage statistics about what features of Tilt are in use.
|
Package analytics handles reporting of anonymized usage statistics about what features of Tilt are in use. |
Click to show internal directories.
Click to hide internal directories.