utils

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

These are shared utils to avoid circular imports

Index

Constants

This section is empty.

Variables

View Source
var JobTableHeader = []string{"#", "Action", "At", "Status"}

Functions

func BackspaceListRow

func BackspaceListRow(list *widgets.List)

func ConcatListRow

func ConcatListRow(text string, list *widgets.List)

func PushJobRow

func PushJobRow(job JobInfo, jobTable *widgets.Table)

func PushListRow

func PushListRow(text string, list *widgets.List)

func UpdateJobRow

func UpdateJobRow(job JobInfo, jobTable *widgets.Table)

Types

type JobInfo

type JobInfo struct {
	ID           int
	Action       string
	Status       string
	ScheduledFor string
	CreatedAt    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL