view

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: Apache-2.0 Imports: 1 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
}

func (LogModal) IsActive added in v0.1.0

func (lm LogModal) IsActive() bool

type Resource

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

	LastManifestLoadError string

	LastBuildError      string
	LastBuildFinishTime time.Time
	LastBuildDuration   time.Duration
	LastBuildLog        string

	PendingBuildEdits []string
	PendingBuildSince time.Time

	CurrentBuildEdits     []string
	CurrentBuildStartTime time.Time

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

type ResourceViewState added in v0.1.0

type ResourceViewState struct {
	IsCollapsed bool
}

type View

type View struct {
	Log       string
	Resources []Resource
}

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
}

Jump to

Keyboard shortcuts

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