internal

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerWithLevel

func LoggerWithLevel(level zerolog.Level) zerolog.Logger

Types

type BaseConfig

type BaseConfig struct {
	APIHost        string
	UIHost         string
	PlatformClient platformapi.ClientWithResponsesInterface
	Group          uuid.UUID
	LogLevel       zerolog.Level
	Output         string
	OutputFormat   output.Formats
	UserAgent      string
}

func NewBaseConfig

func NewBaseConfig(v *viper.Viper) (*BaseConfig, error)

type ConsoleLevelWriter

type ConsoleLevelWriter struct{}

Implements zerlog.LevelWriter

func (ConsoleLevelWriter) Write

func (l ConsoleLevelWriter) Write(p []byte) (n int, err error)

func (ConsoleLevelWriter) WriteLevel

func (l ConsoleLevelWriter) WriteLevel(level zerolog.Level, p []byte) (n int, err error)

type RunConfig

type RunConfig struct {
	BaseConfig
	AnalysisType         string
	PollForMinutes       int
	PollingInterval      time.Duration
	MinimumScore         int
	Platform             string
	FindingsArtifactPath string
	ArtifactsDir         string
}

func NewRunConfig

func NewRunConfig(v *viper.Viper) (*RunConfig, error)

Directories

Path Synopsis
Package platformapi provides primitives to interact with the openapi HTTP API.
Package platformapi provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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