webview

package
v0.20.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
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 TiltfileResourceProtoView added in v0.20.4

func TiltfileResourceProtoView(s store.EngineState) *v1alpha1.UIResource
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 ToUIResource added in v0.20.4

Converts a ManifestTarget into the public data model representation, a UIResource.

func ToUIResourceList added in v0.20.4

func ToUIResourceList(state store.EngineState) ([]*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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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