util

package
v0.0.0-...-6794c67 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// SERVICE has the name of this service
	SERVICE = "compliance"
)

Variables

This section is empty.

Functions

func ConvertZipToTarGz

func ConvertZipToTarGz(zipPath string, tarPath string) error

ConvertZipToTarGz extracts the profile to a tmp dir and archives the file as a tar.gz.

func ReportToCSV

func ReportToCSV(report *reportingapi.Report) (string, error)

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

func TimeTrack

func TimeTrack(start time.Time, name string)

TimeTrack logs out time between `start` and current time

func Zip2Path

func Zip2Path(zipPath string, extractPath string) error

Zip2Path extracts a zip file on disk to a destination folder on disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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