utils

package
v0.0.0-...-d983439 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeDuration

func ComputeDuration(startTime, endTime time.Time) string

ComputeDuration returns the time difference between startTime and endTime in user readable format. if startTime is after endTime the method returns 0s

func GetCSVObjName

func GetCSVObjName(name string) string

func GetObjName

func GetObjName(name string) string

func ReportToCSV

func ReportToCSV(report *reportingapi.Report, includeHeader bool) (response [][]string, err error)

ReportToCSV converts a report to its CSV representation as a string which includes a header line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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