Documentation ¶
Index ¶
- func IsReadLimitReached(bytesLoaded int64, linesLoaded int64, logFilePosition string) bool
- func MockProgress() (*Progress, *Bar)
- func MountPathClean(mountPath string) string
- func NewDynProgressBar(title string, quiet bool, total int64) (*mpb.Progress, *mpb.Bar)
- func SplitLog(logContent string, startIndex, endIndex int, overFlag bool) string
- type Bar
- type DoubleSpinner
- type LogPage
- type Progress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReadLimitReached ¶ added in v0.14.6
IsReadLimitReached checks logs if truncated by apiServer
func MockProgress ¶
func MountPathClean ¶ added in v0.14.3
MountPathClean cleans the path for mountPath
func NewDynProgressBar ¶ added in v0.14.6
NewDynProgressBar init a dynamic progress bar,the title will appears at the head of the progress bar
Types ¶
type DoubleSpinner ¶
type DoubleSpinner struct {
// contains filtered or unexported fields
}
func (*DoubleSpinner) Current ¶
func (s *DoubleSpinner) Current() (int64, int64)
func (*DoubleSpinner) Done ¶
func (s *DoubleSpinner) Done()
func (*DoubleSpinner) IncrInt64 ¶
func (s *DoubleSpinner) IncrInt64(size int64)
type LogPage ¶ added in v0.14.6
type LogPage struct { LogFilePosition string LineLimit int SizeLimit int64 HasNextPage bool Truncated bool }
func (*LogPage) SlicePaging ¶ added in v0.14.6
SlicePaging divided slice into pages
type Progress ¶
type Progress struct { *mpb.Progress Quiet bool // contains filtered or unexported fields }
func NewProgress ¶
func (*Progress) AddByteSpinner ¶
func (*Progress) AddCountSpinner ¶
func (*Progress) AddDoubleSpinner ¶
func (p *Progress) AddDoubleSpinner(name string) *DoubleSpinner
Click to show internal directories.
Click to hide internal directories.