 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func NewEditStatusLine(buildStatus buildStatus) rty.Component
- func StateToTerminalView(s store.EngineState, mu *sync.RWMutex) view.View
- type DumpEngineStateAction
- type EditStatusLineComponent
- type ExitAction
- type FakeHud
- func (h *FakeHud) OnChange(ctx context.Context, st store.RStore, _ store.ChangeSummary) error
- func (h *FakeHud) Run(ctx context.Context, dispatch func(action store.Action), ...) error
- func (h *FakeHud) WaitUntil(t testing.TB, ctx context.Context, msg string, isDone func(view.View) bool)
- func (h *FakeHud) WaitUntilResource(t testing.TB, ctx context.Context, msg string, name model.ManifestName, ...)
 
- type FilterLevel
- type FilterResources
- type FilterSource
- type HeadsUpDisplay
- type Hud
- func (h *Hud) Close()
- func (h *Hud) OnChange(ctx context.Context, st store.RStore, _ store.ChangeSummary) error
- func (h *Hud) Refresh(ctx context.Context)
- func (h *Hud) Run(ctx context.Context, dispatch func(action store.Action), ...) error
- func (h *Hud) SetNarrationMessage(ctx context.Context, msg string)
 
- type IncrementalPrinter
- type LogFilter
- type Renderer
- type ResourceView
- type Stdout
- type TabView
- type TerminalStream
Constants ¶
      View Source
      
  
    const BuildDurCellMinWidth = 7
    
      View Source
      
  
    const BuildStatusCellMinWidth = 8
    
      View Source
      
  const DefaultRefreshInterval = 100 * time.Millisecond
    The main loop ensures the HUD updates at least this often
      View Source
      
  const DeployCellMinWidth = 8
    These widths are determined experimentally, to see what shows up in a typical UX.
      View Source
      
  
    const MainTiltfileManifestName = model.MainTiltfileManifestName
    
      View Source
      
  
const MaxInlineErrHeight = 6
    Variables ¶
      View Source
      
  
var WireSet = wire.NewSet( NewRenderer, NewHud, NewLogFilter, NewTerminalStream, ProvideStdout, NewIncrementalPrinter)
Functions ¶
func NewEditStatusLine ¶ added in v0.4.1
func StateToTerminalView ¶ added in v0.25.3
Types ¶
type DumpEngineStateAction ¶ added in v0.8.1
type DumpEngineStateAction struct {
}
    func (DumpEngineStateAction) Action ¶ added in v0.8.1
func (DumpEngineStateAction) Action()
type EditStatusLineComponent ¶ added in v0.4.1
type EditStatusLineComponent struct {
	// contains filtered or unexported fields
}
    type ExitAction ¶ added in v0.1.0
type ExitAction struct {
	Err error
}
    func NewExitAction ¶ added in v0.2.0
func NewExitAction(err error) ExitAction
func (ExitAction) Action ¶ added in v0.1.0
func (ExitAction) Action()
type FakeHud ¶
type FakeHud struct {
	LastView view.View
	Canceled bool
	Closed   bool
	// contains filtered or unexported fields
}
    func NewFakeHud ¶
func NewFakeHud() *FakeHud
type FilterLevel ¶ added in v0.34.0
type FilterResources ¶ added in v0.34.0
type FilterResources []model.ManifestName
func (FilterResources) Matches ¶ added in v0.34.0
func (r FilterResources) Matches(name model.ManifestName) bool
type FilterSource ¶ added in v0.34.0
type FilterSource string
const ( FilterSourceAll FilterSource = "all" FilterSourceBuild FilterSource = "build" FilterSourceRuntime FilterSource = "runtime" )
func (FilterSource) String ¶ added in v0.34.0
func (s FilterSource) String() string
type HeadsUpDisplay ¶
type HeadsUpDisplay interface {
	store.Subscriber
	Run(ctx context.Context, dispatch func(action store.Action), refreshRate time.Duration) error
}
    func NewHud ¶ added in v0.15.0
func NewHud(renderer *Renderer, webURL model.WebURL, analytics *analytics.TiltAnalytics, openurl openurl.OpenURL) HeadsUpDisplay
type Hud ¶
type Hud struct {
	// contains filtered or unexported fields
}
    type IncrementalPrinter ¶ added in v0.14.0
type IncrementalPrinter struct {
	// contains filtered or unexported fields
}
    func NewIncrementalPrinter ¶ added in v0.14.0
func NewIncrementalPrinter(stdout Stdout) *IncrementalPrinter
func (*IncrementalPrinter) Print ¶ added in v0.14.0
func (p *IncrementalPrinter) Print(lines []logstore.LogLine)
func (*IncrementalPrinter) PrintNewline ¶ added in v0.14.0
func (p *IncrementalPrinter) PrintNewline()
type LogFilter ¶ added in v0.34.0
type LogFilter struct {
	// contains filtered or unexported fields
}
    func NewLogFilter ¶ added in v0.34.0
func NewLogFilter( source FilterSource, resources FilterResources, level FilterLevel, ) LogFilter
func (LogFilter) Matches ¶ added in v0.34.0
Matches Checks if this line matches the current filter. The implementation is identical to matchesFilter in web/src/OverviewLogPane.tsx. except for term filtering as tools like grep can be used from the CLI.
func (LogFilter) SuppressPrefix ¶ added in v0.34.0
if printing logs for only one resource, don't need resource name prefix
type Renderer ¶
type Renderer struct {
	// contains filtered or unexported fields
}
    func NewRenderer ¶
type ResourceView ¶ added in v0.4.1
type ResourceView struct {
	// contains filtered or unexported fields
}
    func NewResourceView ¶ added in v0.4.1
func NewResourceView(logReader logstore.Reader, res view.Resource, rv view.ResourceViewState, triggerMode model.TriggerMode, selected bool, clock func() time.Time) *ResourceView
func (*ResourceView) Build ¶ added in v0.4.1
func (v *ResourceView) Build() rty.Component
type Stdout ¶ added in v0.14.0
func ProvideStdout ¶ added in v0.14.0
func ProvideStdout() Stdout
type TerminalStream ¶ added in v0.15.0
type TerminalStream struct {
	ProcessedLogs logstore.Checkpoint
	// contains filtered or unexported fields
}
    func NewTerminalStream ¶ added in v0.15.0
func NewTerminalStream(printer *IncrementalPrinter, filter LogFilter, store store.RStore) *TerminalStream
func (*TerminalStream) OnChange ¶ added in v0.15.0
func (h *TerminalStream) OnChange(ctx context.Context, st store.RStore, _ store.ChangeSummary) error
func (*TerminalStream) TearDown ¶ added in v0.15.0
func (h *TerminalStream) TearDown(ctx context.Context)
TODO(nick): We should change this API so that TearDown gets the RStore one last time.
       Source Files
      ¶
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.