Documentation
¶
Index ¶
- Variables
- func DownloadDB(t *testing.T, envVars ...string)
- func ValidateVEXJSON(t *testing.T, dir string)
- type AddrWrapper
- type ScannerCmd
- func (s *ScannerCmd) Scan(t *testing.T, ref string, ignoreErrors bool, envVars ...string)
- func (s *ScannerCmd) WithExitCode(exitCode int) *ScannerCmd
- func (s *ScannerCmd) WithIgnoreFile(ignoreFile string) *ScannerCmd
- func (s *ScannerCmd) WithImageSrc(imageSrc string) *ScannerCmd
- func (s *ScannerCmd) WithOutput(output string) *ScannerCmd
- func (s *ScannerCmd) WithPlatform(platform string) *ScannerCmd
- func (s *ScannerCmd) WithSkipDBUpdate() *ScannerCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var TrivyIgnore []byte
Functions ¶
func DownloadDB ¶
func ValidateVEXJSON ¶
Types ¶
type AddrWrapper ¶
type AddrWrapper struct {
// contains filtered or unexported fields
}
var DockerDINDAddress AddrWrapper
func (*AddrWrapper) Addr ¶
func (w *AddrWrapper) Addr() string
func (*AddrWrapper) Env ¶
func (w *AddrWrapper) Env() []string
func (*AddrWrapper) Set ¶
func (w *AddrWrapper) Set(val string)
type ScannerCmd ¶
type ScannerCmd struct {
Output string
SkipDBUpdate bool
IgnoreFile string
ExitCode int
Platform string
ImageSrc string
}
func NewScanner ¶
func NewScanner() *ScannerCmd
func (*ScannerCmd) WithExitCode ¶
func (s *ScannerCmd) WithExitCode(exitCode int) *ScannerCmd
func (*ScannerCmd) WithIgnoreFile ¶
func (s *ScannerCmd) WithIgnoreFile(ignoreFile string) *ScannerCmd
func (*ScannerCmd) WithImageSrc ¶
func (s *ScannerCmd) WithImageSrc(imageSrc string) *ScannerCmd
func (*ScannerCmd) WithOutput ¶
func (s *ScannerCmd) WithOutput(output string) *ScannerCmd
func (*ScannerCmd) WithPlatform ¶
func (s *ScannerCmd) WithPlatform(platform string) *ScannerCmd
func (*ScannerCmd) WithSkipDBUpdate ¶
func (s *ScannerCmd) WithSkipDBUpdate() *ScannerCmd
Click to show internal directories.
Click to hide internal directories.