utils

package
v0.0.0-...-29c0a4e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CmdStdout io.Writer = os.Stdout
	CmdStderr io.Writer = os.Stderr
)

Functions

func InitLog

func InitLog(cobraCmd *cobra.Command, stdFilename string, suppressErrorLog bool)

func LogError

func LogError(message string)

func LogInfo

func LogInfo(message string)

func LogWarning

func LogWarning(message string)

func WriteLogs

func WriteLogs(logFormat string)

func WriteStdOut

func WriteStdOut(output string)

Types

type By

type By func(p1, p2 fs.FileInfo) bool

type LogEntry

type LogEntry struct {
	Entry string `json:"Entry" yaml:"Entry"`
}

type VerifierLog

type VerifierLog struct {
	Name    string      `json:"name" yaml:"name"`
	Time    string      `json:"time" yaml:"time"`
	Entries []*LogEntry `json:"log" yaml:"log"`
}

Jump to

Keyboard shortcuts

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