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 ¶
LoadConfig reads configuration from file or environment variables.
Click to show internal directories.
Click to hide internal directories.