config

package
v0.3.62 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBackendServicesConfig added in v0.3.0

func LoadBackendServicesConfig(path string) (schema.IBackendServices, error)

LoadConfig reads configuration from file or environment variables.

Types

type Config

type Config struct {
	AccountID          string        `mapstructure:"accountID"`
	Namespace          string        `mapstructure:"namespace"`
	ClusterName        string        `mapstructure:"clusterName"`
	ListingURL         string        `mapstructure:"listingURL"`
	MaxImageSize       int64         `mapstructure:"maxImageSize"`
	MaxSBOMSize        int           `mapstructure:"maxSBOMSize"`
	ScanConcurrency    int           `mapstructure:"scanConcurrency"`
	ScanTimeout        time.Duration `mapstructure:"scanTimeout"`
	KeepLocal          bool          `mapstructure:"keepLocal"`
	Storage            bool          `mapstructure:"storage"`
	VexGeneration      bool          `mapstructure:"vexGeneration"`
	NodeSbomGeneration bool          `mapstructure:"nodeSbomGeneration"`
	UseDefaultMatchers bool          `mapstructure:"useDefaultMatchers"`
	StoreFilteredSbom  bool          `mapstructure:"storeFilteredSbom"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

LoadConfig reads configuration from file or environment variables.

Jump to

Keyboard shortcuts

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