scan

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClairResponse

type ClairResponse struct {
	Layer reg.Layer `json:"Layer"`
}

type Request

type Request struct {
	Registries []RequestRegistry `json:"registries"`
}

For scan requests

type RequestRegistry

type RequestRegistry struct {
	Name         string              `json:"name"`
	Repositories []RequestRepository `json:"repositories"`
}

type RequestRepository

type RequestRepository struct {
	Name     string   `json:"name"`
	Versions []string `json:"versions"`
}

type RequestResponse

type RequestResponse struct {
	ImageScanRequestName string `json:"imageScanRequestName"`
}

type ResultResponse

type ResultResponse map[string][]reg.Vulnerability

For scan responses

func GetScanResult

func GetScanResult(img *image.Image) (ResultResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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