Versions in this module Expand all Collapse all v1 v1.230.4 Jun 22, 2022 v1.230.3 Jun 22, 2022 v1.230.2 Jun 15, 2022 v1.230.1 Jun 15, 2022 v1.230.0 Jun 15, 2022 Changes in this version type System + GetAuthEntityByName func(entityName string) ([]*models.AuthenticationEntity, error) type SystemInstance + func (sys *SystemInstance) GetAuthEntityByName(entityName string) ([]*models.AuthenticationEntity, error) v1.229.0 Jun 14, 2022 v1.228.0 Jun 14, 2022 Changes in this version type System + UpdateCollectionAuthEntityOfProjectVersion func(id int64, data []*models.AuthenticationEntity) error type SystemInstance + func (sys *SystemInstance) UpdateCollectionAuthEntityOfProjectVersion(id int64, data []*models.AuthenticationEntity) error v1.227.0 Jun 14, 2022 Changes in this version type System + GetAuthEntityOfProjectVersion func(id int64) ([]*models.AuthenticationEntity, error) v1.226.0 Jun 14, 2022 Changes in this version + const ReportsDirectory + func ConvertFprToSarif(sys System, project *models.Project, projectVersion *models.ProjectVersion, ...) (format.SARIF, error) + func CreateCustomReport(data FortifyReportData, issueGroups []*models.ProjectVersionIssueGroup) reporting.ScanReport + func Parse(sys System, project *models.Project, projectVersion *models.ProjectVersion, ...) (format.SARIF, error) + func WriteCustomReports(scanReport reporting.ScanReport) ([]piperutils.Path, error) + func WriteJSONReport(jsonReport FortifyReportData) ([]piperutils.Path, error) + func WriteSarif(sarif format.SARIF) ([]piperutils.Path, error) + type Abstract struct + Text string + XMLName xml.Name + type Action struct + ActionData string + Type string + XMLName xml.Name + type AnalysisInfo struct + Context Context + ReplacementDefinitions ReplacementDefinitions + Trace []Trace + type Attribute struct + Name string + Value string + XMLName xml.Name + type Build struct + BuildID string + JavaClassPath string + Label string + Locs []LOC + NumberFiles int + Project string + Scantime ScanTime + SourceBasePath string + SourceFiles []File + Version string + XMLName xml.Name + type Capability struct + Attribute Attribute + Expiration string + Name string + XMLName xml.Name + type ClassInfo struct + AnalyzerName string + ClassID string + DefaultSeverity float64 + Kingdom string + Subtype string + Type string + XMLName xml.Name + type Context struct + ContextId string + FDSL FunctionDeclarationSourceLocation + Function Function + XMLName xml.Name + type ContextPool struct + Context []Context + XMLName xml.Name + type CreatedTS struct + Date string + Time string + XMLName xml.Name + type CustomDescription struct + ContentType string + Explanation Explanation + Recommendations Recommendations + References []Reference + RuleID string + XMLName xml.Name + type Def struct + DefKey string + DefValue string + XMLName xml.Name + type Description struct + Abstract Abstract + ClassID string + ContentType string + CustomDescription CustomDescription + Explanation Explanation + Recommendations Recommendations + References []Reference + Tips []Tip + XMLName xml.Name + type EngineData struct + CLArguments []string + EngineVersion string + Errors []Error + FilterResult FilterResult + LicenseInfo LicenseInfo + MachineInfo MachineInfo + Properties []Properties + RuleInfo []RuleInfo + RulePacks []RulePack + XMLName xml.Name + type Entry struct + Node Node + NodeRef NodeRef + XMLName xml.Name + type Error struct + ErrorCode string + ErrorMessage string + XMLName xml.Name + type Explanation struct + Text string + XMLName xml.Name + type FVDL struct + Build Build + ContextPool ContextPool + Created CreatedTS + Description []Description + EngineData EngineData + ProgramData ProgramData + Snippets []Snippet + UnifiedNodePool UnifiedNodePool + Uuid UUID + Version string + Vulnerabilities Vulnerabilities + XMLName xml.Name + Xmlns string + XmlnsXsi string + XsiType string + type Fact struct + FactData string + Primary string + Type string + XMLName xml.Name + type File struct + Encoding string + FileLoc int + FileSize int + FileTimestamp string + FileType string + Locs []LOC + Name string + XMLName xml.Name + type FilterResult struct + XMLName xml.Name + type FortifyReportData struct + AtleastOneSpotChecksCategoryAudited bool + AuditAllAudited int + AuditAllTotal int + CorporateAudited int + CorporateTotal int + Exploitable int + ProjectID int64 + ProjectName string + ProjectVersion string + ProjectVersionID int64 + SpotChecksAudited int + SpotChecksCategories *[]SpotChecksAuditCount + SpotChecksGap int + SpotChecksTotal int + Suppressed int + Suspicious int + ToolInstance string + ToolName string + URL string + Violations int + func CreateJSONReport(reportData FortifyReportData, spotChecksCountByCategory []SpotChecksAuditCount, ...) FortifyReportData + type Function struct + FunctionEnclosingClass string + FunctionName string + FunctionNamespace string + XMLName xml.Name + type FunctionCall struct + Function Function + SourceLocation SourceLocation + XMLName xml.Name + type FunctionDeclarationSourceLocation struct + FDSLColEnd string + FDSLColStart string + FDSLLine string + FDSLLineEnd string + FDSLPath string + XMLName xml.Name + type FunctionEntry struct + Function Function + SourceLocation SourceLocation + XMLName xml.Name + type Group struct + Data string + Name string + XMLName xml.Name + type InstanceInfo struct + Confidence string + InstanceID string + InstanceSeverity float64 + XMLName xml.Name + type Knowledge struct + Facts []Fact + XMLName xml.Name + type LOC struct + LocType string + LocValue string + XMLName xml.Name + type LicenseInfo struct + Capability []Capability + Metadata []Metadata + XMLName xml.Name + type LocationDef struct + ColEnd int + ColStart int + Key string + Line int + LineEnd int + Path string + XMLName xml.Name + type MachineInfo struct + Hostname string + Platform string + Username string + XMLName xml.Name + type Metadata struct + Name string + Value string + XMLName xml.Name + type Node struct + Action Action + ID int + IsDefault string + Knowledge Knowledge + NodeLabel string + Reason Reason + SourceLocation SourceLocation + XMLName xml.Name + type NodeRef struct + RefId int + XMLName xml.Name + type Primary struct + Entry []Entry + XMLName xml.Name + type ProgramData struct + CalledWithNoDef []Function + Sinks []SinkInstance + Sources []SourceInstance + XMLName xml.Name + type Properties struct + PropertiesType string + Property []Property + XMLName xml.Name + type Property struct + Name string + Value string + XMLName xml.Name + type Reason struct + Rule Rule + Trace Trace + XMLName xml.Name + type Recommendations struct + Text string + XMLName xml.Name + type Reference struct + Author string + Title string + XMLName xml.Name + type ReplacementDefinitions struct + Def []Def + LocationDef []LocationDef + XMLName xml.Name + type Rule struct + RuleID string + XMLName xml.Name + type RuleInfo struct + MetaInfoGroup []Group + RuleID string + XMLName xml.Name + type RulePack struct + MAC string + Name string + RulePackID string + SKU string + Version string + XMLName xml.Name + type ScanTime struct + Value int + XMLName xml.Name + type SinkInstance struct + FunctionCall FunctionCall + RuleID string + SourceLocation SourceLocation + XMLName xml.Name + type Snippet struct + EndLine int + File string + SnippetId string + StartLine int + Text string + XMLName xml.Name + type SourceInstance struct + FunctionCall FunctionCall + FunctionEntry FunctionEntry + RuleID string + SourceLocation SourceLocation + TaintFlags TaintFlags + XMLName xml.Name + type SourceLocation struct + ColEnd int + ColStart int + ContextId string + Line int + LineEnd int + Path string + Snippet string + XMLName xml.Name + type SpotChecksAuditCount struct + Audited int + Total int + Type string + type System interface + CommitProjectVersion func(id int64) (*models.ProjectVersion, error) + CreateProjectVersion func(version *models.ProjectVersion) (*models.ProjectVersion, error) + CreateProjectVersionIfNotExist func(projectName, projectVersionName, description string) (*models.ProjectVersion, error) + DownloadReportFile func(endpoint string, reportID int64) ([]byte, error) + DownloadResultFile func(endpoint string, projectVersionID int64) ([]byte, error) + GenerateQGateReport func(projectID, projectVersionID, reportTemplateID int64, ...) (*models.SavedReport, error) + GetAllIssueDetails func(projectVersionId int64) ([]*models.ProjectVersionIssue, error) + GetArtifactsOfProjectVersion func(id int64) ([]*models.Artifact, error) + GetFilterSetByDisplayName func(issueFilterSelectorSet *models.IssueFilterSelectorSet, name string) *models.IssueFilterSelector + GetFilterSetOfProjectVersionByTitle func(id int64, title string) (*models.FilterSet, error) + GetIssueComments func(parentId int64) ([]*models.IssueAuditComment, error) + GetIssueDetails func(projectVersionId int64, issueInstanceId string) ([]*models.ProjectVersionIssue, error) + GetIssueFilterSelectorOfProjectVersionByName func(id int64, names []string, options []string) (*models.IssueFilterSelectorSet, error) + GetIssueStatisticsOfProjectVersion func(id int64) ([]*models.IssueStatistics, error) + GetProjectByName func(name string, autoCreate bool, projectVersion string) (*models.Project, error) + GetProjectIssuesByIDAndFilterSetGroupedBySelector func(id int64, filter, filterSetGUID string, ...) ([]*models.ProjectVersionIssueGroup, error) + GetProjectVersionAttributesByProjectVersionID func(id int64) ([]*models.Attribute, error) + GetProjectVersionDetailsByProjectIDAndVersionName func(id int64, name string, autoCreate bool, projectName string) (*models.ProjectVersion, error) + GetReportDetails func(id int64) (*models.SavedReport, error) + LookupOrCreateProjectVersionDetailsForPullRequest func(projectID int64, masterProjectVersion *models.ProjectVersion, ...) (*models.ProjectVersion, error) + MergeProjectVersionStateOfPRIntoMaster func(downloadEndpoint, uploadEndpoint string, ...) error + ProjectVersionCopyCurrentState func(sourceID, targetID int64) error + ProjectVersionCopyFromPartial func(sourceID, targetID int64) error + ProjectVersionCopyPermissions func(sourceID, targetID int64) error + ReduceIssueFilterSelectorSet func(issueFilterSelectorSet *models.IssueFilterSelectorSet, names []string, ...) *models.IssueFilterSelectorSet + SetProjectVersionAttributesByProjectVersionID func(id int64, attributes []*models.Attribute) ([]*models.Attribute, error) + UploadResultFile func(endpoint, file string, projectVersionID int64) error + type SystemInstance struct + func NewSystemInstance(serverURL, apiEndpoint, authToken string, timeout time.Duration) *SystemInstance + func NewSystemInstanceForClient(clientInstance *ff.Fortify, httpClientInstance *piperHttp.Client, ...) *SystemInstance + func (sys *SystemInstance) AuthenticateRequest(req runtime.ClientRequest, formats strfmt.Registry) error + func (sys *SystemInstance) CommitProjectVersion(id int64) (*models.ProjectVersion, error) + func (sys *SystemInstance) CreateProjectVersion(version *models.ProjectVersion) (*models.ProjectVersion, error) + func (sys *SystemInstance) CreateProjectVersionIfNotExist(projectName, projectVersionName, description string) (*models.ProjectVersion, error) + func (sys *SystemInstance) DownloadReportFile(endpoint string, reportID int64) ([]byte, error) + func (sys *SystemInstance) DownloadResultFile(endpoint string, projectVersionID int64) ([]byte, error) + func (sys *SystemInstance) GenerateQGateReport(projectID, projectVersionID, reportTemplateID int64, ...) (*models.SavedReport, error) + func (sys *SystemInstance) GetAllIssueDetails(projectVersionId int64) ([]*models.ProjectVersionIssue, error) + func (sys *SystemInstance) GetArtifactsOfProjectVersion(id int64) ([]*models.Artifact, error) + func (sys *SystemInstance) GetAuthEntityOfProjectVersion(id int64) ([]*models.AuthenticationEntity, error) + func (sys *SystemInstance) GetFilterSetByDisplayName(issueFilterSelectorSet *models.IssueFilterSelectorSet, name string) *models.IssueFilterSelector + func (sys *SystemInstance) GetFilterSetOfProjectVersionByTitle(id int64, title string) (*models.FilterSet, error) + func (sys *SystemInstance) GetIssueComments(parentId int64) ([]*models.IssueAuditComment, error) + func (sys *SystemInstance) GetIssueDetails(projectVersionId int64, issueInstanceId string) ([]*models.ProjectVersionIssue, error) + func (sys *SystemInstance) GetIssueFilterSelectorOfProjectVersionByName(id int64, names []string, options []string) (*models.IssueFilterSelectorSet, error) + func (sys *SystemInstance) GetIssueStatisticsOfProjectVersion(id int64) ([]*models.IssueStatistics, error) + func (sys *SystemInstance) GetProjectByName(projectName string, autoCreate bool, projectVersionName string) (*models.Project, error) + func (sys *SystemInstance) GetProjectIssuesByIDAndFilterSetGroupedBySelector(id int64, filter, filterSetGUID string, ...) ([]*models.ProjectVersionIssueGroup, error) + func (sys *SystemInstance) GetProjectVersionAttributesByProjectVersionID(id int64) ([]*models.Attribute, error) + func (sys *SystemInstance) GetProjectVersionDetailsByProjectIDAndVersionName(id int64, versionName string, autoCreate bool, projectName string) (*models.ProjectVersion, error) + func (sys *SystemInstance) GetReportDetails(id int64) (*models.SavedReport, error) + func (sys *SystemInstance) LookupOrCreateProjectVersionDetailsForPullRequest(projectID int64, masterProjectVersion *models.ProjectVersion, ...) (*models.ProjectVersion, error) + func (sys *SystemInstance) MergeProjectVersionStateOfPRIntoMaster(downloadEndpoint, uploadEndpoint string, ...) error + func (sys *SystemInstance) ProjectVersionCopyCurrentState(sourceID, targetID int64) error + func (sys *SystemInstance) ProjectVersionCopyFromPartial(sourceID, targetID int64) error + func (sys *SystemInstance) ProjectVersionCopyPermissions(sourceID, targetID int64) error + func (sys *SystemInstance) ReduceIssueFilterSelectorSet(issueFilterSelectorSet *models.IssueFilterSelectorSet, names []string, ...) *models.IssueFilterSelectorSet + func (sys *SystemInstance) SetProjectVersionAttributesByProjectVersionID(id int64, attributes []*models.Attribute) ([]*models.Attribute, error) + func (sys *SystemInstance) UploadResultFile(endpoint, file string, projectVersionID int64) error + type TaintFlag struct + TaintFlagName string + XMLName xml.Name + type TaintFlags struct + TaintFlag []TaintFlag + XMLName xml.Name + type Tip struct + Tip string + XMLName xml.Name + type Trace struct + Primary Primary + XMLName xml.Name + type UUID struct + Uuid string + XMLName xml.Name + type UnifiedNodePool struct + Node []Node + XMLName xml.Name + type Vulnerabilities struct + Vulnerability []Vulnerability + XMLName xml.Name + type Vulnerability struct + AnalysisInfo AnalysisInfo + ClassInfo ClassInfo + InstanceInfo InstanceInfo + XMLName xml.Name v1.226.0-protecode-custom-data Jun 22, 2022