Documentation ¶
Overview ¶
Package integration provides functions for integrating the application with the Guardian360 Lighthouse platform.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var IssueMap = map[IssueResPair]bool{}/* 131 elements not displayed */
IssueMap is a map that maps an issue ID and result ID pair to a boolean value. This map is used to determine whether a given issue is considered a problem based on the result of a security or privacy check.
Functions ¶
This section is empty.
Types ¶
type IssueData ¶
IssueData is a struct that encapsulates the data for a checked issue. This data includes the issue ID, whether the issue is considered a problem, and any additional data related to the issue.
type IssueResPair ¶
type Metadata ¶
Metadata is a struct that contains metadata about the scan. This metadata includes the workstation ID, the user who initiated the scan, and the date of the scan.
type ParseResult ¶
ParseResult is a struct that encapsulates the results of parsing a scan. This parsing is done to convert the results of security and privacy checks into a format that can be sent to the Guardian360 Lighthouse API.
func ParseScanResults ¶
func ParseScanResults(metaData Metadata, checks []checks.Check) ParseResult
ParseScanResults parses the results of a scan into a ParseResult struct. This function takes the metadata of the scan and the results of the security and privacy checks and creates a ParseResult struct that encapsulates this data.
Parameters:
- metaData (Metadata): The metadata of the scan, including the workstation ID, user, and date.
- checks ([]checks.Check): A slice of Check objects representing the results of the security and privacy checks.
Returns:
- ParseResult: A ParseResult struct that encapsulates the metadata and results of the scan.
func (ParseResult) String ¶
func (p ParseResult) String() string
String returns a string representation of the ParseResult struct.
Parameters: None.
Returns:
- string: A string representation of the ParseResult struct.