 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- type AppendToTriggerQueueAction
- type CollapseState
- type DCResourceInfo
- type K8SResourceInfo
- 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 View
- type ViewState
- type YAMLResourceInfo
Constants ¶
      View Source
      
  
const ( CollapseAuto = iota CollapseYes CollapseNo )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendToTriggerQueueAction ¶ added in v0.4.1
type AppendToTriggerQueueAction struct {
	Name model.ManifestName
}
    func (AppendToTriggerQueueAction) Action ¶ added in v0.4.1
func (AppendToTriggerQueueAction) Action()
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 {
	ConfigPath      string
	ContainerStatus dockercompose.Status
	ContainerID     container.ID
	Log             model.Log
	StartTime       time.Time
}
    func NewDCResourceInfo ¶ added in v0.4.1
func NewDCResourceInfo(configPath 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.4.1
type K8SResourceInfo struct {
	PodName            string
	PodCreationTime    time.Time
	PodUpdateStartTime time.Time
	PodStatus          string
	PodRestarts        int
	PodLog             model.Log
	YAML               string
}
    func (K8SResourceInfo) RuntimeLog ¶ added in v0.4.1
func (k8sInfo K8SResourceInfo) RuntimeLog() model.Log
func (K8SResourceInfo) Status ¶ added in v0.4.1
func (k8sInfo K8SResourceInfo) Status() string
type Resource ¶
type Resource struct {
	Name               model.ManifestName
	DirectoriesWatched []string
	PathsWatched       []string
	LastDeployTime     time.Time
	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.4.1
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 View ¶
type View struct {
	Log                  model.Log
	Resources            []Resource
	TiltfileErrorMessage string
	TriggerMode          model.TriggerMode
	IsProfiling          bool
	LogTimestamps        bool
}
    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 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.