Documentation ¶
Index ¶
- Constants
- func CompleteView(ctx context.Context, client ctrlclient.Client, st store.RStore) (*proto_webview.View, error)
- func LogSegmentToEvent(seg *proto_webview.LogSegment, spans map[string]*proto_webview.LogSpan) store.LogAction
- func LogUpdate(st store.RStore, checkpoint logstore.Checkpoint) (*proto_webview.View, error)
- func NeedsNudge(st store.EngineState) bool
- func TiltfileResource(name model.ManifestName, ms *store.ManifestState, logStore *logstore.LogStore) *v1alpha1.UIResource
- func ToAPILinks(lns []model.Link) []v1alpha1.UIResourceLink
- func ToAPITargetSpecs(specs []model.TargetSpec) ([]v1alpha1.UIResourceTargetSpec, error)
- func ToBuildRunning(br model.BuildRecord) *v1alpha1.UIBuildRunning
- func ToBuildTerminated(br model.BuildRecord, logStore *logstore.LogStore) v1alpha1.UIBuildTerminated
- func ToBuildsTerminated(brs []model.BuildRecord, logStore *logstore.LogStore) []v1alpha1.UIBuildTerminated
- func ToUIResourceList(state store.EngineState, disableSources map[string][]v1alpha1.DisableSource) ([]*v1alpha1.UIResource, error)
- func ToUISession(s store.EngineState) *v1alpha1.UISession
- func UIResourceReadyCondition(r v1alpha1.UIResourceStatus) v1alpha1.UIResourceCondition
- func UIResourceUpToDateCondition(r v1alpha1.UIResourceStatus) v1alpha1.UIResourceCondition
Constants ¶
const UISessionName = "Tiltfile"
We call the main session the Tiltfile session, for compatibility with the other Session API.
Variables ¶
This section is empty.
Functions ¶
func CompleteView ¶ added in v0.20.5
func CompleteView(ctx context.Context, client ctrlclient.Client, st store.RStore) (*proto_webview.View, error)
Create the complete snapshot of the webview.
func LogSegmentToEvent ¶ added in v0.17.0
func LogSegmentToEvent(seg *proto_webview.LogSegment, spans map[string]*proto_webview.LogSpan) store.LogAction
func LogUpdate ¶ added in v0.20.5
func LogUpdate(st store.RStore, checkpoint logstore.Checkpoint) (*proto_webview.View, error)
Create a view that only contains logs since the given checkpoint.
func NeedsNudge ¶ added in v0.8.4
func NeedsNudge(st store.EngineState) bool
func TiltfileResource ¶ added in v0.23.2
func TiltfileResource(name model.ManifestName, ms *store.ManifestState, logStore *logstore.LogStore) *v1alpha1.UIResource
TODO(nick): We should build this from the Tiltfile in the apiserver, not the Tiltfile state in EngineState.
func ToAPILinks ¶ added in v0.20.2
func ToAPILinks(lns []model.Link) []v1alpha1.UIResourceLink
func ToAPITargetSpecs ¶ added in v0.20.2
func ToAPITargetSpecs(specs []model.TargetSpec) ([]v1alpha1.UIResourceTargetSpec, error)
func ToBuildRunning ¶ added in v0.20.2
func ToBuildRunning(br model.BuildRecord) *v1alpha1.UIBuildRunning
func ToBuildTerminated ¶ added in v0.20.2
func ToBuildTerminated(br model.BuildRecord, logStore *logstore.LogStore) v1alpha1.UIBuildTerminated
func ToBuildsTerminated ¶ added in v0.20.2
func ToBuildsTerminated(brs []model.BuildRecord, logStore *logstore.LogStore) []v1alpha1.UIBuildTerminated
func ToUIResourceList ¶ added in v0.20.4
func ToUIResourceList(state store.EngineState, disableSources map[string][]v1alpha1.DisableSource) ([]*v1alpha1.UIResource, error)
Converts an EngineState into a list of UIResources. The order of the list is non-deterministic.
func ToUISession ¶ added in v0.20.4
func ToUISession(s store.EngineState) *v1alpha1.UISession
Converts EngineState into the public data model representation, a UISession.
func UIResourceReadyCondition ¶ added in v0.23.2
func UIResourceReadyCondition(r v1alpha1.UIResourceStatus) v1alpha1.UIResourceCondition
The "Ready" condition is a cross-resource status report that's synthesized from the more type-specific fields of UIResource.
func UIResourceUpToDateCondition ¶ added in v0.23.2
func UIResourceUpToDateCondition(r v1alpha1.UIResourceStatus) v1alpha1.UIResourceCondition
The "UpToDate" condition is a cross-resource status report that's synthesized from the more type-specific fields of UIResource.
Types ¶
This section is empty.