imagescanner

package
v1.11.0-cni-plu...-aa3fb74 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveResultURL

func RetrieveResultURL(outputDir string) string

RetrieveResultURL retrieves the URL to the image scan result from the scan result file.

Types

type Config

type Config struct {
	// APIURL is the URL for the Image Scan Service API
	APIURL string

	// Token is the token for the Image Scan Service API
	Token string

	// Scanner is the name of the scanner to use
	Scanner string
}

Config is the configuration for the image scanner.

func (*Config) Valid

func (c *Config) Valid() bool

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

Scanner is an image scanner.

func New

func New(cfg Config) *Scanner

NewScanner creates a new image scanner.

func (*Scanner) Scan

func (i *Scanner) Scan(images []string, stream string, release bool, outputDir string) error

Scan sends a request to the image scanner to scan the given images for the given product code and stream.

Jump to

Keyboard shortcuts

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