config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAPIURL is the SCANOSS API endpoint the CLI targets unless --api-url
	// overrides it. The /v3 path is carried by the SDK service endpoints, so the
	// base URL is just the host.
	DefaultAPIURL = "https://api.scanoss.com"

	// DefaultThreads is the default number of parallel workers
	DefaultThreads = 10

	// DefaultPostSize is the default maximum POST size in bytes (64KB)
	DefaultPostSize = 64 * 1024

	// MinFileSize is the minimum file size to process
	MinFileSize = 100

	// Output format constants
	FormatRaw       = "raw"
	FormatSPDX      = "spdx"
	FormatCycloneDX = "cyclonedx"

	// DefaultFormat is the default output format
	DefaultFormat = FormatRaw

	// AppName is the application name used in SBOM metadata
	AppName = "scanoss"

	// OrganizationName is used in SBOM metadata
	OrganizationName = "SCANOSS"
)

Variables

View Source
var AppVersion = version.Version()

AppVersion is the application version, resolved at build time.

Functions

This section is empty.

Types

type Config

type Config struct {
	// API settings
	APIURL string
	APIKey string

	// Scanning settings
	Threads  int
	PostSize int

	// Output settings
	OutputFile string

	// Processing settings
	TargetPath string
}

Config contains the application configuration

func NewConfig

func NewConfig() *Config

NewConfig creates a new configuration with default values

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration

Jump to

Keyboard shortcuts

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