viewmodel

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountBinary

func ByteCountBinary(b int64) string

func ByteCountBinaryUint added in v0.5.0

func ByteCountBinaryUint(b uint64) string

Types

type FilterFunc

type FilterFunc func(string) bool

type Job

type Job struct {
	// contains filtered or unexported fields
}

func (*Job) FullDescription

func (j *Job) FullDescription() string

func (*Job) JobTreeTitle

func (j *Job) JobTreeTitle() string

func (*Job) Name

func (j *Job) Name() string

type M

type M struct {
	// contains filtered or unexported fields
}

func New

func New() *M

func (*M) BottomBarStatus

func (m *M) BottomBarStatus() string

func (*M) DateString

func (m *M) DateString() string

func (*M) Jobs

func (m *M) Jobs() []*Job

func (*M) SelectedJob

func (m *M) SelectedJob() *Job

may be nil

func (*M) Update

func (m *M) Update(p Params)

type Params

type Params struct {
	Report                  map[string]*job.Status
	ReportFetchError        error
	SelectedJob             *Job
	FSFilter                FilterFunc `validate:"required"`
	DetailViewWidth         int        `validate:"gte=1"`
	DetailViewWrap          bool
	ShortKeybindingOverview string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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