display

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocationAsciiTable

func AllocationAsciiTable(c *client.Client, days int, cfg AsciiTableStyle) (string, error)

func DaysToShortName

func DaysToShortName(days int) string

func SummaryAsciiTable

func SummaryAsciiTable(c *client.Client, days int, cfg AsciiTableStyle) (string, error)

func TotalAsciiGraph

func TotalAsciiGraph(c *client.Client, days int, cfg AsciiGraphStyle) (string, error)

func TotalBmpGraph added in v0.0.8

func TotalBmpGraph(c *client.Client, days int, filterTokens string, cfg BmpGraphStyle) (*bytes.Buffer, error)

Types

type AsciiGraphStyle

type AsciiGraphStyle struct {
	Width  int
	Height int
}

func GetDefaultAsciiGraphStyle

func GetDefaultAsciiGraphStyle() AsciiGraphStyle

type AsciiTableStyle

type AsciiTableStyle struct {
	Style   TableStyle
	Borders bool
}

func GetDefaultAsciiTableStyle

func GetDefaultAsciiTableStyle() AsciiTableStyle

type BmpGraphStyle added in v0.0.8

type BmpGraphStyle struct {
	Width      int
	Height     int
	MaxEntries int
}

func GetDefaultBmpGraphStyle added in v0.0.8

func GetDefaultBmpGraphStyle() BmpGraphStyle

type TableStyle

type TableStyle int8
const (
	Default TableStyle = 0
	Wide               = 1
)

Jump to

Keyboard shortcuts

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