 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- type CollapseState
- type DCResourceInfo
- type K8sResourceInfo
- type LocalResourceInfo
- type Resource
- func (r Resource) DCInfo() DCResourceInfo
- func (r Resource) DefaultCollapse() bool
- func (r Resource) DockerComposeTarget() DCResourceInfo
- func (r Resource) IsCollapsed(rv ResourceViewState) bool
- func (r Resource) IsDC() bool
- func (r Resource) IsK8s() bool
- func (r Resource) IsYAML() bool
- func (r Resource) K8sInfo() K8sResourceInfo
- func (r Resource) LastBuild() model.BuildRecord
- func (r Resource) YAMLInfo() YAMLResourceInfo
 
- type ResourceInfoView
- type ResourceViewState
- type TabState
- type TiltLogState
- type View
- type ViewState
- type YAMLResourceInfo
Constants ¶
      View Source
      
  
    const ( CollapseAuto = iota CollapseYes CollapseNo )
      View Source
      
  
const TiltfileResourceName = "(Tiltfile)"
    Variables ¶
      View Source
      
  
var LocalResourceStatusPlaceholder = "local-resource-ok"
    Functions ¶
This section is empty.
Types ¶
type CollapseState ¶ added in v0.4.1
type CollapseState int
func (CollapseState) IsCollapsed ¶ added in v0.4.1
func (c CollapseState) IsCollapsed(defaultCollapse bool) bool
type DCResourceInfo ¶ added in v0.4.1
type DCResourceInfo struct {
	ConfigPaths     []string
	ContainerStatus dockercompose.Status
	ContainerID     container.ID
	Log             model.Log
	StartTime       time.Time
}
    func NewDCResourceInfo ¶ added in v0.4.1
func NewDCResourceInfo(configPaths []string, status dockercompose.Status, cID container.ID, log model.Log, startTime time.Time) DCResourceInfo
func (DCResourceInfo) RuntimeLog ¶ added in v0.4.1
func (dcInfo DCResourceInfo) RuntimeLog() model.Log
func (DCResourceInfo) Status ¶ added in v0.4.1
func (dcInfo DCResourceInfo) Status() string
type K8sResourceInfo ¶ added in v0.8.10
type K8sResourceInfo struct {
	PodName            string
	PodCreationTime    time.Time
	PodUpdateStartTime time.Time
	PodStatus          string
	PodRestarts        int
	PodLog             model.Log
}
    func (K8sResourceInfo) RuntimeLog ¶ added in v0.8.10
func (k8sInfo K8sResourceInfo) RuntimeLog() model.Log
func (K8sResourceInfo) Status ¶ added in v0.8.10
func (k8sInfo K8sResourceInfo) Status() string
type LocalResourceInfo ¶ added in v0.10.9
type LocalResourceInfo struct {
}
    func (LocalResourceInfo) RuntimeLog ¶ added in v0.10.9
func (LocalResourceInfo) RuntimeLog() model.Log
func (LocalResourceInfo) Status ¶ added in v0.10.9
func (LocalResourceInfo) Status() string
type Resource ¶
type Resource struct {
	Name               model.ManifestName
	DirectoriesWatched []string
	PathsWatched       []string
	LastDeployTime     time.Time
	TriggerMode        model.TriggerMode
	BuildHistory []model.BuildRecord
	CurrentBuild model.BuildRecord
	PendingBuildReason model.BuildReason
	PendingBuildEdits  []string
	PendingBuildSince  time.Time
	Endpoints []string
	ResourceInfo ResourceInfoView
	// If a pod had to be killed because it was crashing, we keep the old log around
	// for a little while.
	CrashLog model.Log
	IsTiltfile bool
}
    func (Resource) DCInfo ¶ added in v0.4.1
func (r Resource) DCInfo() DCResourceInfo
func (Resource) DefaultCollapse ¶ added in v0.4.1
func (Resource) DockerComposeTarget ¶ added in v0.4.3
func (r Resource) DockerComposeTarget() DCResourceInfo
func (Resource) IsCollapsed ¶ added in v0.4.1
func (r Resource) IsCollapsed(rv ResourceViewState) bool
func (Resource) K8sInfo ¶ added in v0.8.10
func (r Resource) K8sInfo() K8sResourceInfo
func (Resource) LastBuild ¶ added in v0.4.1
func (r Resource) LastBuild() model.BuildRecord
func (Resource) YAMLInfo ¶ added in v0.4.1
func (r Resource) YAMLInfo() YAMLResourceInfo
type ResourceInfoView ¶ added in v0.4.1
type ResourceViewState ¶ added in v0.1.0
type ResourceViewState struct {
	CollapseState CollapseState
}
    type TiltLogState ¶ added in v0.4.1
type TiltLogState int
const ( TiltLogShort TiltLogState = iota TiltLogHalfScreen TiltLogFullScreen )
type View ¶
type View struct {
	Log           model.Log
	Resources     []Resource
	IsProfiling   bool
	LogTimestamps bool
	FatalError    error
}
    Snapshot 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.
func (View) Resource ¶ added in v0.7.12
func (v View) Resource(n model.ManifestName) (Resource, bool)
func (View) TiltfileErrorMessage ¶ added in v0.2.0
type ViewState ¶
type ViewState struct {
	ShowNarration         bool
	NarrationMessage      string
	Resources             []ResourceViewState
	ProcessedLogByteCount int
	AlertMessage          string
	TabState              TabState
	SelectedIndex         int
	TiltLogState          TiltLogState
}
    func (*ViewState) CycleViewLogState ¶ added in v0.4.1
func (vs *ViewState) CycleViewLogState()
type YAMLResourceInfo ¶ added in v0.4.1
type YAMLResourceInfo struct {
	K8sResources []string
}
    func (YAMLResourceInfo) RuntimeLog ¶ added in v0.4.1
func (yamlInfo YAMLResourceInfo) RuntimeLog() model.Log
func (YAMLResourceInfo) Status ¶ added in v0.4.1
func (yamlInfo YAMLResourceInfo) Status() string
 Click to show internal directories. 
   Click to hide internal directories.