data

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *previewData

New initializes a new preview data struct

Types

type LogLevel

type LogLevel string

LogLevel is the analog of logrus.Level

const (
	TraceLevel LogLevel = "trace"
	DebugLevel LogLevel = "debug"
	InfoLevel  LogLevel = "info"
	WarnLevel  LogLevel = "warning"
	ErrorLevel LogLevel = "error"
	FatalLevel LogLevel = "fatal"
	PanicLevel LogLevel = "panic"
)

func LevelsFromString

func LevelsFromString(str string) []LogLevel

LevelsFromString parses a string of level characters and returns a slice of the corresponding log levels

func (LogLevel) String

func (level LogLevel) String() string

String returns the log level as a string

type State

type State string

State is the outcome of a container in a session report

const (
	ScannedState State = "scanned"
	UpdatedState State = "updated"
	FailedState  State = "failed"
	SkippedState State = "skipped"
	StaleState   State = "stale"
	FreshState   State = "fresh"
)

func StatesFromString

func StatesFromString(str string) []State

StatesFromString parses a string of state characters and returns a slice of the corresponding report states

Jump to

Keyboard shortcuts

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