view

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogModal added in v0.1.0

type LogModal struct {
	// if non-0, which resource's log is currently shown in a modal (1-based index)
	ResourceLogNumber int

	// if we're showing the full tilt log output in a modal
	TiltLog bool
}

type Resource

type Resource struct {
	Name               string
	DirectoriesWatched []string
	PathsWatched       []string
	LastDeployTime     time.Time
	LastDeployEdits    []string

	LastBuildError      string
	LastBuildStartTime  time.Time
	LastBuildFinishTime time.Time
	LastBuildDuration   time.Duration
	LastBuildLog        string
	LastBuildReason     model.BuildReason

	PendingBuildReason model.BuildReason
	PendingBuildEdits  []string
	PendingBuildSince  time.Time

	// Maybe these fields should be combined into a BuildInfo struct, so that we
	// just have CurrentBuild, PendingBuild, LastBuild.
	CurrentBuildReason    model.BuildReason
	CurrentBuildEdits     []string
	CurrentBuildStartTime time.Time
	CurrentBuildLog       string

	PodName         string
	PodCreationTime time.Time
	PodStatus       string
	PodRestarts     int
	Endpoints       []string
	PodLog          string

	// If a pod had to be killed because it was crashing, we keep the old log around
	// for a little while.
	CrashLog string

	IsYAMLManifest bool
}

type ResourceViewState added in v0.1.0

type ResourceViewState struct {
	IsCollapsed bool
}

type View

type View struct {
	Log                  string
	Resources            []Resource
	TiltfileErrorMessage string
}

State of the current view that's not expressed in the underlying model state.

This includes things like the current selection, warning messages, narration messages, etc.

Client should always hold this as a value struct, and copy it whenever they need to mutate something.

type ViewState

type ViewState struct {
	ShowNarration         bool
	NarrationMessage      string
	Resources             []ResourceViewState
	LogModal              LogModal
	ProcessedLogByteCount int
	AlertMessage          string
}

Jump to

Keyboard shortcuts

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