internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 10 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
	Token        string
	Group        uuid.UUID
	UserAgent    string
	LogLevel     zerolog.Level
	Output       string
	OutputFormat output.Formats
}

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
	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