internal

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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