reports

package
v0.0.0-...-c7f552b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mode string

Mode determines if command-line or container

View Source
var Password string

Password is the password for the above user

URL points to an instance of Aqua CSP

View Source
var User string

User is the Aqua CSP user accessing the API

Functions

func CreateFindingsFile

func CreateFindingsFile(name string) string

func CreateImageFile

func CreateImageFile(registry, image, tag string) string

CreateImageFile - the HTML File for the scan report

func GetClient

func GetClient(r Reports) *client.Client

GetClient returns the aqua-sdk-go client to interact with CSP

func RunningTime

func RunningTime(s string) (string, time.Time)

RunningTime - Start the Timer

func Track

func Track(s string, startTime time.Time)

Track - Stop the Timer

func UnescapeURLQuery

func UnescapeURLQuery(params map[string]string)

UnescapeURLQuery - uses the url package to unescape the incoming query parameters Param: map[string]string - params are received from the incoming http request

Types

type Reports

type Reports interface {
	Get(params map[string]string, queue chan Response) Response
}

Reports represents all reports

type Response

type Response struct {
	Message string `json:"message"`
	URL     string `json:"url,omitempty"`
	Status  string `json:"status"`
}

Response for returning JSON to browser per request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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