integration

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package integration provides functions for integrating the application with the Guardian360 Lighthouse platform.

Index

Constants

This section is empty.

Variables

View Source
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

type IssueData struct {
	IssueID        int
	Detected       bool
	AdditionalData []string
}

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 IssueResPair struct {
	IssueID  int
	ResultID int
}

type Metadata

type Metadata struct {
	WorkStationID int
	User          string
	Date          string
}

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

type ParseResult struct {
	Metadata Metadata
	Results  []IssueData
}

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.

Jump to

Keyboard shortcuts

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