persistence

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDate

func GetDate(baseEndpoint, scanID string) (string, error)

GetDate retrieves the date for a scan.

Types

type Check

type Check struct {
	ID            string `json:"id"`
	Target        string `json:"target"`
	Status        string `json:"status"`
	Report        string `json:"report"`
	CheckTypeName string `json:"checktype_name"`
}

Check represents an individual check from Checks

func GetChecks

func GetChecks(baseEndpoint, scanID string) ([]Check, error)

GetChecks retrieves all checks for a scan.

type Checks

type Checks struct {
	Checks []Check `json:"checks"`
}

Checks represents the response from /scan/{id}/checks

type Scan

type Scan struct {
	ID        string    `json:"id"`
	StartTime time.Time `json:"start_time"`
}

Scan represents the response from /scan/{id}

Jump to

Keyboard shortcuts

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