Versions in this module Expand all Collapse all v0 v0.1.0 Jun 8, 2023 Changes in this version + type Address struct + AbsoluteAddress int + FullyQualifiedName string + Index int + Kind string + Length int + Name string + OffsetFromParent int + ParentIndex int + Properties *PropertyBag + RelativeAddress int + func NewAddress() *Address + type Artifact struct + Contents *ArtifactContent + Description *Message + Encoding string + Hashes map[string]string + LastModifiedTimeUtc string + Length int + Location *ArtifactLocation + MimeType string + Offset int + ParentIndex int + Properties *PropertyBag + Roles []interface{} + SourceLanguage string + func NewArtifact() *Artifact + type ArtifactChange struct + ArtifactLocation *ArtifactLocation + Properties *PropertyBag + Replacements []*Replacement + func NewArtifactChange(location *ArtifactLocation, replacements ...*Replacement) *ArtifactChange + type ArtifactContent struct + Binary string + Properties *PropertyBag + Rendered *MultiformatMessageString + Text string + func NewArtifactContent() *ArtifactContent + type ArtifactLocation struct + Description *Message + Index int + Properties *PropertyBag + Uri string + UriBaseId string + func NewArtifactLocation() *ArtifactLocation + type Attachment struct + ArtifactLocation *ArtifactLocation + Description *Message + Properties *PropertyBag + Rectangles []*Rectangle + Regions []*Region + func NewAttachment(location *ArtifactLocation) *Attachment + type CodeFlow struct + Message *Message + Properties *PropertyBag + ThreadFlows []*ThreadFlow + func NewCodeFlow(threadFlows ...*ThreadFlow) *CodeFlow + type ConfigurationOverride struct + Configuration *ReportingConfiguration + Descriptor *ReportingDescriptorReference + Properties *PropertyBag + func NewConfigurationOverride(configuration *ReportingConfiguration, ...) *ConfigurationOverride + type Conversion struct + AnalysisToolLogFiles []*ArtifactLocation + Invocation *Invocation + Properties *PropertyBag + Tool *Tool + func NewConversion(tool *Tool) *Conversion + type Edge struct + Id string + Label *Message + Properties *PropertyBag + SourceNodeId string + TargetNodeId string + func NewEdge(id, sourceNodeId, targetNodeId string) *Edge + type EdgeTraversal struct + EdgeId string + FinalState map[string]*MultiformatMessageString + Message *Message + Properties *PropertyBag + StepOverEdgeCount int + func NewEdgeTraversal(edgeId string) *EdgeTraversal + type Exception struct + InnerExceptions []*Exception + Kind string + Message string + Properties *PropertyBag + Stack *Stack + func NewException() *Exception + type ExternalProperties struct + Addresses []*Address + Artifacts []*Artifact + Conversion *Conversion + Driver *ToolComponent + Extensions []*ToolComponent + ExternalizedProperties *PropertyBag + Graphs []*Graph + Guid string + Invocations []*Invocation + LogicalLocations []*LogicalLocation + Policies []*ToolComponent + Properties *PropertyBag + Results []*Result + RunGuid string + Schema string + Taxonomies []*ToolComponent + ThreadFlowLocations []*ThreadFlowLocation + Translations []*ToolComponent + Version interface{} + WebRequests []*WebRequest + WebResponses []*WebResponse + func NewExternalProperties() *ExternalProperties + type ExternalPropertyFileReference struct + Guid string + ItemCount int + Location *ArtifactLocation + Properties *PropertyBag + func NewExternalPropertyFileReference() *ExternalPropertyFileReference + type ExternalPropertyFileReferences struct + Addresses []*ExternalPropertyFileReference + Artifacts []*ExternalPropertyFileReference + Conversion *ExternalPropertyFileReference + Driver *ExternalPropertyFileReference + Extensions []*ExternalPropertyFileReference + ExternalizedProperties *ExternalPropertyFileReference + Graphs []*ExternalPropertyFileReference + Invocations []*ExternalPropertyFileReference + LogicalLocations []*ExternalPropertyFileReference + Policies []*ExternalPropertyFileReference + Properties *PropertyBag + Results []*ExternalPropertyFileReference + Taxonomies []*ExternalPropertyFileReference + ThreadFlowLocations []*ExternalPropertyFileReference + Translations []*ExternalPropertyFileReference + WebRequests []*ExternalPropertyFileReference + WebResponses []*ExternalPropertyFileReference + func NewExternalPropertyFileReferences() *ExternalPropertyFileReferences + type Fix struct + ArtifactChanges []*ArtifactChange + Description *Message + Properties *PropertyBag + func NewFix(artifactChanges ...*ArtifactChange) *Fix + type Graph struct + Description *Message + Edges []*Edge + Nodes []*Node + Properties *PropertyBag + func NewGraph() *Graph + type GraphTraversal struct + Description *Message + EdgeTraversals []*EdgeTraversal + ImmutableState map[string]*MultiformatMessageString + InitialState map[string]*MultiformatMessageString + Properties *PropertyBag + ResultGraphIndex int + RunGraphIndex int + func NewGraphTraversal() *GraphTraversal + type Invocation struct + Account string + Arguments []string + CommandLine string + EndTimeUtc string + EnvironmentVariables map[string]string + ExecutableLocation *ArtifactLocation + ExecutionSuccessful bool + ExitCode int + ExitCodeDescription string + ExitSignalName string + ExitSignalNumber int + Machine string + NotificationConfigurationOverrides []*ConfigurationOverride + ProcessId int + ProcessStartFailureMessage string + Properties *PropertyBag + ResponseFiles []*ArtifactLocation + RuleConfigurationOverrides []*ConfigurationOverride + StartTimeUtc string + Stderr *ArtifactLocation + Stdin *ArtifactLocation + Stdout *ArtifactLocation + StdoutStderr *ArtifactLocation + ToolConfigurationNotifications []*Notification + ToolExecutionNotifications []*Notification + WorkingDirectory *ArtifactLocation + func NewInvocation(executionSuccessful bool) *Invocation + type Location struct + Annotations []*Region + Id int + LogicalLocations []*LogicalLocation + Message *Message + PhysicalLocation *PhysicalLocation + Properties *PropertyBag + Relationships []*LocationRelationship + func NewLocation() *Location + func (l *Location) WithLineColumn(line, column int) *Location + func (l *Location) WithURI(uri string) *Location + type LocationRelationship struct + Description *Message + Kinds []string + Properties *PropertyBag + Target int + func NewLocationRelationship(target int) *LocationRelationship + type LogFile struct + InlineExternalProperties []*ExternalProperties + Properties *PropertyBag + Runs []*Run + Schema string + Version interface{} + func NewLogFile(runs []*Run, version LogFileVersion) *LogFile + func (l *LogFile) PrettyWrite(w io.Writer) error + func (l *LogFile) Write(w io.Writer) error + type LogFileVersion string + const Version210 + type LogicalLocation struct + DecoratedName string + FullyQualifiedName string + Index int + Kind string + Name string + ParentIndex int + Properties *PropertyBag + func NewLogicalLocation() *LogicalLocation + type Message struct + Arguments []string + Id string + Markdown string + Properties *PropertyBag + Text string + func NewMessage() *Message + func NewMessageFromText(text string) *Message + type MultiformatMessageString struct + Markdown string + Properties *PropertyBag + Text string + func NewMultiformatMessageString(text string) *MultiformatMessageString + type Node struct + Children []*Node + Id string + Label *Message + Location *Location + Properties *PropertyBag + func NewNode(id string) *Node + type Notification struct + AssociatedRule *ReportingDescriptorReference + Descriptor *ReportingDescriptorReference + Exception *Exception + Level interface{} + Locations []*Location + Message *Message + Properties *PropertyBag + ThreadId int + TimeUtc string + func NewNotification(message *Message) *Notification + type PhysicalLocation struct + Address *Address + ArtifactLocation *ArtifactLocation + ContextRegion *Region + Properties *PropertyBag + Region *Region + func NewPhysicalLocation() *PhysicalLocation + type PropertyBag map[string]interface + func (b PropertyBag) WithKeyValue(key string, value interface{}) PropertyBag + func NewPropertyBag() *PropertyBag + type Rectangle struct + Bottom float64 + Left float64 + Message *Message + Properties *PropertyBag + Right float64 + Top float64 + func NewRectangle() *Rectangle + type Region struct + ByteLength int + ByteOffset int + CharLength int + CharOffset int + EndColumn int + EndLine int + Message *Message + Properties *PropertyBag + Snippet *ArtifactContent + SourceLanguage string + StartColumn int + StartLine int + func NewRegion() *Region + type Replacement struct + DeletedRegion *Region + InsertedContent *ArtifactContent + Properties *PropertyBag + func NewReplacement(deletedRegion *Region) *Replacement + type ReportingConfiguration struct + Enabled bool + Level interface{} + Parameters *PropertyBag + Properties *PropertyBag + Rank float64 + func NewReportingConfiguration() *ReportingConfiguration + type ReportingDescriptor struct + DefaultConfiguration *ReportingConfiguration + DeprecatedGuids []string + DeprecatedIds []string + DeprecatedNames []string + FullDescription *MultiformatMessageString + Guid string + Help *MultiformatMessageString + HelpUri string + Id string + MessageStrings map[string]*MultiformatMessageString + Name string + Properties *PropertyBag + Relationships []*ReportingDescriptorRelationship + ShortDescription *MultiformatMessageString + func NewReportingDescriptor(id string) *ReportingDescriptor + func NewRule(id string) *ReportingDescriptor + func (r *ReportingDescriptor) WithHelpUri(uri string) *ReportingDescriptor + func (r *ReportingDescriptor) WithProperties(key string, value interface{}) *ReportingDescriptor + type ReportingDescriptorReference struct + Guid string + Id string + Index int + Properties *PropertyBag + ToolComponent *ToolComponentReference + func NewReportingDescriptorReference() *ReportingDescriptorReference + type ReportingDescriptorRelationship struct + Description *Message + Kinds []string + Properties *PropertyBag + Target *ReportingDescriptorReference + func NewReportingDescriptorRelationship(target *ReportingDescriptorReference) *ReportingDescriptorRelationship + type Result struct + AnalysisTarget *ArtifactLocation + Attachments []*Attachment + BaselineState interface{} + CodeFlows []*CodeFlow + CorrelationGuid string + Fingerprints map[string]string + Fixes []*Fix + GraphTraversals []*GraphTraversal + Graphs []*Graph + Guid string + HostedViewerUri string + Kind ResultKind + Level ResultLevel + Locations []*Location + Message *Message + OccurrenceCount int + PartialFingerprints map[string]string + Properties *PropertyBag + Provenance *ResultProvenance + Rank float64 + RelatedLocations []*Location + Rule *ReportingDescriptorReference + RuleId string + RuleIndex int + Stacks []*Stack + Suppressions []*Suppression + Taxa []*ReportingDescriptorReference + WebRequest *WebRequest + WebResponse *WebResponse + WorkItemUris []string + func NewResult(message *Message) *Result + type ResultKind string + const ResultKind_Fail + const ResultKind_Informational + const ResultKind_NotApplicable + const ResultKind_Open + const ResultKind_Pass + const ResultKind_Review + type ResultLevel string + const ResultLevel_Error + const ResultLevel_None + const ResultLevel_Note + const ResultLevel_Warning + type ResultProvenance struct + ConversionSources []*PhysicalLocation + FirstDetectionRunGuid string + FirstDetectionTimeUtc string + InvocationIndex int + LastDetectionRunGuid string + LastDetectionTimeUtc string + Properties *PropertyBag + func NewResultProvenance() *ResultProvenance + type Run struct + Addresses []*Address + Artifacts []*Artifact + AutomationDetails *RunAutomationDetails + BaselineGuid string + ColumnKind interface{} + Conversion *Conversion + DefaultEncoding string + DefaultSourceLanguage string + ExternalPropertyFileReferences *ExternalPropertyFileReferences + Graphs []*Graph + Invocations []*Invocation + Language string + LogicalLocations []*LogicalLocation + NewlineSequences []string + OriginalUriBaseIds map[string]*ArtifactLocation + Policies []*ToolComponent + Properties *PropertyBag + RedactionTokens []string + Results []*Result + RunAggregates []*RunAutomationDetails + SpecialLocations *SpecialLocations + Taxonomies []*ToolComponent + ThreadFlowLocations []*ThreadFlowLocation + Tool *Tool + Translations []*ToolComponent + VersionControlProvenance []*VersionControlDetails + WebRequests []*WebRequest + WebResponses []*WebResponse + func NewRun(tool *Tool) *Run + func (r *Run) WithArtifactsURIs(uris ...string) *Run + func (r *Run) WithResult(ruleId string, message string, uri string, line int, column int) *Run + type RunAutomationDetails struct + CorrelationGuid string + Description *Message + Guid string + Id string + Properties *PropertyBag + func NewRunAutomationDetails() *RunAutomationDetails + type SpecialLocations struct + DisplayBase *ArtifactLocation + Properties *PropertyBag + func NewSpecialLocations() *SpecialLocations + type Stack struct + Frames []*StackFrame + Message *Message + Properties *PropertyBag + func NewStack(frames ...*StackFrame) *Stack + type StackFrame struct + Location *Location + Module string + Parameters []string + Properties *PropertyBag + ThreadId int + func NewStackFrame() *StackFrame + type Suppression struct + Guid string + Justification string + Kind string + Location *Location + Properties *PropertyBag + Status interface{} + func NewSuppression(kind string) *Suppression + type ThreadFlow struct + Id string + ImmutableState map[string]*MultiformatMessageString + InitialState map[string]*MultiformatMessageString + Locations []*ThreadFlowLocation + Message *Message + Properties *PropertyBag + func NewThreadFlow(locations []*ThreadFlowLocation) *ThreadFlow + type ThreadFlowLocation struct + ExecutionOrder int + ExecutionTimeUtc string + Importance interface{} + Index int + Kinds []string + Location *Location + Module string + NestingLevel int + Properties *PropertyBag + Stack *Stack + State map[string]*MultiformatMessageString + Taxa []*ReportingDescriptorReference + WebRequest *WebRequest + WebResponse *WebResponse + func NewThreadFlowLocation() *ThreadFlowLocation + type Tool struct + Driver *ToolComponent + Extensions []*ToolComponent + Properties *PropertyBag + func NewTool(driver *ToolComponent) *Tool + type ToolComponent struct + AssociatedComponent *ToolComponentReference + Contents []interface{} + DottedQuadFileVersion string + DownloadUri string + FullDescription *MultiformatMessageString + FullName string + GlobalMessageStrings map[string]*MultiformatMessageString + Guid string + InformationUri string + IsComprehensive bool + Language string + LocalizedDataSemanticVersion string + Locations []*ArtifactLocation + MinimumRequiredLocalizedDataSemanticVersion string + Name string + Notifications []*ReportingDescriptor + Organization string + Product string + ProductSuite string + Properties *PropertyBag + ReleaseDateUtc string + Rules []*ReportingDescriptor + SemanticVersion string + ShortDescription *MultiformatMessageString + SupportedTaxonomies []*ToolComponentReference + Taxa []*ReportingDescriptor + TranslationMetadata *TranslationMetadata + Version string + func NewDriver(name string) *ToolComponent + func NewToolComponent(name string) *ToolComponent + func (t *ToolComponent) WithInformationUri(uri string) *ToolComponent + func (t *ToolComponent) WithRules(rules ...*ReportingDescriptor) *ToolComponent + type ToolComponentReference struct + Guid string + Index int + Name string + Properties *PropertyBag + func NewToolComponentReference() *ToolComponentReference + type TranslationMetadata struct + DownloadUri string + FullDescription *MultiformatMessageString + FullName string + InformationUri string + Name string + Properties *PropertyBag + ShortDescription *MultiformatMessageString + func NewTranslationMetadata(name string) *TranslationMetadata + type VersionControlDetails struct + AsOfTimeUtc string + Branch string + MappedTo *ArtifactLocation + Properties *PropertyBag + RepositoryUri string + RevisionId string + RevisionTag string + func NewVersionControlDetails(repositoryUri string) *VersionControlDetails + type WebRequest struct + Body *ArtifactContent + Headers map[string]string + Index int + Method string + Parameters map[string]string + Properties *PropertyBag + Protocol string + Target string + Version string + func NewWebRequest() *WebRequest + type WebResponse struct + Body *ArtifactContent + Headers map[string]string + Index int + NoResponseReceived bool + Properties *PropertyBag + Protocol string + ReasonPhrase string + StatusCode int + Version string + func NewWebResponse() *WebResponse