Documentation
¶
Index ¶
- Variables
- func GetRunLogs(ctx context.Context, jobId string) ([]tlApi.PodLogs, error)
- func GetTopLogs(logs []tlApi.PodLogs, pat *regexp.Regexp, count int) []string
- func PrintLogs(logs []tlApi.PodLogs)
- func WrapLogsInTarFile(logs []tlApi.PodLogs, output string, defaultFileName string) (string, error)
- type LogsPageContent
- type RunEntity
Constants ¶
This section is empty.
Variables ¶
View Source
var RunEntityDesc = entity.NewEntityDescriptor( "run", "runs", func(r *RunEntity) string { createdAt, err := api.ParseAndFormatDateToLocalTime(r.GetCreatedAt()) if err != nil { return fmt.Sprintf("%s \t %s \t %s", r.GetJobType(), r.GetCreatedAt(), r.GetStatus()) } return fmt.Sprintf("%s \t %s \t %s", r.GetJobType(), createdAt, r.GetStatus()) }, func(r *RunEntity) string { return r.GetJobId() }, )
Functions ¶
Types ¶
type LogsPageContent ¶ added in v0.0.139
type LogsPageContent struct {
Logs []string
}
func (*LogsPageContent) Init ¶ added in v0.0.139
func (l *LogsPageContent) Init() tea.Cmd
func (*LogsPageContent) View ¶ added in v0.0.139
func (l *LogsPageContent) View() string
type RunEntity ¶
type RunEntity = tensorleapapi.RunProcess
func GetRuns ¶
func GetRuns(ctx context.Context, subTypes []tensorleapapi.JobSubType, statuses []tensorleapapi.JobStatus, projectId string) ([]RunEntity, error)
Click to show internal directories.
Click to hide internal directories.