Versions in this module Expand all Collapse all v0 v0.0.3 May 31, 2024 Changes in this version + const DefaultTokenHeader + var AllNamespaces = Flag + var ArtifactTypeFlag = Flag + var CacheBackendFlag = Flag + var CacheDirFlag = Flag + var CacheTTLFlag = Flag + var ClearCacheFlag = Flag + var ClusterContextFlag = Flag + var ComplianceFlag = Flag + var ComponentsFlag = Flag + var ConfigDataFlag = Flag + var ConfigFileFlag = Flag + var ConfigPolicyFlag = Flag + var DBRepositoryFlag = Flag + var DebugFlag = Flag + var DependencyTreeFlag = Flag + var DockerHostFlag = Flag + var DownloadDBOnlyFlag = Flag + var DownloadJavaDBOnlyFlag = Flag + var EnableModulesFlag = Flag + var ExcludeNodes = Flag + var ExitCodeFlag = Flag + var ExitOnEOLFlag = Flag + var FetchBranchFlag = Flag + var FetchCommitFlag = Flag + var FetchTagFlag = Flag + var FilePatternsFlag = Flag + var FormatFlag = Flag + var GenerateDefaultConfigFlag = Flag + var HelmSetFileFlag = Flag + var HelmSetFlag = Flag + var HelmSetStringFlag = Flag + var HelmValuesFileFlag = Flag + var IgnoreFileFlag = Flag + var IgnorePolicyFlag = Flag + var IgnoreUnfixedFlag = Flag + var IgnoredLicenses = Flag + var ImageConfigScannersFlag = Flag + var IncludeNonFailuresFlag = Flag + var InputFlag = Flag + var InsecureFlag = Flag + var JavaDBRepositoryFlag = Flag + var K8sNamespaceFlag = Flag + var K8sVersionFlag = Flag + var KubeConfigFlag = Flag + var LicenseConfidenceLevel = Flag + var LicenseForbidden = Flag + var LicenseFull = Flag + var LicenseNotice = Flag + var LicensePermissive = Flag + var LicenseReciprocal = Flag + var LicenseRestricted = Flag + var LicenseUnencumbered = Flag + var LightFlag = Flag + var ListAllPkgsFlag = Flag + var ModuleDirFlag = Flag + var NoProgressFlag = Flag + var NodeCollectorNamespace = Flag + var OfflineScanFlag = Flag + var OutputFlag = Flag + var ParallelFlag = Flag + var PasswordFlag = Flag + var PlatformFlag = Flag + var PolicyNamespaceFlag = Flag + var QuietFlag = Flag + var RedisCACertFlag = Flag + var RedisCertFlag = Flag + var RedisKeyFlag = Flag + var RedisTLSFlag = Flag + var RegistryTokenFlag = Flag + var RekorURLFlag = Flag + var ReportFormatFlag = Flag + var ResetFlag = Flag + var ResetPolicyBundleFlag = Flag + var SBOMFormatFlag = Flag + var SBOMSourcesFlag = Flag + var ScanRemovedPkgsFlag = Flag + var ScannersFlag = Flag + var SecretConfigFlag = Flag + var ServerAddrFlag = Flag + var ServerCustomHeadersFlag = Flag + var ServerListenFlag = Flag + var ServerTokenFlag = Flag + var ServerTokenHeaderFlag = Flag + var SeverityFlag = Flag + var ShowVersionFlag = Flag + var SkipDBUpdateFlag = Flag + var SkipDirsFlag = Flag + var SkipFilesFlag = Flag + var SkipJavaDBUpdateFlag = Flag + var SkipPolicyUpdateFlag = Flag + var SlowFlag = Flag + var SourceFlag = Flag + var TemplateFlag = Flag + var TfVarsFlag = Flag + var TimeoutFlag = Flag + var TolerationsFlag = Flag + var TraceFlag = Flag + var UsernameFlag = Flag + var VEXFlag = Flag + var VulnTypeFlag = Flag + type AWSFlagGroup struct + ARN *Flag + Account *Flag + Endpoint *Flag + Region *Flag + Services *Flag + func NewAWSFlagGroup() *AWSFlagGroup + func (f *AWSFlagGroup) Flags() []*Flag + func (f *AWSFlagGroup) Name() string + func (f *AWSFlagGroup) ToOptions() AWSOptions + type AWSOptions struct + ARN string + Account string + Endpoint string + Region string + Services []string + type Alias struct + ConfigName string + Deprecated bool + Name string + type CacheFlagGroup struct + CacheBackend *Flag + CacheTTL *Flag + ClearCache *Flag + RedisCACert *Flag + RedisCert *Flag + RedisKey *Flag + RedisTLS *Flag + func NewCacheFlagGroup() *CacheFlagGroup + func (fg *CacheFlagGroup) Flags() []*Flag + func (fg *CacheFlagGroup) Name() string + func (fg *CacheFlagGroup) ToOptions() (CacheOptions, error) + type CacheOptions struct + CacheBackend string + CacheTTL time.Duration + ClearCache bool + RedisTLS bool + func (o *CacheOptions) CacheBackendMasked() string + type CloudFlagGroup struct + MaxCacheAge *Flag + UpdateCache *Flag + func NewCloudFlagGroup() *CloudFlagGroup + func (f *CloudFlagGroup) Flags() []*Flag + func (f *CloudFlagGroup) Name() string + func (f *CloudFlagGroup) ToOptions() CloudOptions + type CloudOptions struct + MaxCacheAge time.Duration + UpdateCache bool + type DBFlagGroup struct + DBRepository *Flag + DownloadDBOnly *Flag + DownloadJavaDBOnly *Flag + JavaDBRepository *Flag + Light *Flag + NoProgress *Flag + Reset *Flag + SkipDBUpdate *Flag + SkipJavaDBUpdate *Flag + func NewDBFlagGroup() *DBFlagGroup + func (f *DBFlagGroup) Flags() []*Flag + func (f *DBFlagGroup) Name() string + func (f *DBFlagGroup) ToOptions() (DBOptions, error) + type DBOptions struct + DBRepository string + DownloadDBOnly bool + DownloadJavaDBOnly bool + JavaDBRepository string + Light bool + NoProgress bool + Reset bool + SkipDBUpdate bool + SkipJavaDBUpdate bool + type Flag struct + Aliases []Alias + ConfigName string + Deprecated bool + Name string + Persistent bool + Shorthand string + Usage string + Value interface{} + type FlagGroup interface + Flags func() []*Flag + Name func() string + type Flags struct + AWSFlagGroup *AWSFlagGroup + CacheFlagGroup *CacheFlagGroup + CloudFlagGroup *CloudFlagGroup + DBFlagGroup *DBFlagGroup + ImageFlagGroup *ImageFlagGroup + K8sFlagGroup *K8sFlagGroup + LicenseFlagGroup *LicenseFlagGroup + MisconfFlagGroup *MisconfFlagGroup + ModuleFlagGroup *ModuleFlagGroup + RegistryFlagGroup *RegistryFlagGroup + RegoFlagGroup *RegoFlagGroup + RemoteFlagGroup *RemoteFlagGroup + RepoFlagGroup *RepoFlagGroup + ReportFlagGroup *ReportFlagGroup + SBOMFlagGroup *SBOMFlagGroup + ScanFlagGroup *ScanFlagGroup + SecretFlagGroup *SecretFlagGroup + VulnerabilityFlagGroup *VulnerabilityFlagGroup + func (f *Flags) AddFlags(cmd *cobra.Command) + func (f *Flags) Bind(cmd *cobra.Command) error + func (f *Flags) ToOptions(appVersion string, args []string, globalFlags *GlobalFlagGroup, ...) (Options, error) + func (f *Flags) Usages(cmd *cobra.Command) string + type GlobalFlagGroup struct + CacheDir *Flag + ConfigFile *Flag + Debug *Flag + GenerateDefaultConfig *Flag + Insecure *Flag + Quiet *Flag + ShowVersion *Flag + Timeout *Flag + func NewGlobalFlagGroup() *GlobalFlagGroup + func (f *GlobalFlagGroup) AddFlags(cmd *cobra.Command) + func (f *GlobalFlagGroup) Bind(cmd *cobra.Command) error + func (f *GlobalFlagGroup) ToOptions() GlobalOptions + type GlobalOptions struct + CacheDir string + ConfigFile string + Debug bool + GenerateDefaultConfig bool + Insecure bool + OsFamily string + OsName string + Quiet bool + ShowVersion bool + Timeout time.Duration + type ImageFlagGroup struct + DockerHost *Flag + ImageConfigScanners *Flag + ImageSources *Flag + Input *Flag + Platform *Flag + ScanRemovedPkgs *Flag + func NewImageFlagGroup() *ImageFlagGroup + func (f *ImageFlagGroup) Flags() []*Flag + func (f *ImageFlagGroup) Name() string + func (f *ImageFlagGroup) ToOptions() (ImageOptions, error) + type ImageOptions struct + DockerHost string + ImageConfigScanners types.Scanners + ImageSources ftypes.ImageSources + Input string + Platform ftypes.Platform + ScanRemovedPkgs bool + type K8sFlagGroup struct + AllNamespaces *Flag + ClusterContext *Flag + Components *Flag + ExcludeNodes *Flag + K8sVersion *Flag + KubeConfig *Flag + Namespace *Flag + NodeCollectorNamespace *Flag + Parallel *Flag + Tolerations *Flag + func NewK8sFlagGroup() *K8sFlagGroup + func (f *K8sFlagGroup) Flags() []*Flag + func (f *K8sFlagGroup) Name() string + func (f *K8sFlagGroup) ToOptions() (K8sOptions, error) + type K8sOptions struct + AllNamespaces bool + ClusterContext string + Components []string + ExcludeNodes map[string]string + K8sVersion string + KubeConfig string + Namespace string + NodeCollectorNamespace string + Parallel int + Tolerations []corev1.Toleration + type LicenseFlagGroup struct + IgnoredLicenses *Flag + LicenseConfidenceLevel *Flag + LicenseForbidden *Flag + LicenseFull *Flag + LicenseNotice *Flag + LicensePermissive *Flag + LicenseReciprocal *Flag + LicenseRestricted *Flag + LicenseUnencumbered *Flag + func NewLicenseFlagGroup() *LicenseFlagGroup + func (f *LicenseFlagGroup) Flags() []*Flag + func (f *LicenseFlagGroup) Name() string + func (f *LicenseFlagGroup) ToOptions() LicenseOptions + type LicenseOptions struct + IgnoredLicenses []string + LicenseCategories map[types.LicenseCategory][]string + LicenseConfidenceLevel float64 + LicenseFull bool + LicenseRiskThreshold int + type MisconfFlagGroup struct + HelmFileValues *Flag + HelmStringValues *Flag + HelmValueFiles *Flag + HelmValues *Flag + IncludeNonFailures *Flag + ResetPolicyBundle *Flag + TerraformTFVars *Flag + func NewMisconfFlagGroup() *MisconfFlagGroup + func (f *MisconfFlagGroup) Flags() []*Flag + func (f *MisconfFlagGroup) Name() string + func (f *MisconfFlagGroup) ToOptions() (MisconfOptions, error) + type MisconfOptions struct + HelmFileValues []string + HelmStringValues []string + HelmValueFiles []string + HelmValues []string + IncludeNonFailures bool + ResetPolicyBundle bool + TerraformTFVars []string + type ModuleFlagGroup struct + Dir *Flag + EnabledModules *Flag + func NewModuleFlagGroup() *ModuleFlagGroup + func (f *ModuleFlagGroup) Flags() []*Flag + func (f *ModuleFlagGroup) Name() string + func (f *ModuleFlagGroup) ToOptions() ModuleOptions + type ModuleOptions struct + EnabledModules []string + ModuleDir string + type Options struct + AppVersion string + DisabledAnalyzers []analyzer.Type + func (o *Options) Align() + func (o *Options) FilterOpts() result.FilterOption + func (o *Options) RegistryOpts() ftypes.RegistryOptions + func (o *Options) ReportOpts() report.Option + type PacketOptions struct + Packages []*common.Package + type RedisOptions struct + RedisCACert string + RedisCert string + RedisKey string + type RegistryFlagGroup struct + Password *Flag + RegistryToken *Flag + Username *Flag + func NewRegistryFlagGroup() *RegistryFlagGroup + func (f *RegistryFlagGroup) Flags() []*Flag + func (f *RegistryFlagGroup) Name() string + func (f *RegistryFlagGroup) ToOptions() (RegistryOptions, error) + type RegistryOptions struct + Credentials []types.Credential + RegistryToken string + type RegoFlagGroup struct + DataPaths *Flag + PolicyNamespaces *Flag + PolicyPaths *Flag + SkipPolicyUpdate *Flag + Trace *Flag + func NewRegoFlagGroup() *RegoFlagGroup + func (f *RegoFlagGroup) Flags() []*Flag + func (f *RegoFlagGroup) Name() string + func (f *RegoFlagGroup) ToOptions() (RegoOptions, error) + type RegoOptions struct + DataPaths []string + PolicyNamespaces []string + PolicyPaths []string + SkipPolicyUpdate bool + Trace bool + type RemoteFlagGroup struct + CustomHeaders *Flag + Listen *Flag + ServerAddr *Flag + Token *Flag + TokenHeader *Flag + func NewClientFlags() *RemoteFlagGroup + func NewServerFlags() *RemoteFlagGroup + func (f *RemoteFlagGroup) Flags() []*Flag + func (f *RemoteFlagGroup) Name() string + func (f *RemoteFlagGroup) ToOptions() RemoteOptions + type RemoteOptions struct + CustomHeaders http.Header + Listen string + ServerAddr string + Token string + TokenHeader string + type RepoFlagGroup struct + Branch *Flag + Commit *Flag + Tag *Flag + func NewRepoFlagGroup() *RepoFlagGroup + func (f *RepoFlagGroup) Flags() []*Flag + func (f *RepoFlagGroup) Name() string + func (f *RepoFlagGroup) ToOptions() RepoOptions + type RepoOptions struct + RepoBranch string + RepoCommit string + RepoTag string + type ReportFlagGroup struct + Compliance *Flag + DependencyTree *Flag + ExitCode *Flag + ExitOnEOL *Flag + Format *Flag + IgnoreFile *Flag + IgnorePolicy *Flag + ListAllPkgs *Flag + Output *Flag + ReportFormat *Flag + Severity *Flag + Template *Flag + func NewReportFlagGroup() *ReportFlagGroup + func (f *ReportFlagGroup) Flags() []*Flag + func (f *ReportFlagGroup) Name() string + func (f *ReportFlagGroup) ToOptions(out io.Writer) (ReportOptions, error) + type ReportOptions struct + Compliance spec.ComplianceSpec + DependencyTree bool + ExitCode int + ExitOnEOL int + Format string + IgnoreFile string + IgnorePolicy string + ListAllPkgs bool + Output io.Writer + ReportFormat string + Severities []dbTypes.Severity + Template string + type SBOMFlagGroup struct + ArtifactType *Flag + SBOMFormat *Flag + VEXPath *Flag + func NewSBOMFlagGroup() *SBOMFlagGroup + func (f *SBOMFlagGroup) Flags() []*Flag + func (f *SBOMFlagGroup) Name() string + func (f *SBOMFlagGroup) ToOptions() (SBOMOptions, error) + type SBOMOptions struct + VEXPath string + type ScanFlagGroup struct + FilePatterns *Flag + OfflineScan *Flag + RekorURL *Flag + SBOMSources *Flag + Scanners *Flag + SkipDirs *Flag + SkipFiles *Flag + Slow *Flag + func NewScanFlagGroup() *ScanFlagGroup + func (f *ScanFlagGroup) Flags() []*Flag + func (f *ScanFlagGroup) Name() string + func (f *ScanFlagGroup) ToOptions(args []string) (ScanOptions, error) + type ScanOptions struct + FilePatterns []string + OfflineScan bool + RekorURL string + SBOMSources []string + Scanners types.Scanners + SkipDirs []string + SkipFiles []string + Slow bool + Target string + type SecretFlagGroup struct + SecretConfig *Flag + func NewSecretFlagGroup() *SecretFlagGroup + func (f *SecretFlagGroup) Flags() []*Flag + func (f *SecretFlagGroup) Name() string + func (f *SecretFlagGroup) ToOptions() SecretOptions + type SecretOptions struct + SecretConfigPath string + type VulnerabilityFlagGroup struct + IgnoreUnfixed *Flag + VulnType *Flag + func NewVulnerabilityFlagGroup() *VulnerabilityFlagGroup + func (f *VulnerabilityFlagGroup) Flags() []*Flag + func (f *VulnerabilityFlagGroup) Name() string + func (f *VulnerabilityFlagGroup) ToOptions() VulnerabilityOptions + type VulnerabilityOptions struct + IgnoreUnfixed bool + VulnType []string