Documentation
¶
Index ¶
- type Address
- func (address *Address) WithAbsoluteAddress(absoluteAddress int) *Address
- func (address *Address) WithFullyQualifiedName(fullyQualifiedName string) *Address
- func (address *Address) WithIndex(index int) *Address
- func (address *Address) WithKind(kind string) *Address
- func (address *Address) WithLength(length int) *Address
- func (address *Address) WithName(name string) *Address
- func (address *Address) WithOffsetFromParent(offsetFromParent int) *Address
- func (address *Address) WithParentIndex(parentIndex int) *Address
- func (address *Address) WithRelativeAddress(relativeAddress int) *Address
- type Artifact
- func (artifact *Artifact) WithContents(artifactContent *ArtifactContent) *Artifact
- func (artifact *Artifact) WithDescription(message *Message) *Artifact
- func (artifact *Artifact) WithDescriptionMarkdown(markdown string) *Artifact
- func (artifact *Artifact) WithDescriptionText(text string) *Artifact
- func (artifact *Artifact) WithEncoding(encoding string) *Artifact
- func (artifact *Artifact) WithHashes(hashes map[string]string) *Artifact
- func (artifact *Artifact) WithLastModifiedTimeUtc(lastModified string) *Artifact
- func (artifact *Artifact) WithLength(length int) *Artifact
- func (artifact *Artifact) WithLocation(artifactLocation *ArtifactLocation) *Artifact
- func (artifact *Artifact) WithMimeType(mimeType string) *Artifact
- func (artifact *Artifact) WithOffset(offset int) *Artifact
- func (artifact *Artifact) WithParentIndex(parentIndex int) *Artifact
- func (artifact *Artifact) WithRole(role string) *Artifact
- func (artifact *Artifact) WithSourceLanguage(sourceLanguage string) *Artifact
- type ArtifactChange
- type ArtifactContent
- type ArtifactLocation
- func (artifactLocation *ArtifactLocation) WithDescription(message *Message) *ArtifactLocation
- func (artifactLocation *ArtifactLocation) WithDescriptionMarkdown(markdown string) *ArtifactLocation
- func (artifactLocation *ArtifactLocation) WithDescriptionText(text string) *ArtifactLocation
- func (artifactLocation *ArtifactLocation) WithIndex(index int) *ArtifactLocation
- func (artifactLocation *ArtifactLocation) WithUri(uri string) *ArtifactLocation
- func (artifactLocation *ArtifactLocation) WithUriBaseId(uriBaseId string) *ArtifactLocation
- type Attachment
- func (attachment *Attachment) AddRectangle(rectangle *Rectangle)
- func (attachment *Attachment) WithArtifactionLocation(artifactLocation *ArtifactLocation) *Attachment
- func (attachment *Attachment) WithDescription(description *Message) *Attachment
- func (attachment *Attachment) WithDescriptionMarkdown(markdown string) *Attachment
- func (attachment *Attachment) WithDescriptionText(text string) *Attachment
- func (attachment *Attachment) WithRectangles(rectangles []*Rectangle) *Attachment
- type CodeFlow
- func (codeFlow *CodeFlow) AddThreadFlow(threadFlow *ThreadFlow)
- func (codeFlow *CodeFlow) WithMessage(message *Message) *CodeFlow
- func (codeFlow *CodeFlow) WithMessageMarkdown(markdown string) *CodeFlow
- func (codeFlow *CodeFlow) WithTextMessage(text string) *CodeFlow
- func (codeFlow *CodeFlow) WithThreadFlows(threadFlows []*ThreadFlow) *CodeFlow
- type ConfigurationOverride
- type Conversion
- type Edge
- type EdgeTraversal
- func (edgeTraversal *EdgeTraversal) SetFinalState(key string, state *MultiformatMessageString)
- func (edgeTraversal *EdgeTraversal) WithDescription(message *Message) *EdgeTraversal
- func (edgeTraversal *EdgeTraversal) WithDescriptionMarkdown(markdown string) *EdgeTraversal
- func (edgeTraversal *EdgeTraversal) WithDescriptionText(text string) *EdgeTraversal
- func (edgeTraversal *EdgeTraversal) WithFinalState(finalState map[string]*MultiformatMessageString) *EdgeTraversal
- func (edgeTraversal *EdgeTraversal) WithStepOverEdgeCount(stepOverEdgeCount int) *EdgeTraversal
- type Exception
- func (exception *Exception) AddInnerException(toAdd *Exception)
- func (exception *Exception) WithInnerExceptions(exceptions []*Exception) *Exception
- func (exception *Exception) WithKind(kind string) *Exception
- func (exception *Exception) WithMessage(message string) *Exception
- func (exception *Exception) WithStack(stack Stack) *Exception
- type ExternalProperties
- func (externalProperties *ExternalProperties) AddAddress(address *Address)
- func (externalProperties *ExternalProperties) AddArtifact(artifact *Artifact)
- func (externalProperties *ExternalProperties) AddExtension(extension *ToolComponent)
- func (externalProperties *ExternalProperties) AddGraph(graph *Graph)
- func (externalProperties *ExternalProperties) AddInvocation(invocation *Invocation)
- func (externalProperties *ExternalProperties) AddLogicalLocation(logicalLocation *LogicalLocation)
- func (externalProperties *ExternalProperties) AddPolicy(policy *ToolComponent)
- func (externalProperties *ExternalProperties) AddResult(result *Result)
- func (externalProperties *ExternalProperties) AddTaxonomie(taxonomy *ToolComponent)
- func (externalProperties *ExternalProperties) AddThreadFlowLocations(threadFlowLocation *ThreadFlowLocation)
- func (externalProperties *ExternalProperties) AddTranslation(translation *ToolComponent)
- func (externalProperties *ExternalProperties) AddWebRequest(webRequest *WebRequest)
- func (externalProperties *ExternalProperties) AddWebResponse(webResponse *WebResponse)
- func (externalProperties *ExternalProperties) WithAddress(addresses []*Address) *ExternalProperties
- func (externalProperties *ExternalProperties) WithArtifact(artifacts []*Artifact) *ExternalProperties
- func (externalProperties *ExternalProperties) WithConversion(conversion *Conversion) *ExternalProperties
- func (externalProperties *ExternalProperties) WithDriver(driver *ToolComponent) *ExternalProperties
- func (externalProperties *ExternalProperties) WithExtensions(extensions []*ToolComponent) *ExternalProperties
- func (externalProperties *ExternalProperties) WithExternalizedProperties(externalizedProperties *PropertyBag) *ExternalProperties
- func (externalProperties *ExternalProperties) WithGUID(guid string) *ExternalProperties
- func (externalProperties *ExternalProperties) WithGraphs(graphs []*Graph) *ExternalProperties
- func (externalProperties *ExternalProperties) WithInvocations(invocations []*Invocation) *ExternalProperties
- func (externalProperties *ExternalProperties) WithLogicalLocations(logicalLocations []*LogicalLocation) *ExternalProperties
- func (externalProperties *ExternalProperties) WithPolicies(policies []*ToolComponent) *ExternalProperties
- func (externalProperties *ExternalProperties) WithResults(results []*Result) *ExternalProperties
- func (externalProperties *ExternalProperties) WithRunGUID(runGUID string) *ExternalProperties
- func (externalProperties *ExternalProperties) WithSchema(schema string) *ExternalProperties
- func (externalProperties *ExternalProperties) WithTaxonomies(taxonomies []*ToolComponent) *ExternalProperties
- func (externalProperties *ExternalProperties) WithThreadFlowLocations(threadFlowLocations []*ThreadFlowLocation) *ExternalProperties
- func (externalProperties *ExternalProperties) WithTranslations(translation []*ToolComponent) *ExternalProperties
- func (externalProperties *ExternalProperties) WithVersion(version string) *ExternalProperties
- func (externalProperties *ExternalProperties) WithWebRequests(webRequests []*WebRequest) *ExternalProperties
- func (externalProperties *ExternalProperties) WithWebResponses(webResponses []*WebResponse) *ExternalProperties
- type ExternalPropertyFileReference
- type ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddAddress(address *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddArtifact(artifact *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddExtension(extension *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddGraph(graph *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddInvocation(invocation *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddLogicalLocation(logicalLocation *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddPolicy(policy *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddResult(result *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddTaxonomie(taxonomy *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddThreadFlowLocations(threadFlowLocation *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddTranslation(translation *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddWebRequest(webRequest *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddWebResponse(webResponse *ExternalPropertyFileReference)
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithAddress(addresses []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithArtifact(artifacts []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithConversion(conversion *ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithDriver(driver *ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithExtensions(extensions []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithExternalizedProperties(externalizedProperties *ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithGraphs(graphs []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithInvocations(invocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithLogicalLocations(logicalLocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithPolicies(policies []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithResults(results []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithTaxonomies(taxonomies []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithThreadFlowLocations(threadFlowLocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithTranslations(translation []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithWebRequests(webRequests []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithWebResponses(webResponses []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
- type Fix
- func (fix *Fix) AddArtifactChanges(artifactChange *ArtifactChange)
- func (fix *Fix) WithArtifactChanges(artifactChanges []*ArtifactChange) *Fix
- func (fix *Fix) WithDescription(message *Message) *Fix
- func (fix *Fix) WithDescriptionMarkdown(markdown string) *Fix
- func (fix *Fix) WithDescriptionText(text string) *Fix
- type Graph
- func (graph *Graph) AddEdge(edge *Edge)
- func (graph *Graph) AddNode(node *Node)
- func (graph *Graph) WithDescription(message *Message) *Graph
- func (graph *Graph) WithDescriptionMarkdown(markdown string) *Graph
- func (graph *Graph) WithDescriptionText(text string) *Graph
- func (graph *Graph) WithEdges(edges []*Edge) *Graph
- func (graph *Graph) WithNodes(nodes []*Node) *Graph
- type GraphTraversal
- func (graphTraversal *GraphTraversal) AddEdge(edgeTraversal *EdgeTraversal)
- func (graphTraversal *GraphTraversal) WithDescription(message *Message) *GraphTraversal
- func (graphTraversal *GraphTraversal) WithDescriptionMarkdown(markdown string) *GraphTraversal
- func (graphTraversal *GraphTraversal) WithDescriptionText(text string) *GraphTraversal
- func (graphTraversal *GraphTraversal) WithEdgeTraversals(edgeTraversals []*EdgeTraversal) *GraphTraversal
- func (graphTraversal *GraphTraversal) WithImmutableState(immutableState map[string]*MultiformatMessageString) *GraphTraversal
- func (graphTraversal *GraphTraversal) WithInitialState(initialState map[string]*MultiformatMessageString) *GraphTraversal
- func (graphTraversal *GraphTraversal) WithResultGraphIndex(index int) *GraphTraversal
- func (graphTraversal *GraphTraversal) WithRunGraphIndex(index int) *GraphTraversal
- type Invocation
- func (invocation *Invocation) AddArgument(argument string)
- func (invocation *Invocation) AddNotificationConfigurationOverride(override *ConfigurationOverride)
- func (invocation *Invocation) AddResponseFile(responseFile *ArtifactLocation)
- func (invocation *Invocation) AddRuleConfigurationOverride(override *ConfigurationOverride)
- func (invocation *Invocation) AddTToolExecutionNotification(toolExecutionNotification *Notification)
- func (invocation *Invocation) AddToolConfigurationNotification(toolConfigNotification *Notification)
- func (invocation *Invocation) SetEnvironmentVariable(name, value string)
- func (invocation *Invocation) WithAccount(account string) *Invocation
- func (invocation *Invocation) WithArguments(arguments []string) *Invocation
- func (invocation *Invocation) WithCommanLine(commandLine string) *Invocation
- func (invocation *Invocation) WithEndTimeUTC(endTime time.Time) *Invocation
- func (invocation *Invocation) WithEnvironmentVariables(environmentVariables map[string]string) *Invocation
- func (invocation *Invocation) WithExecutableLocation(executableLocation *ArtifactLocation) *Invocation
- func (invocation *Invocation) WithExecutionSuccess(executionSuccessful bool) *Invocation
- func (invocation *Invocation) WithExitCode(exitCode int) *Invocation
- func (invocation *Invocation) WithExitCodeDescription(exitCodeDescription string) *Invocation
- func (invocation *Invocation) WithExitSignalName(exitSignalName string) *Invocation
- func (invocation *Invocation) WithExitSignalNumber(exitSignalNumber int) *Invocation
- func (invocation *Invocation) WithMachine(machine string) *Invocation
- func (invocation *Invocation) WithNotificationConfigurationOverrides(overrides []*ConfigurationOverride) *Invocation
- func (invocation *Invocation) WithProcessID(processID int) *Invocation
- func (invocation *Invocation) WithProcessStartFailureMessage(failureMessage string) *Invocation
- func (invocation *Invocation) WithResponseFiles(responseFiles []*ArtifactLocation) *Invocation
- func (invocation *Invocation) WithRuleConfigurationOverrides(overrides []*ConfigurationOverride) *Invocation
- func (invocation *Invocation) WithStartTimeUTC(startTime time.Time) *Invocation
- func (invocation *Invocation) WithStdErr(stdErr *ArtifactLocation) *Invocation
- func (invocation *Invocation) WithStdIn(stdIn *ArtifactLocation) *Invocation
- func (invocation *Invocation) WithStdout(stdOut *ArtifactLocation) *Invocation
- func (invocation *Invocation) WithStdoutStderr(stdoutStderr *ArtifactLocation) *Invocation
- func (invocation *Invocation) WithToolConfigurationNotifications(toolConfigNotifications []*Notification) *Invocation
- func (invocation *Invocation) WithToolExecutionNotifications(toolExecutionNotification []*Notification) *Invocation
- func (invocation *Invocation) WithWorkingDirectory(workingDirectory *ArtifactLocation) *Invocation
- type Location
- func (location *Location) AddAnnotation(annotation *Region)
- func (location *Location) AddLogicalLocations(logicalLocation *LogicalLocation)
- func (location *Location) AddRelationship(locationRelationship *LocationRelationship)
- func (location *Location) WithAnnotations(annotations []*Region) *Location
- func (location *Location) WithDescriptionMarkdown(markdown string) *Location
- func (location *Location) WithDescriptionText(text string) *Location
- func (location *Location) WithId(id int) *Location
- func (location *Location) WithLogicalLocations(logicalLocations []*LogicalLocation) *Location
- func (location *Location) WithMessage(message *Message) *Location
- func (location *Location) WithPhysicalLocation(physicalLocation *PhysicalLocation) *Location
- func (location *Location) WithRelationships(locationRelationships []*LocationRelationship) *Location
- type LocationRelationship
- func (locationRelationship *LocationRelationship) AddKind(kind string)
- func (locationRelationship *LocationRelationship) WithDescription(message *Message) *LocationRelationship
- func (locationRelationship *LocationRelationship) WithDescriptionMarkdown(markdown string) *LocationRelationship
- func (locationRelationship *LocationRelationship) WithDescriptionText(text string) *LocationRelationship
- func (locationRelationship *LocationRelationship) WithKinds(kinds []string) *LocationRelationship
- type LogicalLocation
- func (l *LogicalLocation) WithDecoratedName(decoratedName string) *LogicalLocation
- func (l *LogicalLocation) WithFullyQualifiedName(fullyQualifiedName string) *LogicalLocation
- func (l *LogicalLocation) WithIndex(index int) *LogicalLocation
- func (l *LogicalLocation) WithKind(kind string) *LogicalLocation
- func (l *LogicalLocation) WithName(name string) *LogicalLocation
- func (l *LogicalLocation) WithParentIndex(parentIndex int) *LogicalLocation
- type Message
- type MessageStrings
- type MultiformatMessageString
- type Node
- type Notification
- func (notification *Notification) AddLocation(location *Location)
- func (notification *Notification) WithAssociatedRule(associatedRule *ReportingDescriptorReference) *Notification
- func (notification *Notification) WithDescriptor(descriptor *ReportingDescriptorReference) *Notification
- func (notification *Notification) WithException(exception *Exception) *Notification
- func (notification *Notification) WithLevel(level string) *Notification
- func (notification *Notification) WithLocations(locations []*Location) *Notification
- func (notification *Notification) WithMessage(message *Message) *Notification
- func (notification *Notification) WithMessageMarkdown(markdown string) *Notification
- func (notification *Notification) WithTextMessage(text string) *Notification
- func (notification *Notification) WithThreadID(threadID int) *Notification
- func (notification *Notification) WithTimeUTC(timeUTC *time.Time) *Notification
- type PhysicalLocation
- func (pl *PhysicalLocation) WithAddress(address *Address) *PhysicalLocation
- func (pl *PhysicalLocation) WithArtifactLocation(artifactLocation *ArtifactLocation) *PhysicalLocation
- func (pl *PhysicalLocation) WithContextRegion(contextRegion *Region) *PhysicalLocation
- func (pl *PhysicalLocation) WithRegion(region *Region) *PhysicalLocation
- type Properties
- type PropertyBag
- func (propertyBag *PropertyBag) Add(key string, value interface{})
- func (propertyBag *PropertyBag) AddBoolean(key string, value bool)
- func (propertyBag *PropertyBag) AddInteger(key string, value int)
- func (propertyBag *PropertyBag) AddString(key, value string)
- func (propertyBag *PropertyBag) AttachPropertyBag(pb *PropertyBag)
- type Rectangle
- func (rectangle *Rectangle) WithBottom(bottom float64) *Rectangle
- func (rectangle *Rectangle) WithLeft(withLeft float64) *Rectangle
- func (rectangle *Rectangle) WithMessage(message *Message) *Rectangle
- func (rectangle *Rectangle) WithMessageMarkdown(markdown string) *Rectangle
- func (rectangle *Rectangle) WithRight(right float64) *Rectangle
- func (rectangle *Rectangle) WithTextMessage(text string) *Rectangle
- func (rectangle *Rectangle) WithTop(top float64) *Rectangle
- type Region
- func (region *Region) WithByteLength(byteLength int) *Region
- func (region *Region) WithByteOffset(byteOffset int) *Region
- func (region *Region) WithCharLength(charLength int) *Region
- func (region *Region) WithCharOffset(charOffset int) *Region
- func (region *Region) WithEndColumn(endColumn int) *Region
- func (region *Region) WithEndLine(endLine int) *Region
- func (region *Region) WithMessage(message *Message) *Region
- func (region *Region) WithMessageMarkdown(markdown string) *Region
- func (region *Region) WithSnippet(snippet *ArtifactContent) *Region
- func (region *Region) WithSourceLanguage(sourceLanguage string) *Region
- func (region *Region) WithStartColumn(startColumn int) *Region
- func (region *Region) WithStartLine(startLine int) *Region
- func (region *Region) WithTextMessage(text string) *Region
- type Replacement
- type Report
- type ReportingConfiguration
- func (reportingConfiguration *ReportingConfiguration) WithEnabled(enabled bool) *ReportingConfiguration
- func (reportingConfiguration *ReportingConfiguration) WithLevel(level string) *ReportingConfiguration
- func (reportingConfiguration *ReportingConfiguration) WithParameters(parameters *PropertyBag) *ReportingConfiguration
- func (reportingConfiguration *ReportingConfiguration) WithRank(rank float64) *ReportingConfiguration
- type ReportingDescriptor
- func (rule *ReportingDescriptor) AttachPropertyBag(pb *PropertyBag)
- func (rule *ReportingDescriptor) WithDefaultConfiguration(configuration *ReportingConfiguration) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithDescription(description string) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithFullDescription(description *MultiformatMessageString) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithHelp(help *MultiformatMessageString) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithHelpURI(helpURI string) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithMarkdownHelp(markdown string) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithName(name string) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithProperties(properties Properties) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithShortDescription(description *MultiformatMessageString) *ReportingDescriptor
- func (rule *ReportingDescriptor) WithTextHelp(text string) *ReportingDescriptor
- type ReportingDescriptorReference
- func (r *ReportingDescriptorReference) WithGuid(guid string) *ReportingDescriptorReference
- func (r *ReportingDescriptorReference) WithId(id string) *ReportingDescriptorReference
- func (r *ReportingDescriptorReference) WithIndex(index int) *ReportingDescriptorReference
- func (r *ReportingDescriptorReference) WithToolComponentReference(toolComponentRef *ToolComponentReference) *ReportingDescriptorReference
- type Result
- func (result *Result) AddAttachment(attachments *Attachment)
- func (result *Result) AddCodeFlow(codeFlow *CodeFlow)
- func (result *Result) AddFix(fix *Fix)
- func (result *Result) AddGraph(graph *Graph)
- func (result *Result) AddGraphTraversal(graphTraversal *GraphTraversal)
- func (result *Result) AddLocation(location *Location)
- func (result *Result) AddRelatedLocation(location *Location) *Result
- func (result *Result) AddStack(stack *Stack)
- func (result *Result) AddSuppression(suppression *Suppression)
- func (result *Result) AddTaxa(taxa *ReportingDescriptorReference)
- func (result *Result) AddWorkItemUri(workItemUri string)
- func (result *Result) SetFingerPrint(name string, value interface{})
- func (result *Result) SetPartialFingerPrint(name string, value interface{})
- func (result *Result) WithAnalysisTarget(target *ArtifactLocation) *Result
- func (result *Result) WithAttachments(attachments []*Attachment) *Result
- func (result *Result) WithBaselineState(state string) *Result
- func (result *Result) WithCodeFlows(codeFlows []*CodeFlow) *Result
- func (result *Result) WithCorrelationGuid(correlationGuid string) *Result
- func (result *Result) WithFingerPrints(fingerPrints map[string]interface{}) *Result
- func (result *Result) WithFix(fixes []*Fix) *Result
- func (result *Result) WithGraphTraversal(graphTraversals []*GraphTraversal) *Result
- func (result *Result) WithGraphs(graphs []*Graph) *Result
- func (result *Result) WithGuid(guid string) *Result
- func (result *Result) WithHostedViewerUri(hostedViewerUri string) *Result
- func (result *Result) WithKind(kind string) *Result
- func (result *Result) WithLevel(level string) *Result
- func (result *Result) WithLocations(locations []*Location) *Result
- func (result *Result) WithMessage(message *Message) *Result
- func (result *Result) WithOccurrenceCount(occurrenceCount int) *Result
- func (result *Result) WithPartialFingerPrints(fingerPrints map[string]interface{}) *Result
- func (result *Result) WithRank(rank float32) *Result
- func (result *Result) WithRelatedLocations(locations []*Location) *Result
- func (result *Result) WithRule(rule *ReportingDescriptorReference) *Result
- func (result *Result) WithRuleIndex(ruleIndex int) *Result
- func (result *Result) WithStack(stacks []*Stack) *Result
- func (result *Result) WithSuppression(suppressions []*Suppression) *Result
- func (result *Result) WithTaxa(taxa []*ReportingDescriptorReference) *Result
- func (result *Result) WithWorkItemUris(workItemUris []string) *Result
- type ResultProvenance
- func (resultProvenance *ResultProvenance) AddConversionSource(conversionSource *PhysicalLocation)
- func (resultProvenance *ResultProvenance) WithConversionSources(conversionSources []*PhysicalLocation) *ResultProvenance
- func (resultProvenance *ResultProvenance) WithFirstDetectionRunGUID(firstDetectionRunGUID string) *ResultProvenance
- func (resultProvenance *ResultProvenance) WithFirstDetectionTimeUTC(firstDetectionTimeUTC *time.Time) *ResultProvenance
- func (resultProvenance *ResultProvenance) WithInvocationIndex(invocationIndex int) *ResultProvenance
- func (resultProvenance *ResultProvenance) WithLastDetectionRunGUID(lastDetectionRunGUID string) *ResultProvenance
- func (resultProvenance *ResultProvenance) WithLastDetectionTimeUTC(lastDetectionTimeUTC *time.Time) *ResultProvenance
- type Run
- func (run *Run) AddArtifact() *Artifact
- func (run *Run) AddDistinctArtifact(uri string) *Artifact
- func (run *Run) AddGraph(graph *Graph)
- func (run *Run) AddILogicalLocation(logicalLocation *LogicalLocation)
- func (run *Run) AddInvocation(executionSuccessful bool) *Invocation
- func (run *Run) AddInvocations(invocation *Invocation)
- func (run *Run) AddPolicy(policy *ToolComponent)
- func (run *Run) AddResult(result *Result)
- func (run *Run) AddRule(ruleID string) *ReportingDescriptor
- func (run *Run) AddRunAggregate(runAggregate *RunAutomationDetails)
- func (run *Run) AddTaxonomy(taxonomy *ToolComponent)
- func (run *Run) AddThreadFlowLocation(threadFlowLocation *ThreadFlowLocation)
- func (run *Run) AddTranslation(translation *ToolComponent)
- func (run *Run) AddVersionControlProvenance(vcProvenance *VersionControlDetails)
- func (run *Run) AddWebRequest(webRequest *WebRequest)
- func (run *Run) AddWebResponse(webResponse *WebResponse)
- func (run *Run) CreateResultForRule(ruleID string) *Result
- func (run *Run) DedupeArtifacts() error
- func (run *Run) GetResultByRuleId(ruleId string) (*Result, error)
- func (run *Run) GetRuleById(ruleId string) (*ReportingDescriptor, error)
- func (run *Run) WithAddresses(addresses []*Address) *Run
- func (run *Run) WithArtifacts(artifacts []*Artifact) *Run
- func (run *Run) WithAutomationDetails(automationDetails *RunAutomationDetails) *Run
- func (run *Run) WithBaselineGUID(baselineGUID string) *Run
- func (run *Run) WithColumnKind(columnKind interface{}) *Run
- func (run *Run) WithConversion(conversion *Conversion) *Run
- func (run *Run) WithDefaultEncoding(defaultEncoding string) *Run
- func (run *Run) WithDefaultSourceLanguage(defaultSourceLangauge string) *Run
- func (run *Run) WithExternalPropertyFileReferences(references *ExternalPropertyFileReferences) *Run
- func (run *Run) WithGraphs(graphs []*Graph) *Run
- func (run *Run) WithInvocations(invocations []*Invocation) *Run
- func (run *Run) WithLanguage(language string) *Run
- func (run *Run) WithLogicalLocations(locations []*LogicalLocation) *Run
- func (run *Run) WithNewlineSequences(newLines []string) *Run
- func (run *Run) WithOriginalUriBaseIds(originalUriBaseIDs map[string]*ArtifactLocation) *Run
- func (run *Run) WithPolicies(policies []*ToolComponent) *Run
- func (run *Run) WithRedactionTokens(redactedTokens []string) *Run
- func (run *Run) WithResults(results []*Result) *Run
- func (run *Run) WithRunAggregates(runAggregates []*RunAutomationDetails) *Run
- func (run *Run) WithSpecialLocations(specialLocation *SpecialLocations) *Run
- func (run *Run) WithTaxonomies(taxonomies []*ToolComponent) *Run
- func (run *Run) WithThreadFlowLocations(threadFlowLocations []*ThreadFlowLocation) *Run
- func (run *Run) WithTranslations(translations []*ToolComponent) *Run
- func (run *Run) WithVersionControlProvenances(vcProvenance []*VersionControlDetails) *Run
- func (run *Run) WithWebRequests(webRequests []*WebRequest) *Run
- func (run *Run) WithWebResponses(webResponses []*WebResponse) *Run
- type RunAutomationDetails
- func (runAutomationDetails *RunAutomationDetails) WithCorrelationGUID(correlationGUID string) *RunAutomationDetails
- func (runAutomationDetails *RunAutomationDetails) WithDescription(description *Message) *RunAutomationDetails
- func (runAutomationDetails *RunAutomationDetails) WithDescriptionMarkdown(markdown string) *RunAutomationDetails
- func (runAutomationDetails *RunAutomationDetails) WithDescriptionText(text string) *RunAutomationDetails
- func (runAutomationDetails *RunAutomationDetails) WithGUID(guid string) *RunAutomationDetails
- func (runAutomationDetails *RunAutomationDetails) WithID(id string) *RunAutomationDetails
- type RunOption
- type SpecialLocations
- type Stack
- type StackFrame
- func (stackFrame *StackFrame) AddParameter(parameter string)
- func (stackFrame *StackFrame) WithLocation(location *Location) *StackFrame
- func (stackFrame *StackFrame) WithModule(module string) *StackFrame
- func (stackFrame *StackFrame) WithParameters(parameters []string) *StackFrame
- func (stackFrame *StackFrame) WithThreadID(threadID int) *StackFrame
- type Suppression
- type ThreadFlow
- func (threadFlow *ThreadFlow) AddLocation(location *ThreadFlowLocation)
- func (threadFlow *ThreadFlow) WithID(id string) *ThreadFlow
- func (threadFlow *ThreadFlow) WithImmutableState(immutableState map[string]*MultiformatMessageString) *ThreadFlow
- func (threadFlow *ThreadFlow) WithInitialState(initialState map[string]*MultiformatMessageString) *ThreadFlow
- func (threadFlow *ThreadFlow) WithLocations(locations []*ThreadFlowLocation) *ThreadFlow
- func (threadFlow *ThreadFlow) WithMessage(message *Message) *ThreadFlow
- func (threadFlow *ThreadFlow) WithMessageMarkdown(markdown string) *ThreadFlow
- func (threadFlow *ThreadFlow) WithTextMessage(text string) *ThreadFlow
- type ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) AddKind(kind string)
- func (threadFlowLocation *ThreadFlowLocation) AddTaxa(taxa *ReportingDescriptorReference)
- func (threadFlowLocation *ThreadFlowLocation) WithExecutionOrder(order int) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithExecutionTimeUTC(executionTimeUTC *time.Time) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithImportance(importance interface{}) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithIndex(index int) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithKinds(kinds []string) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithLocation(location *Location) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithModule(module string) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithNestingLevel(nestingLevel int) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithStack(stack *Stack) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithState(state map[string]*MultiformatMessageString) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithTaxa(taxa []*ReportingDescriptorReference) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithWebRequest(webRequest *WebRequest) *ThreadFlowLocation
- func (threadFlowLocation *ThreadFlowLocation) WithWebResponse(webResponse *WebResponse) *ThreadFlowLocation
- type Tool
- type ToolComponent
- func (driver *ToolComponent) AddContent(content interface{})
- func (driver *ToolComponent) AddLocation(location *ArtifactLocation)
- func (driver *ToolComponent) AddNotification(notification *ReportingDescriptor)
- func (driver *ToolComponent) AddRule(rule *ReportingDescriptor)
- func (driver *ToolComponent) AddSupportedTaxonomie(taxonomy *ToolComponentReference)
- func (driver *ToolComponent) AddTaxa(taxa *ReportingDescriptor)
- func (driver *ToolComponent) WithAssociatedComponent(associatedComponent *ToolComponentReference) *ToolComponent
- func (driver *ToolComponent) WithContents(contents []interface{}) *ToolComponent
- func (driver *ToolComponent) WithDottedQuadFileVersion(version string) *ToolComponent
- func (driver *ToolComponent) WithDownloadURI(downloadURI string) *ToolComponent
- func (driver *ToolComponent) WithFullDescription(description *MultiformatMessageString) *ToolComponent
- func (driver *ToolComponent) WithFullName(fullName string) *ToolComponent
- func (driver *ToolComponent) WithGUID(guid string) *ToolComponent
- func (driver *ToolComponent) WithGlobalMessageStrings(messageStrings map[string]*MultiformatMessageString) *ToolComponent
- func (driver *ToolComponent) WithInformationURI(informationURI string) *ToolComponent
- func (driver *ToolComponent) WithIsComprehensive(isComprehensive bool) *ToolComponent
- func (driver *ToolComponent) WithLanguage(language string) *ToolComponent
- func (driver *ToolComponent) WithLocalizedDataSemanticVersion(version string) *ToolComponent
- func (driver *ToolComponent) WithLocations(locations []*ArtifactLocation) *ToolComponent
- func (driver *ToolComponent) WithMinimumRequiredLocalizedDataSemanticVersion(version string) *ToolComponent
- func (driver *ToolComponent) WithNotifications(notifications []*ReportingDescriptor) *ToolComponent
- func (driver *ToolComponent) WithOrganization(organization string) *ToolComponent
- func (driver *ToolComponent) WithProduct(product string) *ToolComponent
- func (driver *ToolComponent) WithProductSuite(suite string) *ToolComponent
- func (driver *ToolComponent) WithReleaseDateUTC(releaseDate *time.Time) *ToolComponent
- func (driver *ToolComponent) WithRules(rules []*ReportingDescriptor) *ToolComponent
- func (driver *ToolComponent) WithSemanticVersion(version string) *ToolComponent
- func (driver *ToolComponent) WithShortDescription(description *MultiformatMessageString) *ToolComponent
- func (driver *ToolComponent) WithSupportedTaxonomies(taxonomies []*ToolComponentReference) *ToolComponent
- func (driver *ToolComponent) WithTaxa(taxa []*ReportingDescriptor) *ToolComponent
- func (driver *ToolComponent) WithTranslationMetadata(metadata *TranslationMetadata) *ToolComponent
- func (driver *ToolComponent) WithVersion(version string) *ToolComponent
- type ToolComponentReference
- type TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithDownloadURI(downloadURI string) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithFullDescription(message *MultiformatMessageString) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithFullDescriptionMarkdown(markdown string) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithFullDescriptionText(text string) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithFullName(fullname string) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithInformationURI(informationURI string) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithName(name string) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithShortDescription(message *MultiformatMessageString) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithShortDescriptionMarkdown(markdown string) *TranslationMetadata
- func (translationMetadata *TranslationMetadata) WithShortShortDescriptionText(text string) *TranslationMetadata
- type Version
- type VersionControlDetails
- func (versionControlDetails *VersionControlDetails) WithAsOfTimeUTC(asOfTimeUTC *time.Time) *VersionControlDetails
- func (versionControlDetails *VersionControlDetails) WithBranch(branch string) *VersionControlDetails
- func (versionControlDetails *VersionControlDetails) WithMappedTo(mappedTo *ArtifactLocation) *VersionControlDetails
- func (versionControlDetails *VersionControlDetails) WithRepositoryURI(repositoryURI string) *VersionControlDetails
- func (versionControlDetails *VersionControlDetails) WithRevisionID(revisionID string) *VersionControlDetails
- func (versionControlDetails *VersionControlDetails) WithRevisionTag(revisionTag string) *VersionControlDetails
- type WebRequest
- func (webRequest *WebRequest) SetHeader(name, value string)
- func (webRequest *WebRequest) SetParameter(name, value string)
- func (webRequest *WebRequest) WithBody(body *ArtifactContent) *WebRequest
- func (webRequest *WebRequest) WithHeaders(headers map[string]string) *WebRequest
- func (webRequest *WebRequest) WithIndex(index int) *WebRequest
- func (webRequest *WebRequest) WithMethod(method string) *WebRequest
- func (webRequest *WebRequest) WithParameters(parameters map[string]string) *WebRequest
- func (webRequest *WebRequest) WithProtocol(protocol string) *WebRequest
- func (webRequest *WebRequest) WithTarget(target string) *WebRequest
- func (webRequest *WebRequest) WithVersion(version string) *WebRequest
- type WebResponse
- func (webResponse *WebResponse) SetHeader(name, value string)
- func (webResponse *WebResponse) WithBody(body *ArtifactContent) *WebResponse
- func (webResponse *WebResponse) WithHeaders(headers map[string]string) *WebResponse
- func (webResponse *WebResponse) WithIndex(index int) *WebResponse
- func (webResponse *WebResponse) WithNoResponseReceived(noResponse bool) *WebResponse
- func (webResponse *WebResponse) WithProtocol(protocol string) *WebResponse
- func (webResponse *WebResponse) WithReasonPhrase(reason string) *WebResponse
- func (webResponse *WebResponse) WithStatusCode(statusCode int) *WebResponse
- func (webResponse *WebResponse) WithVersion(version string) *WebResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Index *uint `json:"index,omitempty"` AbsoluteAddress *uint `json:"absoluteAddress,omitempty"` RelativeAddress *int `json:"relativeAddress,omitempty"` OffsetFromParent *int `json:"offsetFromParent,omitempty"` Length *int `json:"length,omitempty"` Name *string `json:"name,omitempty"` FullyQualifiedName *string `json:"fullyQualifiedName,omitempty"` Kind *string `json:"kind,omitempty"` ParentIndex *uint `json:"parentIndex,omitempty"` PropertyBag }
Address ...
func NewAddress ¶
func NewAddress() *Address
NewAddress create a new Address and returns a pointer to it
func (*Address) WithAbsoluteAddress ¶
WithAbsoluteAddress sets the AbsoluteAddress
func (*Address) WithFullyQualifiedName ¶
WithFullyQualifiedName sets the FullyQualifiedName
func (*Address) WithLength ¶
WithLength sets the Length
func (*Address) WithOffsetFromParent ¶
WithOffsetFromParent sets the OffsetFromParent
func (*Address) WithParentIndex ¶
WithParentIndex sets the ParentIndex
func (*Address) WithRelativeAddress ¶
WithRelativeAddress sets the RelativeAddress
type Artifact ¶
type Artifact struct { Location *ArtifactLocation `json:"location,omitempty"` ParentIndex *uint `json:"parentIndex,omitempty"` Offset *uint `json:"offset,omitempty"` Length int `json:"length"` Roles []string `json:"roles,omitempty"` MimeType *string `json:"mimeType,omitempty"` Contents *ArtifactContent `json:"contents,omitempty"` Encoding *string `json:"encoding,omitempty"` SourceLanguage *string `json:"sourceLanguage,omitempty"` Hashes map[string]string `json:"hashes,omitempty"` LastModifiedTimeUtc *string `json:"lastModifiedTimeUtc,omitempty"` Description *Message `json:"description,omitempty"` PropertyBag }
Artifact ...
func NewArtifact ¶
func NewArtifact() *Artifact
NewArtifact creates a new Artifact and returns a pointer to it
func (*Artifact) WithContents ¶
func (artifact *Artifact) WithContents(artifactContent *ArtifactContent) *Artifact
WithContents sets the Contents
func (*Artifact) WithDescription ¶
WithDescription sets the Description
func (*Artifact) WithDescriptionMarkdown ¶
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Artifact) WithDescriptionText ¶
WithDescriptionText sets the DescriptionText
func (*Artifact) WithEncoding ¶
WithEncoding sets the Encoding
func (*Artifact) WithHashes ¶
WithHashes sets the Hashes
func (*Artifact) WithLastModifiedTimeUtc ¶
WithLastModifiedTimeUtc sets the LastModifiedTimeUtc
func (*Artifact) WithLength ¶
WithLength sets the Length
func (*Artifact) WithLocation ¶
func (artifact *Artifact) WithLocation(artifactLocation *ArtifactLocation) *Artifact
WithLocation sets the Location
func (*Artifact) WithMimeType ¶
WithMimeType sets the MimeType
func (*Artifact) WithOffset ¶
WithOffset sets the Offset
func (*Artifact) WithParentIndex ¶
WithParentIndex sets the ParentIndex
func (*Artifact) WithSourceLanguage ¶
WithSourceLanguage sets the SourceLanguage
type ArtifactChange ¶
type ArtifactChange struct { ArtifactLocation ArtifactLocation `json:"artifactLocation"` Replacements []*Replacement `json:"replacements"` PropertyBag }
ArtifactChange ...
func NewArtifactChange ¶
func NewArtifactChange(artifactLocation *ArtifactLocation) *ArtifactChange
NewArtifactChange creates a new ArtifactChange and returns a pointer to it
func (*ArtifactChange) WithReplacement ¶
func (artifactChange *ArtifactChange) WithReplacement(replacement *Replacement) *ArtifactChange
WithReplacement sets the Replacement
type ArtifactContent ¶
type ArtifactContent struct { Text *string `json:"text,omitempty"` Binary *string `json:"binary,omitempty"` Rendered *MultiformatMessageString `json:"rendered,omitempty"` PropertyBag }
ArtifactContent ...
func NewArtifactContent ¶
func NewArtifactContent() *ArtifactContent
NewArtifactContent creates a new ArtifactContent and returns a pointer to it
func (*ArtifactContent) WithBinary ¶
func (artifactContent *ArtifactContent) WithBinary(binary string) *ArtifactContent
WithBinary sets the Binary
func (*ArtifactContent) WithRendered ¶
func (artifactContent *ArtifactContent) WithRendered(mms *MultiformatMessageString) *ArtifactContent
WithRendered sets the Rendered
func (*ArtifactContent) WithText ¶
func (artifactContent *ArtifactContent) WithText(text string) *ArtifactContent
WithText sets the Text
type ArtifactLocation ¶
type ArtifactLocation struct { URI *string `json:"uri,omitempty"` URIBaseId *string `json:"uriBaseId,omitempty"` Index *uint `json:"index,omitempty"` Description *Message `json:"description,omitempty"` PropertyBag }
ArtifactLocation ...
func NewArtifactLocation ¶
func NewArtifactLocation() *ArtifactLocation
NewArtifactLocation creates a new ArtifactLocation and returns a pointer to it
func NewSimpleArtifactLocation ¶
func NewSimpleArtifactLocation(uri string) *ArtifactLocation
NewSimpleArtifactLocation creates a new SimpleArtifactLocation and returns a pointer to it
func (*ArtifactLocation) WithDescription ¶
func (artifactLocation *ArtifactLocation) WithDescription(message *Message) *ArtifactLocation
WithDescription sets the Description
func (*ArtifactLocation) WithDescriptionMarkdown ¶
func (artifactLocation *ArtifactLocation) WithDescriptionMarkdown(markdown string) *ArtifactLocation
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*ArtifactLocation) WithDescriptionText ¶
func (artifactLocation *ArtifactLocation) WithDescriptionText(text string) *ArtifactLocation
WithDescriptionText sets the DescriptionText
func (*ArtifactLocation) WithIndex ¶
func (artifactLocation *ArtifactLocation) WithIndex(index int) *ArtifactLocation
WithIndex sets the Index
func (*ArtifactLocation) WithUri ¶
func (artifactLocation *ArtifactLocation) WithUri(uri string) *ArtifactLocation
WithUri sets the Uri
func (*ArtifactLocation) WithUriBaseId ¶
func (artifactLocation *ArtifactLocation) WithUriBaseId(uriBaseId string) *ArtifactLocation
WithUriBaseId sets the UriBaseId
type Attachment ¶
type Attachment struct { ArtifactLocation *ArtifactLocation `json:"artifactLocation,omitempty"` Description *Message `json:"description,omitempty"` Rectangles []*Rectangle `json:"rectangles,omitempty"` PropertyBag }
Attachment ...
func NewAttachment ¶
func NewAttachment() *Attachment
NewAttachment creates a new Attachment and returns a pointer to it
func (*Attachment) AddRectangle ¶
func (attachment *Attachment) AddRectangle(rectangle *Rectangle)
AddRectangle ...
func (*Attachment) WithArtifactionLocation ¶
func (attachment *Attachment) WithArtifactionLocation(artifactLocation *ArtifactLocation) *Attachment
WithArtifactionLocation sets the ArtifactionLocation
func (*Attachment) WithDescription ¶
func (attachment *Attachment) WithDescription(description *Message) *Attachment
WithDescription sets the Description
func (*Attachment) WithDescriptionMarkdown ¶
func (attachment *Attachment) WithDescriptionMarkdown(markdown string) *Attachment
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Attachment) WithDescriptionText ¶
func (attachment *Attachment) WithDescriptionText(text string) *Attachment
WithDescriptionText sets the DescriptionText
func (*Attachment) WithRectangles ¶
func (attachment *Attachment) WithRectangles(rectangles []*Rectangle) *Attachment
WithRectangles sets the Rectangles
type CodeFlow ¶
type CodeFlow struct { Message *Message `json:"message,omitempty"` ThreadFlows []*ThreadFlow `json:"threadFlows,omitempty"` PropertyBag }
CodeFlow ...
func NewCodeFlow ¶
func NewCodeFlow() *CodeFlow
NewCodeFlow creates a new CodeFlow and returns a pointer to it
func (*CodeFlow) AddThreadFlow ¶
func (codeFlow *CodeFlow) AddThreadFlow(threadFlow *ThreadFlow)
AddThreadFlow ...
func (*CodeFlow) WithMessage ¶
WithMessage sets the Message
func (*CodeFlow) WithMessageMarkdown ¶
WithMessageMarkdown sets the Message markdown
func (*CodeFlow) WithTextMessage ¶
WithTextMessage sets the Message text
func (*CodeFlow) WithThreadFlows ¶
func (codeFlow *CodeFlow) WithThreadFlows(threadFlows []*ThreadFlow) *CodeFlow
WithThreadFlows sets the ThreadFlows
type ConfigurationOverride ¶
type ConfigurationOverride struct { Configuration *ReportingConfiguration `json:"configuration,omitempty"` Descriptor *ReportingDescriptorReference `json:"descriptor,omitempty"` PropertyBag }
ConfigurationOverride ...
func NewConfigurationOverride ¶
func NewConfigurationOverride() *ConfigurationOverride
NewConfigurationOverride creates a new ConfigurationOverride and returns a pointer to it
func (*ConfigurationOverride) WithConfiguration ¶
func (configurationOverride *ConfigurationOverride) WithConfiguration(configuration *ReportingConfiguration) *ConfigurationOverride
WithConfiguration sets the Configuration
func (*ConfigurationOverride) WithDescriptor ¶
func (configurationOverride *ConfigurationOverride) WithDescriptor(descriptor *ReportingDescriptorReference) *ConfigurationOverride
WithDescriptor sets the Descriptor
type Conversion ¶
type Conversion struct { AnalysisToolLogFiles []*ArtifactLocation `json:"analysisToolLogFiles,omitempty"` Invocation *Invocation `json:"invocation,omitempty"` Tool *Tool `json:"tool"` PropertyBag }
Conversion ...
func NewConversion ¶
func NewConversion() *Conversion
NewConversion creates a new Conversion and returns a pointer to it
func (*Conversion) WithInvocation ¶
func (conversion *Conversion) WithInvocation(invocation *Invocation) *Conversion
WithInvocation sets the Invocation
func (*Conversion) WithTool ¶
func (conversion *Conversion) WithTool(tool *Tool) *Conversion
WithTool sets the Tool
type Edge ¶
type Edge struct { ID string `json:"id"` Label *Message `json:"label,omitempty"` SourceNodeID string `json:"sourceNodeId"` TargetNodeID string `json:"targetNodeId"` PropertyBag }
Edge ...
func (*Edge) WithLabelMarkdown ¶
WithLabelMarkdown sets the LabelMarkdown
func (*Edge) WithLabelText ¶
WithLabelText sets the LabelText
type EdgeTraversal ¶
type EdgeTraversal struct { EdgeID string `json:"edgeId"` FinalState map[string]*MultiformatMessageString `json:"finalState,omitempty"` Message *Message `json:"message,omitempty"` StepOverEdgeCount *int `json:"stepOverEdgeCount,omitempty"` PropertyBag }
EdgeTraversal ...
func NewEdgeTraversal ¶
func NewEdgeTraversal(edgeID string) *EdgeTraversal
NewEdgeTraversal creates a new EdgeTraversal and returns a pointer to it
func (*EdgeTraversal) SetFinalState ¶
func (edgeTraversal *EdgeTraversal) SetFinalState(key string, state *MultiformatMessageString)
SetFinalState ...
func (*EdgeTraversal) WithDescription ¶
func (edgeTraversal *EdgeTraversal) WithDescription(message *Message) *EdgeTraversal
WithDescription sets the Description
func (*EdgeTraversal) WithDescriptionMarkdown ¶
func (edgeTraversal *EdgeTraversal) WithDescriptionMarkdown(markdown string) *EdgeTraversal
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*EdgeTraversal) WithDescriptionText ¶
func (edgeTraversal *EdgeTraversal) WithDescriptionText(text string) *EdgeTraversal
WithDescriptionText sets the DescriptionText
func (*EdgeTraversal) WithFinalState ¶
func (edgeTraversal *EdgeTraversal) WithFinalState(finalState map[string]*MultiformatMessageString) *EdgeTraversal
WithFinalState sets the FinalState
func (*EdgeTraversal) WithStepOverEdgeCount ¶
func (edgeTraversal *EdgeTraversal) WithStepOverEdgeCount(stepOverEdgeCount int) *EdgeTraversal
WithStepOverEdgeCount sets the StepOverEdgeCount
type Exception ¶
type Exception struct { InnerExceptions []*Exception `json:"innerExceptions,omitempty"` Kind *string `json:"kind,omitempty"` Message *string `json:"message,omitempty"` Stack *Stack `json:"stack,omitempty"` PropertyBag }
Exception ...
func NewException ¶
func NewException() *Exception
NewException creates a new Exception and returns a pointer to it
func (*Exception) AddInnerException ¶
AddInnerException ...
func (*Exception) WithInnerExceptions ¶
WithInnerExceptions sets the InnerExceptions
func (*Exception) WithMessage ¶
WithMessage sets the Message
type ExternalProperties ¶
type ExternalProperties struct { Addresses []*Address `json:"addresses,omitempty"` Artifacts []*Artifact `json:"artifacts,omitempty"` Conversion *Conversion `json:"conversion,omitempty"` Driver *ToolComponent `json:"driver,omitempty"` Extensions []*ToolComponent `json:"extensions,omitempty"` ExternalizedProperties *PropertyBag `json:"externalizedProperties,omitempty"` Graphs []*Graph `json:"graphs,omitempty"` GUID *string `json:"guid,omitempty"` Invocations []*Invocation `json:"invocations,omitempty"` LogicalLocations []*LogicalLocation `json:"logicalLocations,omitempty"` Policies []*ToolComponent `json:"policies,omitempty"` Results []*Result `json:"results,omitempty"` RunGUID *string `json:"runGuid,omitempty"` Schema *string `json:"schema,omitempty"` Taxonomies []*ToolComponent `json:"taxonomies,omitempty"` ThreadFlowLocations []*ThreadFlowLocation `json:"threadFlowLocations,omitempty"` Translations []*ToolComponent `json:"translations,omitempty"` Version string `json:"version,omitempty"` WebRequests []*WebRequest `json:"webRequests,omitempty"` WebResponses []*WebResponse `json:"webResponses,omitempty"` PropertyBag }
ExternalProperties ...
func NewExternalProperties ¶
func NewExternalProperties() *ExternalProperties
NewExternalProperties creates a new ExternalProperties and returns a pointer to it
func (*ExternalProperties) AddAddress ¶
func (externalProperties *ExternalProperties) AddAddress(address *Address)
AddAddress ...
func (*ExternalProperties) AddArtifact ¶
func (externalProperties *ExternalProperties) AddArtifact(artifact *Artifact)
AddArtifact ...
func (*ExternalProperties) AddExtension ¶
func (externalProperties *ExternalProperties) AddExtension(extension *ToolComponent)
AddExtension ...
func (*ExternalProperties) AddGraph ¶
func (externalProperties *ExternalProperties) AddGraph(graph *Graph)
AddGraph ...
func (*ExternalProperties) AddInvocation ¶
func (externalProperties *ExternalProperties) AddInvocation(invocation *Invocation)
AddInvocation ...
func (*ExternalProperties) AddLogicalLocation ¶
func (externalProperties *ExternalProperties) AddLogicalLocation(logicalLocation *LogicalLocation)
AddLogicalLocation ...
func (*ExternalProperties) AddPolicy ¶
func (externalProperties *ExternalProperties) AddPolicy(policy *ToolComponent)
AddPolicy ...
func (*ExternalProperties) AddResult ¶
func (externalProperties *ExternalProperties) AddResult(result *Result)
AddResult ...
func (*ExternalProperties) AddTaxonomie ¶
func (externalProperties *ExternalProperties) AddTaxonomie(taxonomy *ToolComponent)
AddTaxonomie ...
func (*ExternalProperties) AddThreadFlowLocations ¶
func (externalProperties *ExternalProperties) AddThreadFlowLocations(threadFlowLocation *ThreadFlowLocation)
AddThreadFlowLocations ...
func (*ExternalProperties) AddTranslation ¶
func (externalProperties *ExternalProperties) AddTranslation(translation *ToolComponent)
AddTranslation ...
func (*ExternalProperties) AddWebRequest ¶
func (externalProperties *ExternalProperties) AddWebRequest(webRequest *WebRequest)
AddWebRequest ...
func (*ExternalProperties) AddWebResponse ¶
func (externalProperties *ExternalProperties) AddWebResponse(webResponse *WebResponse)
AddWebResponse ...
func (*ExternalProperties) WithAddress ¶
func (externalProperties *ExternalProperties) WithAddress(addresses []*Address) *ExternalProperties
WithAddress sets the Address
func (*ExternalProperties) WithArtifact ¶
func (externalProperties *ExternalProperties) WithArtifact(artifacts []*Artifact) *ExternalProperties
WithArtifact sets the Artifact
func (*ExternalProperties) WithConversion ¶
func (externalProperties *ExternalProperties) WithConversion(conversion *Conversion) *ExternalProperties
WithConversion sets the Conversion
func (*ExternalProperties) WithDriver ¶
func (externalProperties *ExternalProperties) WithDriver(driver *ToolComponent) *ExternalProperties
WithDriver sets the Driver
func (*ExternalProperties) WithExtensions ¶
func (externalProperties *ExternalProperties) WithExtensions(extensions []*ToolComponent) *ExternalProperties
WithExtensions sets the Extensions
func (*ExternalProperties) WithExternalizedProperties ¶
func (externalProperties *ExternalProperties) WithExternalizedProperties(externalizedProperties *PropertyBag) *ExternalProperties
WithExternalizedProperties sets the ExternalizedProperties
func (*ExternalProperties) WithGUID ¶
func (externalProperties *ExternalProperties) WithGUID(guid string) *ExternalProperties
WithGUID sets the GUID
func (*ExternalProperties) WithGraphs ¶
func (externalProperties *ExternalProperties) WithGraphs(graphs []*Graph) *ExternalProperties
WithGraphs sets the Graphs
func (*ExternalProperties) WithInvocations ¶
func (externalProperties *ExternalProperties) WithInvocations(invocations []*Invocation) *ExternalProperties
WithInvocations sets the Invocations
func (*ExternalProperties) WithLogicalLocations ¶
func (externalProperties *ExternalProperties) WithLogicalLocations(logicalLocations []*LogicalLocation) *ExternalProperties
WithLogicalLocations sets the LogicalLocations
func (*ExternalProperties) WithPolicies ¶
func (externalProperties *ExternalProperties) WithPolicies(policies []*ToolComponent) *ExternalProperties
WithPolicies sets the Policies
func (*ExternalProperties) WithResults ¶
func (externalProperties *ExternalProperties) WithResults(results []*Result) *ExternalProperties
WithResults sets the Results
func (*ExternalProperties) WithRunGUID ¶
func (externalProperties *ExternalProperties) WithRunGUID(runGUID string) *ExternalProperties
WithRunGUID sets the RunGUID
func (*ExternalProperties) WithSchema ¶
func (externalProperties *ExternalProperties) WithSchema(schema string) *ExternalProperties
WithSchema sets the Schema
func (*ExternalProperties) WithTaxonomies ¶
func (externalProperties *ExternalProperties) WithTaxonomies(taxonomies []*ToolComponent) *ExternalProperties
WithTaxonomies sets the Taxonomies
func (*ExternalProperties) WithThreadFlowLocations ¶
func (externalProperties *ExternalProperties) WithThreadFlowLocations(threadFlowLocations []*ThreadFlowLocation) *ExternalProperties
WithThreadFlowLocations sets the ThreadFlowLocations
func (*ExternalProperties) WithTranslations ¶
func (externalProperties *ExternalProperties) WithTranslations(translation []*ToolComponent) *ExternalProperties
WithTranslations sets the Translations
func (*ExternalProperties) WithVersion ¶
func (externalProperties *ExternalProperties) WithVersion(version string) *ExternalProperties
WithVersion sets the Version
func (*ExternalProperties) WithWebRequests ¶
func (externalProperties *ExternalProperties) WithWebRequests(webRequests []*WebRequest) *ExternalProperties
WithWebRequests sets the WebRequests
func (*ExternalProperties) WithWebResponses ¶
func (externalProperties *ExternalProperties) WithWebResponses(webResponses []*WebResponse) *ExternalProperties
WithWebResponses sets the WebResponses
type ExternalPropertyFileReference ¶
type ExternalPropertyFileReference struct { GUID *string `json:"guid,omitempty"` ItemCount *int `json:"itemCount,omitempty"` Location *ArtifactLocation `json:"location,omitempty"` PropertyBag }
ExternalPropertyFileReference ...
func NewExternalPropertyFileReference ¶
func NewExternalPropertyFileReference() *ExternalPropertyFileReference
NewExternalPropertyFileReference creates a new ExternalPropertyFileReference and returns a pointer to it
func (*ExternalPropertyFileReference) WithGUID ¶
func (externalPropertyFileReferences *ExternalPropertyFileReference) WithGUID(guid string) *ExternalPropertyFileReference
WithGUID sets the GUID
func (*ExternalPropertyFileReference) WithItemCount ¶
func (externalPropertyFileReferences *ExternalPropertyFileReference) WithItemCount(itemCount int) *ExternalPropertyFileReference
WithItemCount sets the ItemCount
type ExternalPropertyFileReferences ¶
type ExternalPropertyFileReferences struct { Addresses []*ExternalPropertyFileReference `json:"addresses,omitempty"` Artifacts []*ExternalPropertyFileReference `json:"artifacts,omitempty"` Conversion *ExternalPropertyFileReference `json:"conversion,omitempty"` Driver *ExternalPropertyFileReference `json:"driver,omitempty"` Extensions []*ExternalPropertyFileReference `json:"extensions,omitempty"` ExternalizedProperties *ExternalPropertyFileReference `json:"externalizedProperties,omitempty"` Graphs []*ExternalPropertyFileReference `json:"graphs,omitempty"` Invocations []*ExternalPropertyFileReference `json:"invocations,omitempty"` LogicalLocations []*ExternalPropertyFileReference `json:"logicalLocations,omitempty"` Policies []*ExternalPropertyFileReference `json:"policies,omitempty"` Properties *PropertyBag `json:"properties,omitempty"` Results []*ExternalPropertyFileReference `json:"results,omitempty"` Taxonomies []*ExternalPropertyFileReference `json:"taxonomies,omitempty"` ThreadFlowLocations []*ExternalPropertyFileReference `json:"threadFlowLocations,omitempty"` Translations []*ExternalPropertyFileReference `json:"translations,omitempty"` WebRequests []*ExternalPropertyFileReference `json:"webRequests,omitempty"` WebResponses []*ExternalPropertyFileReference `json:"webResponses,omitempty"` PropertyBag }
ExternalPropertyFileReferences ...
func NewExternalPropertyFileReferences ¶
func NewExternalPropertyFileReferences() *ExternalPropertyFileReferences
NewExternalPropertyFileReferences creates a new ExternalPropertyFileReferences and returns a pointer to it
func (*ExternalPropertyFileReferences) AddAddress ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddAddress(address *ExternalPropertyFileReference)
AddAddress ...
func (*ExternalPropertyFileReferences) AddArtifact ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddArtifact(artifact *ExternalPropertyFileReference)
AddArtifact ...
func (*ExternalPropertyFileReferences) AddExtension ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddExtension(extension *ExternalPropertyFileReference)
AddExtension ...
func (*ExternalPropertyFileReferences) AddGraph ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddGraph(graph *ExternalPropertyFileReference)
AddGraph ...
func (*ExternalPropertyFileReferences) AddInvocation ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddInvocation(invocation *ExternalPropertyFileReference)
AddInvocation ...
func (*ExternalPropertyFileReferences) AddLogicalLocation ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddLogicalLocation(logicalLocation *ExternalPropertyFileReference)
AddLogicalLocation ...
func (*ExternalPropertyFileReferences) AddPolicy ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddPolicy(policy *ExternalPropertyFileReference)
AddPolicy ...
func (*ExternalPropertyFileReferences) AddResult ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddResult(result *ExternalPropertyFileReference)
AddResult ...
func (*ExternalPropertyFileReferences) AddTaxonomie ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddTaxonomie(taxonomy *ExternalPropertyFileReference)
AddTaxonomie ...
func (*ExternalPropertyFileReferences) AddThreadFlowLocations ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddThreadFlowLocations(threadFlowLocation *ExternalPropertyFileReference)
AddThreadFlowLocations ...
func (*ExternalPropertyFileReferences) AddTranslation ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddTranslation(translation *ExternalPropertyFileReference)
AddTranslation ...
func (*ExternalPropertyFileReferences) AddWebRequest ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddWebRequest(webRequest *ExternalPropertyFileReference)
AddWebRequest ...
func (*ExternalPropertyFileReferences) AddWebResponse ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddWebResponse(webResponse *ExternalPropertyFileReference)
AddWebResponse ...
func (*ExternalPropertyFileReferences) WithAddress ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithAddress(addresses []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithAddress sets the Address
func (*ExternalPropertyFileReferences) WithArtifact ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithArtifact(artifacts []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithArtifact sets the Artifact
func (*ExternalPropertyFileReferences) WithConversion ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithConversion(conversion *ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithConversion sets the Conversion
func (*ExternalPropertyFileReferences) WithDriver ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithDriver(driver *ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithDriver sets the Driver
func (*ExternalPropertyFileReferences) WithExtensions ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithExtensions(extensions []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithExtensions sets the Extensions
func (*ExternalPropertyFileReferences) WithExternalizedProperties ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithExternalizedProperties(externalizedProperties *ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithExternalizedProperties sets the ExternalizedProperties
func (*ExternalPropertyFileReferences) WithGraphs ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithGraphs(graphs []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithGraphs sets the Graphs
func (*ExternalPropertyFileReferences) WithInvocations ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithInvocations(invocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithInvocations sets the Invocations
func (*ExternalPropertyFileReferences) WithLogicalLocations ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithLogicalLocations(logicalLocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithLogicalLocations sets the LogicalLocations
func (*ExternalPropertyFileReferences) WithPolicies ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithPolicies(policies []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithPolicies sets the Policies
func (*ExternalPropertyFileReferences) WithResults ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithResults(results []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithResults sets the Results
func (*ExternalPropertyFileReferences) WithTaxonomies ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithTaxonomies(taxonomies []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithTaxonomies sets the Taxonomies
func (*ExternalPropertyFileReferences) WithThreadFlowLocations ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithThreadFlowLocations(threadFlowLocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithThreadFlowLocations sets the ThreadFlowLocations
func (*ExternalPropertyFileReferences) WithTranslations ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithTranslations(translation []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithTranslations sets the Translations
func (*ExternalPropertyFileReferences) WithWebRequests ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithWebRequests(webRequests []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithWebRequests sets the WebRequests
func (*ExternalPropertyFileReferences) WithWebResponses ¶
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithWebResponses(webResponses []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithWebResponses sets the WebResponses
type Fix ¶
type Fix struct { Description *Message `json:"description,omitempty"` ArtifactChanges []*ArtifactChange `json:"artifactChanges"` PropertyBag }
Fix ...
func (*Fix) AddArtifactChanges ¶
func (fix *Fix) AddArtifactChanges(artifactChange *ArtifactChange)
AddArtifactChanges ...
func (*Fix) WithArtifactChanges ¶
func (fix *Fix) WithArtifactChanges(artifactChanges []*ArtifactChange) *Fix
WithArtifactChanges sets the ArtifactChanges
func (*Fix) WithDescription ¶
WithDescription sets the Description
func (*Fix) WithDescriptionMarkdown ¶
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Fix) WithDescriptionText ¶
WithDescriptionText sets the DescriptionText
type Graph ¶
type Graph struct { Description *Message `json:"description,omitempty"` Edges []*Edge `json:"edges,omitempty"` Nodes []*Node `json:"nodes,omitempty"` PropertyBag }
Graph ...
func (*Graph) WithDescription ¶
WithDescription sets the Description
func (*Graph) WithDescriptionMarkdown ¶
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Graph) WithDescriptionText ¶
WithDescriptionText sets the DescriptionText
type GraphTraversal ¶
type GraphTraversal struct { Description *Message `json:"description,omitempty"` EdgeTraversals []*EdgeTraversal `json:"edgeTraversals,omitempty"` ImmutableState map[string]*MultiformatMessageString `json:"immutableState,omitempty"` InitialState map[string]*MultiformatMessageString `json:"initialState,omitempty"` ResultGraphIndex *int `json:"resultGraphIndex,omitempty"` RunGraphIndex *int `json:"runGraphIndex,omitempty"` PropertyBag }
GraphTraversal ...
func NewGraphTraversal ¶
func NewGraphTraversal() *GraphTraversal
NewGraphTraversal creates a new GraphTraversal and returns a pointer to it
func (*GraphTraversal) AddEdge ¶
func (graphTraversal *GraphTraversal) AddEdge(edgeTraversal *EdgeTraversal)
AddEdge ...
func (*GraphTraversal) WithDescription ¶
func (graphTraversal *GraphTraversal) WithDescription(message *Message) *GraphTraversal
WithDescription sets the Description
func (*GraphTraversal) WithDescriptionMarkdown ¶
func (graphTraversal *GraphTraversal) WithDescriptionMarkdown(markdown string) *GraphTraversal
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*GraphTraversal) WithDescriptionText ¶
func (graphTraversal *GraphTraversal) WithDescriptionText(text string) *GraphTraversal
WithDescriptionText sets the DescriptionText
func (*GraphTraversal) WithEdgeTraversals ¶
func (graphTraversal *GraphTraversal) WithEdgeTraversals(edgeTraversals []*EdgeTraversal) *GraphTraversal
WithEdgeTraversals sets the EdgeTraversals
func (*GraphTraversal) WithImmutableState ¶
func (graphTraversal *GraphTraversal) WithImmutableState(immutableState map[string]*MultiformatMessageString) *GraphTraversal
WithImmutableState sets the ImmutableState
func (*GraphTraversal) WithInitialState ¶
func (graphTraversal *GraphTraversal) WithInitialState(initialState map[string]*MultiformatMessageString) *GraphTraversal
WithInitialState sets the InitialState
func (*GraphTraversal) WithResultGraphIndex ¶
func (graphTraversal *GraphTraversal) WithResultGraphIndex(index int) *GraphTraversal
WithResultGraphIndex sets the ResultGraphIndex
func (*GraphTraversal) WithRunGraphIndex ¶
func (graphTraversal *GraphTraversal) WithRunGraphIndex(index int) *GraphTraversal
WithRunGraphIndex sets the RunGraphIndex
type Invocation ¶
type Invocation struct { Account *string `json:"account,omitempty"` Arguments []string `json:"arguments,omitempty"` CommandLine *string `json:"commandLine,omitempty"` EndTimeUTC *time.Time `json:"endTimeUtc,omitempty"` EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"` ExecutableLocation *ArtifactLocation `json:"executableLocation,omitempty"` ExecutionSuccessful *bool `json:"executionSuccessful"` ExitCode *int `json:"exitCode,omitempty"` ExitCodeDescription *string `json:"exitCodeDescription,omitempty"` ExitSignalName *string `json:"exitSignalName,omitempty"` ExitSignalNumber *int `json:"exitSignalNumber,omitempty"` Machine *string `json:"machine,omitempty"` NotificationConfigurationOverrides []*ConfigurationOverride `json:"notificationConfigurationOverrides,omitempty"` ProcessID *int `json:"processId,omitempty"` ProcessStartFailureMessage *string `json:"processStartFailureMessage,omitempty"` ResponseFiles []*ArtifactLocation `json:"responseFiles,omitempty"` RuleConfigurationOverrides []*ConfigurationOverride `json:"ruleConfigurationOverrides,omitempty"` StartTimeUTC *time.Time `json:"startTimeUtc,omitempty"` Stderr *ArtifactLocation `json:"stderr,omitempty"` Stdin *ArtifactLocation `json:"stdin,omitempty"` Stdout *ArtifactLocation `json:"stdout,omitempty"` StdoutStderr *ArtifactLocation `json:"stdoutStderr,omitempty"` ToolConfigurationNotifications []*Notification `json:"toolConfigurationNotifications,omitempty"` ToolExecutionNotifications []*Notification `json:"toolExecutionNotifications,omitempty"` WorkingDirectory *ArtifactLocation `json:"workingDirectory,omitempty"` PropertyBag }
Invocation describes the runtime environment of the analysis tool run.
func NewInvocation ¶
func NewInvocation() *Invocation
NewInvocation creates a new Invocation and returns a pointer to it
func (*Invocation) AddArgument ¶
func (invocation *Invocation) AddArgument(argument string)
AddArgument ...
func (*Invocation) AddNotificationConfigurationOverride ¶
func (invocation *Invocation) AddNotificationConfigurationOverride(override *ConfigurationOverride)
AddNotificationConfigurationOverride ...
func (*Invocation) AddResponseFile ¶
func (invocation *Invocation) AddResponseFile(responseFile *ArtifactLocation)
AddResponseFile ...
func (*Invocation) AddRuleConfigurationOverride ¶
func (invocation *Invocation) AddRuleConfigurationOverride(override *ConfigurationOverride)
AddRuleConfigurationOverride ...
func (*Invocation) AddTToolExecutionNotification ¶
func (invocation *Invocation) AddTToolExecutionNotification(toolExecutionNotification *Notification)
AddTToolExecutionNotification ...
func (*Invocation) AddToolConfigurationNotification ¶
func (invocation *Invocation) AddToolConfigurationNotification(toolConfigNotification *Notification)
AddToolConfigurationNotification ...
func (*Invocation) SetEnvironmentVariable ¶
func (invocation *Invocation) SetEnvironmentVariable(name, value string)
SetEnvironmentVariable ...
func (*Invocation) WithAccount ¶
func (invocation *Invocation) WithAccount(account string) *Invocation
WithAccount sets the Account
func (*Invocation) WithArguments ¶
func (invocation *Invocation) WithArguments(arguments []string) *Invocation
WithArguments sets the Arguments
func (*Invocation) WithCommanLine ¶
func (invocation *Invocation) WithCommanLine(commandLine string) *Invocation
WithCommanLine sets the CommanLine
func (*Invocation) WithEndTimeUTC ¶
func (invocation *Invocation) WithEndTimeUTC(endTime time.Time) *Invocation
WithEndTimeUTC sets the instant when the invocation ended and returns the same Invocation.
func (*Invocation) WithEnvironmentVariables ¶
func (invocation *Invocation) WithEnvironmentVariables(environmentVariables map[string]string) *Invocation
WithEnvironmentVariables sets the EnvironmentVariables
func (*Invocation) WithExecutableLocation ¶
func (invocation *Invocation) WithExecutableLocation(executableLocation *ArtifactLocation) *Invocation
WithExecutableLocation sets the ExecutableLocation
func (*Invocation) WithExecutionSuccess ¶
func (invocation *Invocation) WithExecutionSuccess(executionSuccessful bool) *Invocation
WithExecutionSuccess sets the ExecutionSuccess
func (*Invocation) WithExitCode ¶
func (invocation *Invocation) WithExitCode(exitCode int) *Invocation
WithExitCode sets the ExitCode
func (*Invocation) WithExitCodeDescription ¶
func (invocation *Invocation) WithExitCodeDescription(exitCodeDescription string) *Invocation
WithExitCodeDescription sets the ExitCodeDescription
func (*Invocation) WithExitSignalName ¶
func (invocation *Invocation) WithExitSignalName(exitSignalName string) *Invocation
WithExitSignalName sets the ExitSignalName
func (*Invocation) WithExitSignalNumber ¶
func (invocation *Invocation) WithExitSignalNumber(exitSignalNumber int) *Invocation
WithExitSignalNumber sets the ExitSignalNumber
func (*Invocation) WithMachine ¶
func (invocation *Invocation) WithMachine(machine string) *Invocation
WithMachine sets the Machine
func (*Invocation) WithNotificationConfigurationOverrides ¶
func (invocation *Invocation) WithNotificationConfigurationOverrides(overrides []*ConfigurationOverride) *Invocation
WithNotificationConfigurationOverrides sets the NotificationConfigurationOverrides
func (*Invocation) WithProcessID ¶
func (invocation *Invocation) WithProcessID(processID int) *Invocation
WithProcessID sets the ProcessID
func (*Invocation) WithProcessStartFailureMessage ¶
func (invocation *Invocation) WithProcessStartFailureMessage(failureMessage string) *Invocation
WithProcessStartFailureMessage sets the ProcessStartFailureMessage
func (*Invocation) WithResponseFiles ¶
func (invocation *Invocation) WithResponseFiles(responseFiles []*ArtifactLocation) *Invocation
WithResponseFiles sets the ResponseFiles
func (*Invocation) WithRuleConfigurationOverrides ¶
func (invocation *Invocation) WithRuleConfigurationOverrides(overrides []*ConfigurationOverride) *Invocation
WithRuleConfigurationOverrides sets the RuleConfigurationOverrides
func (*Invocation) WithStartTimeUTC ¶
func (invocation *Invocation) WithStartTimeUTC(startTime time.Time) *Invocation
WithStartTimeUTC sets the instant when the invocation started and returns the same Invocation.
func (*Invocation) WithStdErr ¶
func (invocation *Invocation) WithStdErr(stdErr *ArtifactLocation) *Invocation
WithStdErr sets the StdErr
func (*Invocation) WithStdIn ¶
func (invocation *Invocation) WithStdIn(stdIn *ArtifactLocation) *Invocation
WithStdIn sets the StdIn
func (*Invocation) WithStdout ¶
func (invocation *Invocation) WithStdout(stdOut *ArtifactLocation) *Invocation
WithStdout sets the Stdout
func (*Invocation) WithStdoutStderr ¶
func (invocation *Invocation) WithStdoutStderr(stdoutStderr *ArtifactLocation) *Invocation
WithStdoutStderr sets the StdoutStderr
func (*Invocation) WithToolConfigurationNotifications ¶
func (invocation *Invocation) WithToolConfigurationNotifications(toolConfigNotifications []*Notification) *Invocation
WithToolConfigurationNotifications sets the ToolConfigurationNotifications
func (*Invocation) WithToolExecutionNotifications ¶
func (invocation *Invocation) WithToolExecutionNotifications(toolExecutionNotification []*Notification) *Invocation
WithToolExecutionNotifications sets the ToolExecutionNotifications
func (*Invocation) WithWorkingDirectory ¶
func (invocation *Invocation) WithWorkingDirectory(workingDirectory *ArtifactLocation) *Invocation
WithWorkingDirectory sets the current working directory of the invocation and returns the same Invocation.
type Location ¶
type Location struct { Id *uint `json:"id,omitempty"` PhysicalLocation *PhysicalLocation `json:"physicalLocation,omitempty"` LogicalLocations []*LogicalLocation `json:"logicalLocations,omitempty"` Message *Message `json:"message,omitempty"` Annotations []*Region `json:"annotations,omitempty"` Relationships []*LocationRelationship `json:"relationships,omitempty"` PropertyBag }
Location ...
func NewLocation ¶
func NewLocation() *Location
NewLocation creates a new Location and returns a pointer to it
func NewLocationWithPhysicalLocation ¶
func NewLocationWithPhysicalLocation(physicalLocation *PhysicalLocation) *Location
NewLocationWithPhysicalLocation creates a new LocationWithPhysicalLocation and returns a pointer to it
func (*Location) AddAnnotation ¶
AddAnnotation ...
func (*Location) AddLogicalLocations ¶
func (location *Location) AddLogicalLocations(logicalLocation *LogicalLocation)
AddLogicalLocations ...
func (*Location) AddRelationship ¶
func (location *Location) AddRelationship(locationRelationship *LocationRelationship)
AddRelationship ...
func (*Location) WithAnnotations ¶
WithAnnotations sets the Annotations
func (*Location) WithDescriptionMarkdown ¶
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Location) WithDescriptionText ¶
WithDescriptionText sets the DescriptionText
func (*Location) WithLogicalLocations ¶
func (location *Location) WithLogicalLocations(logicalLocations []*LogicalLocation) *Location
WithLogicalLocations sets the LogicalLocations
func (*Location) WithMessage ¶
WithMessage sets the Message
func (*Location) WithPhysicalLocation ¶
func (location *Location) WithPhysicalLocation(physicalLocation *PhysicalLocation) *Location
WithPhysicalLocation sets the PhysicalLocation
func (*Location) WithRelationships ¶
func (location *Location) WithRelationships(locationRelationships []*LocationRelationship) *Location
WithRelationships sets the Relationships
type LocationRelationship ¶
type LocationRelationship struct { Target uint `json:"target"` Kinds []string `json:"kinds,omitempty"` Description *Message `json:"description,omitempty"` PropertyBag }
LocationRelationship ...
func NewLocationRelationship ¶
func NewLocationRelationship(target int) *LocationRelationship
NewLocationRelationship creates a new LocationRelationship and returns a pointer to it
func (*LocationRelationship) AddKind ¶
func (locationRelationship *LocationRelationship) AddKind(kind string)
AddKind ...
func (*LocationRelationship) WithDescription ¶
func (locationRelationship *LocationRelationship) WithDescription(message *Message) *LocationRelationship
WithDescription sets the Description
func (*LocationRelationship) WithDescriptionMarkdown ¶
func (locationRelationship *LocationRelationship) WithDescriptionMarkdown(markdown string) *LocationRelationship
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*LocationRelationship) WithDescriptionText ¶
func (locationRelationship *LocationRelationship) WithDescriptionText(text string) *LocationRelationship
WithDescriptionText sets the DescriptionText
func (*LocationRelationship) WithKinds ¶
func (locationRelationship *LocationRelationship) WithKinds(kinds []string) *LocationRelationship
WithKinds sets the Kinds
type LogicalLocation ¶
type LogicalLocation struct { Index *uint `json:"index,omitempty"` Name *string `json:"name,omitempty"` FullyQualifiedName *string `json:"fullyQualifiedName,omitempty"` DecoratedName *string `json:"decoratedName,omitempty"` Kind *string `json:"kind,omitempty"` ParentIndex *uint `json:"parentIndex,omitempty"` PropertyBag }
LogicalLocation ...
func NewLogicalLocation ¶
func NewLogicalLocation() *LogicalLocation
NewLogicalLocation creates a new LogicalLocation and returns a pointer to it
func (*LogicalLocation) WithDecoratedName ¶
func (l *LogicalLocation) WithDecoratedName(decoratedName string) *LogicalLocation
WithDecoratedName sets the DecoratedName
func (*LogicalLocation) WithFullyQualifiedName ¶
func (l *LogicalLocation) WithFullyQualifiedName(fullyQualifiedName string) *LogicalLocation
WithFullyQualifiedName sets the FullyQualifiedName
func (*LogicalLocation) WithIndex ¶
func (l *LogicalLocation) WithIndex(index int) *LogicalLocation
WithIndex sets the Index
func (*LogicalLocation) WithKind ¶
func (l *LogicalLocation) WithKind(kind string) *LogicalLocation
WithKind sets the Kind
func (*LogicalLocation) WithName ¶
func (l *LogicalLocation) WithName(name string) *LogicalLocation
WithName sets the Name
func (*LogicalLocation) WithParentIndex ¶
func (l *LogicalLocation) WithParentIndex(parentIndex int) *LogicalLocation
WithParentIndex sets the ParentIndex
type Message ¶
type Message struct { Text *string `json:"text,omitempty"` Markdown *string `json:"markdown,omitempty"` ID *string `json:"id,omitempty"` Arguments []string `json:"arguments,omitempty"` PropertyBag }
Message ...
func NewMarkdownMessage ¶
NewMarkdownMessage creates a new MarkdownMessage and returns a pointer to it
func NewMessage ¶
func NewMessage() *Message
NewMessage creates a new Message and returns a pointer to it
func NewTextMessage ¶
NewTextMessage creates a new TextMessage and returns a pointer to it
func (*Message) WithArguments ¶
WithArguments sets the Arguments
func (*Message) WithMarkdown ¶
WithMarkdown sets the Markdown
type MessageStrings ¶
type MessageStrings map[string]MultiformatMessageString
type MultiformatMessageString ¶
type MultiformatMessageString struct { Text *string `json:"text,omitempty"` Markdown *string `json:"markdown,omitempty"` PropertyBag }
MultiformatMessageString ...
func NewMarkdownMultiformatMessageString ¶
func NewMarkdownMultiformatMessageString(markdown string) *MultiformatMessageString
NewMarkdownMultiformatMessageString creates a new MarkdownMultiformatMessageString and returns a pointer to it
func NewMultiformatMessageString ¶
func NewMultiformatMessageString(text string) *MultiformatMessageString
NewMultiformatMessageString creates a new MultiformatMessageString and returns a pointer to it
func (*MultiformatMessageString) WithMarkdown ¶
func (multiFormatMessageString *MultiformatMessageString) WithMarkdown(markdown string) *MultiformatMessageString
WithMarkdown sets the Markdown
func (*MultiformatMessageString) WithText ¶
func (multiFormatMessageString *MultiformatMessageString) WithText(text string) *MultiformatMessageString
WithText sets the Text
type Node ¶
type Node struct { Children []*Node `json:"children,omitempty"` ID string `json:"id"` Label *Message `json:"label,omitempty"` Location *Location `json:"location,omitempty"` PropertyBag }
Node ...
func (*Node) WithChildren ¶
WithChildren sets the Children
func (*Node) WithLabelMarkdown ¶
WithLabelMarkdown sets the LabelMarkdown
func (*Node) WithLabelText ¶
WithLabelText sets the LabelText
type Notification ¶
type Notification struct { AssociatedRule *ReportingDescriptorReference `json:"associatedRule,omitempty"` Descriptor *ReportingDescriptorReference `json:"descriptor,omitempty"` Exception *Exception `json:"exception,omitempty"` Level string `json:"level,omitempty"` Locations []*Location `json:"locations,omitempty"` Message *Message `json:"message"` ThreadID *int `json:"threadId,omitempty"` TimeUTC *time.Time `json:"timeUtc,omitempty"` PropertyBag }
Notification ...
func NewNotification ¶
func NewNotification() *Notification
NewNotification creates a new Notification and returns a pointer to it
func (*Notification) AddLocation ¶
func (notification *Notification) AddLocation(location *Location)
AddLocation ...
func (*Notification) WithAssociatedRule ¶
func (notification *Notification) WithAssociatedRule(associatedRule *ReportingDescriptorReference) *Notification
WithAssociatedRule sets the AssociatedRule
func (*Notification) WithDescriptor ¶
func (notification *Notification) WithDescriptor(descriptor *ReportingDescriptorReference) *Notification
WithDescriptor sets the Descriptor
func (*Notification) WithException ¶
func (notification *Notification) WithException(exception *Exception) *Notification
WithException sets the Exception
func (*Notification) WithLevel ¶
func (notification *Notification) WithLevel(level string) *Notification
WithLevel sets the Level
func (*Notification) WithLocations ¶
func (notification *Notification) WithLocations(locations []*Location) *Notification
WithLocations sets the Locations
func (*Notification) WithMessage ¶
func (notification *Notification) WithMessage(message *Message) *Notification
WithMessage sets the Message
func (*Notification) WithMessageMarkdown ¶
func (notification *Notification) WithMessageMarkdown(markdown string) *Notification
WithMessageMarkdown sets the Message markdown
func (*Notification) WithTextMessage ¶
func (notification *Notification) WithTextMessage(text string) *Notification
WithTextMessage sets the Message text
func (*Notification) WithThreadID ¶
func (notification *Notification) WithThreadID(threadID int) *Notification
WithThreadID sets the ThreadID
func (*Notification) WithTimeUTC ¶
func (notification *Notification) WithTimeUTC(timeUTC *time.Time) *Notification
WithTimeUTC sets the TimeUTC
type PhysicalLocation ¶
type PhysicalLocation struct { ArtifactLocation *ArtifactLocation `json:"artifactLocation,omitempty"` Region *Region `json:"region,omitempty"` ContextRegion *Region `json:"contextRegion,omitempty"` Address *Address `json:"address,omitempty"` PropertyBag }
PhysicalLocation ...
func NewPhysicalLocation ¶
func NewPhysicalLocation() *PhysicalLocation
NewPhysicalLocation creates a new PhysicalLocation and returns a pointer to it
func (*PhysicalLocation) WithAddress ¶
func (pl *PhysicalLocation) WithAddress(address *Address) *PhysicalLocation
WithAddress sets the Address
func (*PhysicalLocation) WithArtifactLocation ¶
func (pl *PhysicalLocation) WithArtifactLocation(artifactLocation *ArtifactLocation) *PhysicalLocation
WithArtifactLocation sets the ArtifactLocation
func (*PhysicalLocation) WithContextRegion ¶
func (pl *PhysicalLocation) WithContextRegion(contextRegion *Region) *PhysicalLocation
WithContextRegion sets the ContextRegion
func (*PhysicalLocation) WithRegion ¶
func (pl *PhysicalLocation) WithRegion(region *Region) *PhysicalLocation
WithRegion sets the Region
type PropertyBag ¶
type PropertyBag struct {
Properties Properties `json:"properties,omitempty"`
}
PropertyBag ...
func NewPropertyBag ¶
func NewPropertyBag() *PropertyBag
NewPropertyBag creates a new PropertyBag and returns a pointer to it
func (*PropertyBag) Add ¶
func (propertyBag *PropertyBag) Add(key string, value interface{})
Add ...
func (*PropertyBag) AddBoolean ¶
func (propertyBag *PropertyBag) AddBoolean(key string, value bool)
AddBoolean ...
func (*PropertyBag) AddInteger ¶
func (propertyBag *PropertyBag) AddInteger(key string, value int)
AddInteger ...
func (*PropertyBag) AddString ¶
func (propertyBag *PropertyBag) AddString(key, value string)
AddString ...
func (*PropertyBag) AttachPropertyBag ¶
func (propertyBag *PropertyBag) AttachPropertyBag(pb *PropertyBag)
AttachPropertyBag adds a property bag to a rule
type Rectangle ¶
type Rectangle struct { Bottom *float64 `json:"bottom,omitempty"` Left *float64 `json:"left,omitempty"` Right *float64 `json:"right,omitempty"` Top *float64 `json:"top,omitempty"` Message *Message `json:"message,omitempty"` PropertyBag }
Rectangle ...
func NewRectangle ¶
func NewRectangle() *Rectangle
NewRectangle creates a new Rectangle and returns a pointer to it
func (*Rectangle) WithBottom ¶
WithBottom sets the Bottom
func (*Rectangle) WithMessage ¶
WithMessage sets the Message
func (*Rectangle) WithMessageMarkdown ¶
WithMessageMarkdown sets the Message markdown
func (*Rectangle) WithTextMessage ¶
WithTextMessage sets the Message text
type Region ¶
type Region struct { StartLine *int `json:"startLine,omitempty"` StartColumn *int `json:"startColumn,omitempty"` EndLine *int `json:"endLine,omitempty"` EndColumn *int `json:"endColumn,omitempty"` CharOffset *int `json:"charOffset,omitempty"` CharLength *int `json:"charLength,omitempty"` ByteOffset *int `json:"byteOffset,omitempty"` ByteLength *int `json:"byteLength,omitempty"` Snippet *ArtifactContent `json:"snippet,omitempty"` Message *Message `json:"message,omitempty"` SourceLanguage *string `json:"sourceLanguage,omitempty"` PropertyBag }
Region ...
func NewRegion ¶
func NewRegion() *Region
NewRegion creates a new Region and returns a pointer to it
func NewSimpleRegion ¶
NewSimpleRegion creates a new SimpleRegion and returns a pointer to it
func (*Region) WithByteLength ¶
WithByteLength sets the ByteLength
func (*Region) WithByteOffset ¶
WithByteOffset sets the ByteOffset
func (*Region) WithCharLength ¶
WithCharLength sets the CharLength
func (*Region) WithCharOffset ¶
WithCharOffset sets the CharOffset
func (*Region) WithEndColumn ¶
WithEndColumn sets the EndColumn
func (*Region) WithEndLine ¶
WithEndLine sets the EndLine
func (*Region) WithMessage ¶
WithMessage sets the Message
func (*Region) WithMessageMarkdown ¶
WithMessageMarkdown sets the Message markdown
func (*Region) WithSnippet ¶
func (region *Region) WithSnippet(snippet *ArtifactContent) *Region
WithSnippet sets the Snippet
func (*Region) WithSourceLanguage ¶
WithSourceLanguage sets the SourceLanguage
func (*Region) WithStartColumn ¶
WithStartColumn sets the StartColumn
func (*Region) WithStartLine ¶
WithStartLine sets the StartLine
func (*Region) WithTextMessage ¶
WithTextMessage sets the Message text
type Replacement ¶
type Replacement struct { DeletedRegion Region `json:"deletedRegion"` InsertedContent *ArtifactContent `json:"insertedContent,omitempty"` PropertyBag }
Replacement ...
func NewReplacement ¶
func NewReplacement(region *Region) *Replacement
NewReplacement creates a new Replacement and returns a pointer to it
func (*Replacement) WithInsertedContent ¶
func (r *Replacement) WithInsertedContent(artifactContent *ArtifactContent) *Replacement
WithInsertedContent sets the InsertedContent
type Report ¶
type Report struct { PropertyBag InlineExternalProperties []*ExternalProperties `json:"inlineExternalProperties,omitempty"` Version string `json:"version"` Schema string `json:"$schema,omitempty"` Runs []*Run `json:"runs"` }
Report is the encapsulating type representing a Sarif Report
func FromString ¶
FromString loads a Report from string content
func (*Report) PrettyWrite ¶
PrettyWrite writes the JSON output with indentation
type ReportingConfiguration ¶
type ReportingConfiguration struct { Enabled *bool `json:"enabled,omitempty"` Level string `json:"level,omitempty"` Parameters *PropertyBag `json:"parameters,omitempty"` Rank *float64 `json:"rank,omitempty"` PropertyBag }
ReportingConfiguration ...
func NewReportingConfiguration ¶
func NewReportingConfiguration() *ReportingConfiguration
NewReportingConfiguration creates a new ReportingConfiguration and returns a pointer to it
func (*ReportingConfiguration) WithEnabled ¶
func (reportingConfiguration *ReportingConfiguration) WithEnabled(enabled bool) *ReportingConfiguration
WithEnabled sets the Enabled
func (*ReportingConfiguration) WithLevel ¶
func (reportingConfiguration *ReportingConfiguration) WithLevel(level string) *ReportingConfiguration
WithLevel sets the Level
func (*ReportingConfiguration) WithParameters ¶
func (reportingConfiguration *ReportingConfiguration) WithParameters(parameters *PropertyBag) *ReportingConfiguration
WithParameters sets the Parameters
func (*ReportingConfiguration) WithRank ¶
func (reportingConfiguration *ReportingConfiguration) WithRank(rank float64) *ReportingConfiguration
WithRank sets the Rank
type ReportingDescriptor ¶
type ReportingDescriptor struct { PropertyBag ID string `json:"id"` Name *string `json:"name,omitempty"` ShortDescription *MultiformatMessageString `json:"shortDescription"` FullDescription *MultiformatMessageString `json:"fullDescription,omitempty"` DefaultConfiguration *ReportingConfiguration `json:"defaultConfiguration,omitempty"` DeprecatedIds []string `json:"deprecatedIds,omitempty"` DeprecatedGuids []string `json:"deprecatedGuids,omitempty"` DeprecatedNames []string `json:"deprecatedNames,omitempty"` HelpURI *string `json:"helpUri,omitempty"` Help *MultiformatMessageString `json:"help,omitempty"` MessageStrings *MessageStrings `json:"messageStrings,omitempty"` Properties Properties `json:"properties,omitempty"` }
ReportingDescriptor specifies a Sarif ReportingDescriptor object
func NewRule ¶
func NewRule(ruleID string) *ReportingDescriptor
NewRule creates a new Rule and returns a pointer to it
func (*ReportingDescriptor) AttachPropertyBag ¶
func (rule *ReportingDescriptor) AttachPropertyBag(pb *PropertyBag)
AttachPropertyBag adds a property bag to a rule
func (*ReportingDescriptor) WithDefaultConfiguration ¶
func (rule *ReportingDescriptor) WithDefaultConfiguration(configuration *ReportingConfiguration) *ReportingDescriptor
WithDefaultConfiguration adds the default configuration to the rule
func (*ReportingDescriptor) WithDescription ¶
func (rule *ReportingDescriptor) WithDescription(description string) *ReportingDescriptor
WithDescription specifies short description for a rule and returns the updated rule. Short description should be a single sentence that is understandable when visible space is limited to a single line of text.
func (*ReportingDescriptor) WithFullDescription ¶
func (rule *ReportingDescriptor) WithFullDescription(description *MultiformatMessageString) *ReportingDescriptor
WithFullDescription specifies full description for a rule and returns the updated rule. Full description should, as far as possible, provide details sufficient to enable resolution of any problem indicated by the result.
func (*ReportingDescriptor) WithHelp ¶
func (rule *ReportingDescriptor) WithHelp(help *MultiformatMessageString) *ReportingDescriptor
WithHelp sets the rule Help to the provided multiformat message
func (*ReportingDescriptor) WithHelpURI ¶
func (rule *ReportingDescriptor) WithHelpURI(helpURI string) *ReportingDescriptor
WithHelpURI specifies a helpURI for a rule and returns the updated rule
func (*ReportingDescriptor) WithMarkdownHelp ¶
func (rule *ReportingDescriptor) WithMarkdownHelp(markdown string) *ReportingDescriptor
WithMarkdownHelp specifies a help text for a rule and returns the updated rule
func (*ReportingDescriptor) WithName ¶
func (rule *ReportingDescriptor) WithName(name string) *ReportingDescriptor
WithName specifies rule name that is understandable to an end user and returns the updated rule.
func (*ReportingDescriptor) WithProperties ¶
func (rule *ReportingDescriptor) WithProperties(properties Properties) *ReportingDescriptor
WithProperties specifies properties for a rule and returns the updated rule
func (*ReportingDescriptor) WithShortDescription ¶
func (rule *ReportingDescriptor) WithShortDescription(description *MultiformatMessageString) *ReportingDescriptor
WithShortDescription specifies short description for a rule and returns the updated rule. Short description should be a single sentence that is understandable when visible space is limited to a single line of text.
func (*ReportingDescriptor) WithTextHelp ¶
func (rule *ReportingDescriptor) WithTextHelp(text string) *ReportingDescriptor
WithTextHelp specifies a help text for a rule and returns the updated rule
type ReportingDescriptorReference ¶
type ReportingDescriptorReference struct { PropertyBag Id *string `json:"id,omitempty"` Index *uint `json:"index,omitempty"` Guid *string `json:"guid,omitempty"` ToolComponent *ToolComponentReference `json:"toolComponent,omitempty"` }
ReportingDescriptorReference ...
func NewReportingDescriptorReference ¶
func NewReportingDescriptorReference() *ReportingDescriptorReference
NewReportingDescriptorReference creates a new ReportingDescriptorReference and returns a pointer to it
func (*ReportingDescriptorReference) WithGuid ¶
func (r *ReportingDescriptorReference) WithGuid(guid string) *ReportingDescriptorReference
WithGuid sets the Guid
func (*ReportingDescriptorReference) WithId ¶
func (r *ReportingDescriptorReference) WithId(id string) *ReportingDescriptorReference
WithId sets the Id
func (*ReportingDescriptorReference) WithIndex ¶
func (r *ReportingDescriptorReference) WithIndex(index int) *ReportingDescriptorReference
WithIndex sets the Index
func (*ReportingDescriptorReference) WithToolComponentReference ¶
func (r *ReportingDescriptorReference) WithToolComponentReference(toolComponentRef *ToolComponentReference) *ReportingDescriptorReference
WithToolComponentReference sets the ToolComponentReference
type Result ¶
type Result struct { PropertyBag Guid *string `json:"guid,omitempty"` CorrelationGuid *string `json:"correlationGuid,omitempty"` RuleID *string `json:"ruleId,omitempty"` RuleIndex *uint `json:"ruleIndex,omitempty"` Rule *ReportingDescriptorReference `json:"rule,omitempty"` Taxa []*ReportingDescriptorReference `json:"taxa,omitempty"` Kind *string `json:"kind,omitempty"` Level *string `json:"level,omitempty"` Message Message `json:"message"` Locations []*Location `json:"locations,omitempty"` AnalysisTarget *ArtifactLocation `json:"analysisTarget,omitempty"` WebRequest *WebRequest `json:"webRequest,omitempty"` WebResponse *WebResponse `json:"webResponse,omitempty"` Fingerprints map[string]interface{} `json:"fingerprints,omitempty"` PartialFingerprints map[string]interface{} `json:"partialFingerprints,omitempty"` CodeFlows []*CodeFlow `json:"codeFlows,omitempty"` Graphs []*Graph `json:"graphs,omitempty"` GraphTraversals []*GraphTraversal `json:"graphTraversals,omitempty"` Stacks []*Stack `json:"stacks,omitempty"` RelatedLocations []*Location `json:"relatedLocations,omitempty"` Suppressions []*Suppression `json:"suppressions,omitempty"` BaselineState *string `json:"baselineState,omitempty"` Rank *float32 `json:"rank,omitempty"` Attachments []*Attachment `json:"attachments,omitempty"` WorkItemUris []string `json:"workItemUris,omitempty"` // can be null HostedViewerUri *string `json:"hostedViewerUri,omitempty"` Provenance *ResultProvenance `json:"provenance,omitempty"` Fixes []*Fix `json:"fixes,omitempty"` OccurrenceCount *uint `json:"occurrenceCount,omitempty"` }
Result represents the results block in the sarif report
func (*Result) AddAttachment ¶
func (result *Result) AddAttachment(attachments *Attachment)
AddAttachment ...
func (*Result) AddGraphTraversal ¶
func (result *Result) AddGraphTraversal(graphTraversal *GraphTraversal)
AddGraphTraversal ...
func (*Result) AddRelatedLocation ¶
AddRelatedLocation ...
func (*Result) AddSuppression ¶
func (result *Result) AddSuppression(suppression *Suppression)
AddSuppression ...
func (*Result) AddTaxa ¶
func (result *Result) AddTaxa(taxa *ReportingDescriptorReference)
AddTaxa ...
func (*Result) AddWorkItemUri ¶
AddWorkItemUri ...
func (*Result) SetFingerPrint ¶
SetFingerPrint ...
func (*Result) SetPartialFingerPrint ¶
SetPartialFingerPrint ...
func (*Result) WithAnalysisTarget ¶
func (result *Result) WithAnalysisTarget(target *ArtifactLocation) *Result
WithAnalysisTarget sets the AnalysisTarget
func (*Result) WithAttachments ¶
func (result *Result) WithAttachments(attachments []*Attachment) *Result
WithAttachments sets the Attachments
func (*Result) WithBaselineState ¶
WithBaselineState sets the BaselineState
func (*Result) WithCodeFlows ¶
WithCodeFlows sets the CodeFlows
func (*Result) WithCorrelationGuid ¶
WithCorrelationGuid sets the CorrelationGuid
func (*Result) WithFingerPrints ¶
WithFingerPrints sets the FingerPrints
func (*Result) WithGraphTraversal ¶
func (result *Result) WithGraphTraversal(graphTraversals []*GraphTraversal) *Result
WithGraphTraversal sets the GraphTraversal
func (*Result) WithGraphs ¶
WithGraphs sets the Graphs
func (*Result) WithHostedViewerUri ¶
WithHostedViewerUri sets the HostedViewerUri
func (*Result) WithLocations ¶
WithLocations sets the Locations
func (*Result) WithMessage ¶
WithMessage sets the Message
func (*Result) WithOccurrenceCount ¶
WithOccurrenceCount sets the OccurrenceCount
func (*Result) WithPartialFingerPrints ¶
WithPartialFingerPrints sets the PartialFingerPrints
func (*Result) WithRelatedLocations ¶
WithRelatedLocations sets the RelatedLocations
func (*Result) WithRule ¶
func (result *Result) WithRule(rule *ReportingDescriptorReference) *Result
WithRule sets the Rule
func (*Result) WithRuleIndex ¶
WithRuleIndex sets the RuleIndex
func (*Result) WithSuppression ¶
func (result *Result) WithSuppression(suppressions []*Suppression) *Result
WithSuppression sets the Suppression
func (*Result) WithTaxa ¶
func (result *Result) WithTaxa(taxa []*ReportingDescriptorReference) *Result
WithTaxa sets the Taxa
func (*Result) WithWorkItemUris ¶
WithWorkItemUris sets the WorkItemUris
type ResultProvenance ¶
type ResultProvenance struct { PropertyBag ConversionSources []*PhysicalLocation `json:"conversionSources,omitempty"` FirstDetectionRunGUID *string `json:"firstDetectionRunGuid,omitempty"` FirstDetectionTimeUTC *time.Time `json:"firstDetectionTimeUtc,omitempty"` InvocationIndex *int `json:"invocationIndex,omitempty"` LastDetectionRunGUID *string `json:"lastDetectionRunGuid,omitempty"` LastDetectionTimeUTC *time.Time `json:"lastDetectionTimeUtc,omitempty"` }
ResultProvenance ...
func NewResultProvenance ¶
func NewResultProvenance() *ResultProvenance
NewResultProvenance creates a new ResultProvenance and returns a pointer to it
func (*ResultProvenance) AddConversionSource ¶
func (resultProvenance *ResultProvenance) AddConversionSource(conversionSource *PhysicalLocation)
AddConversionSource ...
func (*ResultProvenance) WithConversionSources ¶
func (resultProvenance *ResultProvenance) WithConversionSources(conversionSources []*PhysicalLocation) *ResultProvenance
WithConversionSources sets the ConversionSources
func (*ResultProvenance) WithFirstDetectionRunGUID ¶
func (resultProvenance *ResultProvenance) WithFirstDetectionRunGUID(firstDetectionRunGUID string) *ResultProvenance
WithFirstDetectionRunGUID sets the FirstDetectionRunGUID
func (*ResultProvenance) WithFirstDetectionTimeUTC ¶
func (resultProvenance *ResultProvenance) WithFirstDetectionTimeUTC(firstDetectionTimeUTC *time.Time) *ResultProvenance
WithFirstDetectionTimeUTC sets the FirstDetectionTimeUTC
func (*ResultProvenance) WithInvocationIndex ¶
func (resultProvenance *ResultProvenance) WithInvocationIndex(invocationIndex int) *ResultProvenance
WithInvocationIndex sets the InvocationIndex
func (*ResultProvenance) WithLastDetectionRunGUID ¶
func (resultProvenance *ResultProvenance) WithLastDetectionRunGUID(lastDetectionRunGUID string) *ResultProvenance
WithLastDetectionRunGUID sets the LastDetectionRunGUID
func (*ResultProvenance) WithLastDetectionTimeUTC ¶
func (resultProvenance *ResultProvenance) WithLastDetectionTimeUTC(lastDetectionTimeUTC *time.Time) *ResultProvenance
WithLastDetectionTimeUTC sets the LastDetectionTimeUTC
type Run ¶
type Run struct { Tool Tool `json:"tool"` Artifacts []*Artifact `json:"artifacts,omitempty"` Invocations []*Invocation `json:"invocations,omitempty"` LogicalLocations []*LogicalLocation `json:"logicalLocations,omitempty"` Results []*Result `json:"results"` Addresses []*Address `json:"addresses,omitempty"` AutomationDetails *RunAutomationDetails `json:"automationDetails,omitempty"` BaselineGUID *string `json:"baselineGuid,omitempty"` ColumnKind interface{} `json:"columnKind,omitempty"` Conversion *Conversion `json:"conversion,omitempty"` DefaultEncoding *string `json:"defaultEncoding,omitempty"` DefaultSourceLanguage *string `json:"defaultSourceLanguage,omitempty"` ExternalPropertyFileReferences *ExternalPropertyFileReferences `json:"externalPropertyFileReferences,omitempty"` Graphs []*Graph `json:"graphs,omitempty"` Language *string `json:"language,omitempty"` NewlineSequences []string `json:"newlineSequences,omitempty"` OriginalUriBaseIDs map[string]*ArtifactLocation `json:"originalUriBaseIds,omitempty"` Policies []*ToolComponent `json:"policies,omitempty"` RedactionTokens []string `json:"redactionTokens,omitempty"` RunAggregates []*RunAutomationDetails `json:"runAggregates,omitempty"` SpecialLocations *SpecialLocations `json:"specialLocations,omitempty"` Taxonomies []*ToolComponent `json:"taxonomies,omitempty"` ThreadFlowLocations []*ThreadFlowLocation `json:"threadFlowLocations,omitempty"` Translations []*ToolComponent `json:"translations,omitempty"` VersionControlProvenance []*VersionControlDetails `json:"versionControlProvenance,omitempty"` WebRequests []*WebRequest `json:"webRequests,omitempty"` WebResponses []*WebResponse `json:"webResponses,omitempty"` PropertyBag }
Run type represents a run of a tool
func NewRunWithInformationURI ¶
NewRunWithInformationURI creates a new Run and returns a pointer to it
func (*Run) AddArtifact ¶
AddArtifact adds an artifact to the run and returns a pointer to it
func (*Run) AddDistinctArtifact ¶
AddDistinctArtifact will handle deduplication of simple artifact additions
func (*Run) AddILogicalLocation ¶
func (run *Run) AddILogicalLocation(logicalLocation *LogicalLocation)
AddILogicalLocation ...
func (*Run) AddInvocation ¶
func (run *Run) AddInvocation(executionSuccessful bool) *Invocation
AddInvocation adds an invocation to the run and returns a pointer to it
func (*Run) AddInvocations ¶
func (run *Run) AddInvocations(invocation *Invocation)
AddInvocations ...
func (*Run) AddRule ¶
func (run *Run) AddRule(ruleID string) *ReportingDescriptor
AddRule returns an existing ReportingDescriptor for the ruleID or creates a new ReportingDescriptor and returns a pointer to it
func (*Run) AddRunAggregate ¶
func (run *Run) AddRunAggregate(runAggregate *RunAutomationDetails)
AddRunAggregate ...
func (*Run) AddThreadFlowLocation ¶
func (run *Run) AddThreadFlowLocation(threadFlowLocation *ThreadFlowLocation)
AddThreadFlowLocation ...
func (*Run) AddTranslation ¶
func (run *Run) AddTranslation(translation *ToolComponent)
AddTranslation ...
func (*Run) AddVersionControlProvenance ¶
func (run *Run) AddVersionControlProvenance(vcProvenance *VersionControlDetails)
AddVersionControlProvenance ...
func (*Run) AddWebResponse ¶
func (run *Run) AddWebResponse(webResponse *WebResponse)
AddWebResponse ...
func (*Run) CreateResultForRule ¶
CreateResultForRule returns an existing Result or creates a new one and returns a pointer to it
func (*Run) GetResultByRuleId ¶
GetResultByRuleId finds the result for a ruleId and returns a pointer to it
func (*Run) GetRuleById ¶
func (run *Run) GetRuleById(ruleId string) (*ReportingDescriptor, error)
GetRuleById finds a rule by a given rule ID and returns a pointer to it
func (*Run) WithAddresses ¶
WithAddresses sets the Addresses
func (*Run) WithArtifacts ¶
WithArtifacts sets the Artifacts
func (*Run) WithAutomationDetails ¶
func (run *Run) WithAutomationDetails(automationDetails *RunAutomationDetails) *Run
WithAutomationDetails sets the AutomationDetails
func (*Run) WithBaselineGUID ¶
WithBaselineGUID sets the BaselineGUID
func (*Run) WithColumnKind ¶
WithColumnKind sets the ColumnKind
func (*Run) WithConversion ¶
func (run *Run) WithConversion(conversion *Conversion) *Run
WithConversion sets the Conversion
func (*Run) WithDefaultEncoding ¶
WithDefaultEncoding sets the DefaultEncoding
func (*Run) WithDefaultSourceLanguage ¶
WithDefaultSourceLanguage sets the DefaultSourceLanguage
func (*Run) WithExternalPropertyFileReferences ¶
func (run *Run) WithExternalPropertyFileReferences(references *ExternalPropertyFileReferences) *Run
WithExternalPropertyFileReferences sets the ExternalPropertyFileReferences
func (*Run) WithGraphs ¶
WithGraphs sets the Graphs
func (*Run) WithInvocations ¶
func (run *Run) WithInvocations(invocations []*Invocation) *Run
WithInvocations sets the Invocations
func (*Run) WithLanguage ¶
WithLanguage sets the Language
func (*Run) WithLogicalLocations ¶
func (run *Run) WithLogicalLocations(locations []*LogicalLocation) *Run
WithLogicalLocations sets the LogicalLocations
func (*Run) WithNewlineSequences ¶
WithNewlineSequences sets the NewlineSequences
func (*Run) WithOriginalUriBaseIds ¶
func (run *Run) WithOriginalUriBaseIds(originalUriBaseIDs map[string]*ArtifactLocation) *Run
WithOriginalUriBaseIds sets the OriginalUriBaseIds
func (*Run) WithPolicies ¶
func (run *Run) WithPolicies(policies []*ToolComponent) *Run
WithPolicies sets the Policies
func (*Run) WithRedactionTokens ¶
WithRedactionTokens sets the RedactionTokens
func (*Run) WithResults ¶
WithResults sets the Results
func (*Run) WithRunAggregates ¶
func (run *Run) WithRunAggregates(runAggregates []*RunAutomationDetails) *Run
WithRunAggregates sets the RunAggregates
func (*Run) WithSpecialLocations ¶
func (run *Run) WithSpecialLocations(specialLocation *SpecialLocations) *Run
WithSpecialLocations sets the SpecialLocations
func (*Run) WithTaxonomies ¶
func (run *Run) WithTaxonomies(taxonomies []*ToolComponent) *Run
WithTaxonomies sets the Taxonomies
func (*Run) WithThreadFlowLocations ¶
func (run *Run) WithThreadFlowLocations(threadFlowLocations []*ThreadFlowLocation) *Run
WithThreadFlowLocations sets the ThreadFlowLocations
func (*Run) WithTranslations ¶
func (run *Run) WithTranslations(translations []*ToolComponent) *Run
WithTranslations sets the Translations
func (*Run) WithVersionControlProvenances ¶
func (run *Run) WithVersionControlProvenances(vcProvenance []*VersionControlDetails) *Run
WithVersionControlProvenances sets the VersionControlProvenances
func (*Run) WithWebRequests ¶
func (run *Run) WithWebRequests(webRequests []*WebRequest) *Run
WithWebRequests sets the WebRequests
func (*Run) WithWebResponses ¶
func (run *Run) WithWebResponses(webResponses []*WebResponse) *Run
WithWebResponses sets the WebResponses
type RunAutomationDetails ¶
type RunAutomationDetails struct { CorrelationGUID *string `json:"correlationGuid,omitempty"` Description *Message `json:"description,omitempty"` GUID *string `json:"guid,omitempty"` ID *string `json:"id,omitempty"` PropertyBag }
RunAutomationDetails ...
func NewRunAutomationDetails ¶
func NewRunAutomationDetails() *RunAutomationDetails
NewRunAutomationDetails ...
func (*RunAutomationDetails) WithCorrelationGUID ¶
func (runAutomationDetails *RunAutomationDetails) WithCorrelationGUID(correlationGUID string) *RunAutomationDetails
WithCorrelationGUID sets the CorrelationGUID
func (*RunAutomationDetails) WithDescription ¶
func (runAutomationDetails *RunAutomationDetails) WithDescription(description *Message) *RunAutomationDetails
WithDescription sets the Message
func (*RunAutomationDetails) WithDescriptionMarkdown ¶
func (runAutomationDetails *RunAutomationDetails) WithDescriptionMarkdown(markdown string) *RunAutomationDetails
WithDescriptionMarkdown sets the Message markdown
func (*RunAutomationDetails) WithDescriptionText ¶
func (runAutomationDetails *RunAutomationDetails) WithDescriptionText(text string) *RunAutomationDetails
WithDescriptionText sets the Message text
func (*RunAutomationDetails) WithGUID ¶
func (runAutomationDetails *RunAutomationDetails) WithGUID(guid string) *RunAutomationDetails
WithGUID sets the GUID
func (*RunAutomationDetails) WithID ¶
func (runAutomationDetails *RunAutomationDetails) WithID(id string) *RunAutomationDetails
WithID sets the ID
type SpecialLocations ¶
type SpecialLocations struct { DisplayBase *ArtifactLocation `json:"displayBase,omitempty"` PropertyBag }
SpecialLocations ...
func (*SpecialLocations) WithDisplayBase ¶
func (specialLocations *SpecialLocations) WithDisplayBase(displayBase *ArtifactLocation) *SpecialLocations
WithDisplayBase sets the DisplayBase
type Stack ¶
type Stack struct { Frames []*StackFrame `json:"frames"` Message *Message `json:"message,omitempty"` PropertyBag }
Stack ...
func (*Stack) WithFrames ¶
func (stack *Stack) WithFrames(frames []*StackFrame) *Stack
WithFrames sets the Frames
func (*Stack) WithMessage ¶
WithMessage sets the Message
func (*Stack) WithMessageMarkdown ¶
WithMessageMarkdown sets the Message markdown
func (*Stack) WithTextMessage ¶
WithTextMessage sets the Message text
type StackFrame ¶
type StackFrame struct { Location *Location `json:"location,omitempty"` Module *string `json:"module,omitempty"` Parameters []string `json:"parameters,omitempty"` ThreadID *int `json:"threadId,omitempty"` PropertyBag }
StackFrame ...
func NewStackFrame ¶
func NewStackFrame() *StackFrame
NewStackFrame creates a new StackFrame and returns a pointer to it
func (*StackFrame) AddParameter ¶
func (stackFrame *StackFrame) AddParameter(parameter string)
AddParameter ...
func (*StackFrame) WithLocation ¶
func (stackFrame *StackFrame) WithLocation(location *Location) *StackFrame
WithLocation sets the Location
func (*StackFrame) WithModule ¶
func (stackFrame *StackFrame) WithModule(module string) *StackFrame
WithModule sets the Module
func (*StackFrame) WithParameters ¶
func (stackFrame *StackFrame) WithParameters(parameters []string) *StackFrame
WithParameters sets the Parameters
func (*StackFrame) WithThreadID ¶
func (stackFrame *StackFrame) WithThreadID(threadID int) *StackFrame
WithThreadID sets the ThreadID
type Suppression ¶
type Suppression struct { Kind string `json:"kind"` Status *string `json:"status"` Location *Location `json:"location"` Guid *string `json:"guid"` Justification *string `json:"justification"` PropertyBag }
Suppression ...
func NewSuppression ¶
func NewSuppression(kind string) *Suppression
NewSuppression creates a new Suppression and returns a pointer to it
func (*Suppression) WithGuid ¶
func (s *Suppression) WithGuid(guid string) *Suppression
WithGuid sets the Guid
func (*Suppression) WithJustifcation ¶
func (s *Suppression) WithJustifcation(justification string) *Suppression
WithJustifcation sets the Justifcation
func (*Suppression) WithLocation ¶
func (s *Suppression) WithLocation(location *Location) *Suppression
WithLocation sets the Location
func (*Suppression) WithStatus ¶
func (s *Suppression) WithStatus(status string) *Suppression
WithStatus sets the Status
type ThreadFlow ¶
type ThreadFlow struct { ID *string `json:"id,omitempty"` ImmutableState map[string]*MultiformatMessageString `json:"immutableState,omitempty"` InitialState map[string]*MultiformatMessageString `json:"initialState,omitempty"` Locations []*ThreadFlowLocation `json:"locations"` Message *Message `json:"message,omitempty"` PropertyBag }
ThreadFlow ...
func NewThreadFlow ¶
func NewThreadFlow() *ThreadFlow
NewThreadFlow creates a new ThreadFlow and returns a pointer to it
func (*ThreadFlow) AddLocation ¶
func (threadFlow *ThreadFlow) AddLocation(location *ThreadFlowLocation)
AddLocation ...
func (*ThreadFlow) WithID ¶
func (threadFlow *ThreadFlow) WithID(id string) *ThreadFlow
WithID sets the ID
func (*ThreadFlow) WithImmutableState ¶
func (threadFlow *ThreadFlow) WithImmutableState(immutableState map[string]*MultiformatMessageString) *ThreadFlow
WithImmutableState sets the ImmutableState
func (*ThreadFlow) WithInitialState ¶
func (threadFlow *ThreadFlow) WithInitialState(initialState map[string]*MultiformatMessageString) *ThreadFlow
WithInitialState sets the InitialState
func (*ThreadFlow) WithLocations ¶
func (threadFlow *ThreadFlow) WithLocations(locations []*ThreadFlowLocation) *ThreadFlow
WithLocations sets the Locations
func (*ThreadFlow) WithMessage ¶
func (threadFlow *ThreadFlow) WithMessage(message *Message) *ThreadFlow
WithMessage sets the Message
func (*ThreadFlow) WithMessageMarkdown ¶
func (threadFlow *ThreadFlow) WithMessageMarkdown(markdown string) *ThreadFlow
WithMessageMarkdown sets the Message markdown
func (*ThreadFlow) WithTextMessage ¶
func (threadFlow *ThreadFlow) WithTextMessage(text string) *ThreadFlow
WithTextMessage sets the Message text
type ThreadFlowLocation ¶
type ThreadFlowLocation struct { ExecutionOrder *int `json:"executionOrder,omitempty"` ExecutionTimeUTC *time.Time `json:"executionTimeUtc,omitempty"` Importance interface{} `json:"importance,omitempty"` Index *int `json:"index,omitempty"` Kinds []string `json:"kinds,omitempty"` Location *Location `json:"location,omitempty"` Module *string `json:"module,omitempty"` NestingLevel *int `json:"nestingLevel,omitempty"` Stack *Stack `json:"stack,omitempty"` State map[string]*MultiformatMessageString `json:"state,omitempty"` Taxa []*ReportingDescriptorReference `json:"taxa,omitempty"` WebRequest *WebRequest `json:"webRequest,omitempty"` WebResponse *WebResponse `json:"webResponse,omitempty"` PropertyBag }
ThreadFlowLocation ...
func NewThreadFlowLocation ¶
func NewThreadFlowLocation() *ThreadFlowLocation
NewThreadFlowLocation creates a new ThreadFlowLocation and returns a pointer to it
func (*ThreadFlowLocation) AddKind ¶
func (threadFlowLocation *ThreadFlowLocation) AddKind(kind string)
AddKind ...
func (*ThreadFlowLocation) AddTaxa ¶
func (threadFlowLocation *ThreadFlowLocation) AddTaxa(taxa *ReportingDescriptorReference)
AddTaxa ...
func (*ThreadFlowLocation) WithExecutionOrder ¶
func (threadFlowLocation *ThreadFlowLocation) WithExecutionOrder(order int) *ThreadFlowLocation
WithExecutionOrder sets the ExecutionOrder
func (*ThreadFlowLocation) WithExecutionTimeUTC ¶
func (threadFlowLocation *ThreadFlowLocation) WithExecutionTimeUTC(executionTimeUTC *time.Time) *ThreadFlowLocation
WithExecutionTimeUTC sets the ExecutionTimeUTC
func (*ThreadFlowLocation) WithImportance ¶
func (threadFlowLocation *ThreadFlowLocation) WithImportance(importance interface{}) *ThreadFlowLocation
WithImportance sets the Importance
func (*ThreadFlowLocation) WithIndex ¶
func (threadFlowLocation *ThreadFlowLocation) WithIndex(index int) *ThreadFlowLocation
WithIndex sets the Index
func (*ThreadFlowLocation) WithKinds ¶
func (threadFlowLocation *ThreadFlowLocation) WithKinds(kinds []string) *ThreadFlowLocation
WithKinds sets the Kinds
func (*ThreadFlowLocation) WithLocation ¶
func (threadFlowLocation *ThreadFlowLocation) WithLocation(location *Location) *ThreadFlowLocation
WithLocation sets the Location
func (*ThreadFlowLocation) WithModule ¶
func (threadFlowLocation *ThreadFlowLocation) WithModule(module string) *ThreadFlowLocation
WithModule sets the Module
func (*ThreadFlowLocation) WithNestingLevel ¶
func (threadFlowLocation *ThreadFlowLocation) WithNestingLevel(nestingLevel int) *ThreadFlowLocation
WithNestingLevel sets the NestingLevel
func (*ThreadFlowLocation) WithStack ¶
func (threadFlowLocation *ThreadFlowLocation) WithStack(stack *Stack) *ThreadFlowLocation
WithStack sets the Stack
func (*ThreadFlowLocation) WithState ¶
func (threadFlowLocation *ThreadFlowLocation) WithState(state map[string]*MultiformatMessageString) *ThreadFlowLocation
WithState sets the State
func (*ThreadFlowLocation) WithTaxa ¶
func (threadFlowLocation *ThreadFlowLocation) WithTaxa(taxa []*ReportingDescriptorReference) *ThreadFlowLocation
WithTaxa sets the Taxa
func (*ThreadFlowLocation) WithWebRequest ¶
func (threadFlowLocation *ThreadFlowLocation) WithWebRequest(webRequest *WebRequest) *ThreadFlowLocation
WithWebRequest sets the WebRequest
func (*ThreadFlowLocation) WithWebResponse ¶
func (threadFlowLocation *ThreadFlowLocation) WithWebResponse(webResponse *WebResponse) *ThreadFlowLocation
WithWebResponse sets the WebResponse
type Tool ¶
type Tool struct { Driver *ToolComponent `json:"driver"` PropertyBag }
Tool ...
func NewSimpleTool ¶
NewSimpleTool creates a new SimpleTool and returns a pointer to it
func NewTool ¶
func NewTool(driver *ToolComponent) *Tool
NewTool creates a new Tool and returns a pointer to it
type ToolComponent ¶
type ToolComponent struct { AssociatedComponent *ToolComponentReference `json:"associatedComponent,omitempty"` Contents []interface{} `json:"contents,omitempty"` DottedQuadFileVersion *string `json:"dottedQuadFileVersion,omitempty"` DownloadURI *string `json:"downloadUri,omitempty"` FullDescription *MultiformatMessageString `json:"fullDescription,omitempty"` FullName *string `json:"fullName,omitempty"` GlobalMessageStrings map[string]*MultiformatMessageString `json:"globalMessageStrings,omitempty"` GUID *string `json:"guid,omitempty"` InformationURI *string `json:"informationUri,omitempty"` IsComprehensive *bool `json:"isComprehensive,omitempty"` Language *string `json:"language,omitempty"` LocalizedDataSemanticVersion *string `json:"localizedDataSemanticVersion,omitempty"` Locations []*ArtifactLocation `json:"locations,omitempty"` MinimumRequiredLocalizedDataSemanticVersion *string `json:"minimumRequiredLocalizedDataSemanticVersion,omitempty"` Name string `json:"name"` Notifications []*ReportingDescriptor `json:"notifications,omitempty"` Organization *string `json:"organization,omitempty"` Product *string `json:"product,omitempty"` ProductSuite *string `json:"productSuite,omitempty"` ReleaseDateUtc *time.Time `json:"releaseDateUtc,omitempty"` Rules []*ReportingDescriptor `json:"rules"` SemanticVersion *string `json:"semanticVersion,omitempty"` ShortDescription *MultiformatMessageString `json:"shortDescription,omitempty"` SupportedTaxonomies []*ToolComponentReference `json:"supportedTaxonomies,omitempty"` Taxa []*ReportingDescriptor `json:"taxa,omitempty"` TranslationMetadata *TranslationMetadata `json:"translationMetadata,omitempty"` // The tool component version, in whatever format the component natively provides. Version *string `json:"version,omitempty"` PropertyBag }
ToolComponent ...
func NewDriver ¶
func NewDriver(name string) *ToolComponent
NewDriver creates a new Driver and returns a pointer to it
func NewVersionedDriver ¶
func NewVersionedDriver(name, version string) *ToolComponent
NewVersionedDriver creates a new VersionedDriver and returns a pointer to it
func (*ToolComponent) AddContent ¶
func (driver *ToolComponent) AddContent(content interface{})
AddContent adds a single content object to the Contents slice
func (*ToolComponent) AddLocation ¶
func (driver *ToolComponent) AddLocation(location *ArtifactLocation)
AddLocation ...
func (*ToolComponent) AddNotification ¶
func (driver *ToolComponent) AddNotification(notification *ReportingDescriptor)
AddNotification ...
func (*ToolComponent) AddRule ¶
func (driver *ToolComponent) AddRule(rule *ReportingDescriptor)
AddRule ...
func (*ToolComponent) AddSupportedTaxonomie ¶
func (driver *ToolComponent) AddSupportedTaxonomie(taxonomy *ToolComponentReference)
AddSupportedTaxonomie ...
func (*ToolComponent) AddTaxa ¶
func (driver *ToolComponent) AddTaxa(taxa *ReportingDescriptor)
AddTaxa adds a single Taxa to the Taxa slice
func (*ToolComponent) WithAssociatedComponent ¶
func (driver *ToolComponent) WithAssociatedComponent(associatedComponent *ToolComponentReference) *ToolComponent
WithAssociatedComponent adds an associated component to the driver
func (*ToolComponent) WithContents ¶
func (driver *ToolComponent) WithContents(contents []interface{}) *ToolComponent
WithContents sets the contents slice to the provided value
func (*ToolComponent) WithDottedQuadFileVersion ¶
func (driver *ToolComponent) WithDottedQuadFileVersion(version string) *ToolComponent
WithDottedQuadFileVersion ...
func (*ToolComponent) WithDownloadURI ¶
func (driver *ToolComponent) WithDownloadURI(downloadURI string) *ToolComponent
WithDownloadURI ...
func (*ToolComponent) WithFullDescription ¶
func (driver *ToolComponent) WithFullDescription(description *MultiformatMessageString) *ToolComponent
WithFullDescription ...
func (*ToolComponent) WithFullName ¶
func (driver *ToolComponent) WithFullName(fullName string) *ToolComponent
WithFullName ...
func (*ToolComponent) WithGUID ¶
func (driver *ToolComponent) WithGUID(guid string) *ToolComponent
WithGUID ...
func (*ToolComponent) WithGlobalMessageStrings ¶
func (driver *ToolComponent) WithGlobalMessageStrings(messageStrings map[string]*MultiformatMessageString) *ToolComponent
WithGlobalMessageStrings ...
func (*ToolComponent) WithInformationURI ¶
func (driver *ToolComponent) WithInformationURI(informationURI string) *ToolComponent
WithInformationURI sets the InformationURI
func (*ToolComponent) WithIsComprehensive ¶
func (driver *ToolComponent) WithIsComprehensive(isComprehensive bool) *ToolComponent
WithIsComprehensive ...
func (*ToolComponent) WithLanguage ¶
func (driver *ToolComponent) WithLanguage(language string) *ToolComponent
WithLanguage ...
func (*ToolComponent) WithLocalizedDataSemanticVersion ¶
func (driver *ToolComponent) WithLocalizedDataSemanticVersion(version string) *ToolComponent
WithLocalizedDataSemanticVersion ...
func (*ToolComponent) WithLocations ¶
func (driver *ToolComponent) WithLocations(locations []*ArtifactLocation) *ToolComponent
WithLocations ...
func (*ToolComponent) WithMinimumRequiredLocalizedDataSemanticVersion ¶
func (driver *ToolComponent) WithMinimumRequiredLocalizedDataSemanticVersion(version string) *ToolComponent
WithMinimumRequiredLocalizedDataSemanticVersion ...
func (*ToolComponent) WithNotifications ¶
func (driver *ToolComponent) WithNotifications(notifications []*ReportingDescriptor) *ToolComponent
WithNotifications sets the Notifications
func (*ToolComponent) WithOrganization ¶
func (driver *ToolComponent) WithOrganization(organization string) *ToolComponent
WithOrganization ...
func (*ToolComponent) WithProduct ¶
func (driver *ToolComponent) WithProduct(product string) *ToolComponent
WithProduct ...
func (*ToolComponent) WithProductSuite ¶
func (driver *ToolComponent) WithProductSuite(suite string) *ToolComponent
WithProductSuite ...
func (*ToolComponent) WithReleaseDateUTC ¶
func (driver *ToolComponent) WithReleaseDateUTC(releaseDate *time.Time) *ToolComponent
WithReleaseDateUTC ...
func (*ToolComponent) WithRules ¶
func (driver *ToolComponent) WithRules(rules []*ReportingDescriptor) *ToolComponent
WithRules sets the Rules
func (*ToolComponent) WithSemanticVersion ¶
func (driver *ToolComponent) WithSemanticVersion(version string) *ToolComponent
WithSemanticVersion ...
func (*ToolComponent) WithShortDescription ¶
func (driver *ToolComponent) WithShortDescription(description *MultiformatMessageString) *ToolComponent
WithShortDescription ...
func (*ToolComponent) WithSupportedTaxonomies ¶
func (driver *ToolComponent) WithSupportedTaxonomies(taxonomies []*ToolComponentReference) *ToolComponent
WithSupportedTaxonomies ...
func (*ToolComponent) WithTaxa ¶
func (driver *ToolComponent) WithTaxa(taxa []*ReportingDescriptor) *ToolComponent
WithTaxa sets the Taxa
func (*ToolComponent) WithTranslationMetadata ¶
func (driver *ToolComponent) WithTranslationMetadata(metadata *TranslationMetadata) *ToolComponent
WithTranslationMetadata ...
func (*ToolComponent) WithVersion ¶
func (driver *ToolComponent) WithVersion(version string) *ToolComponent
WithVersion specifies tool version, in whatever format it natively provides. Returns updated driver.
type ToolComponentReference ¶
type ToolComponentReference struct { Name *string `json:"name"` Index *uint `json:"index"` Guid *string `json:"guid"` PropertyBag }
ToolComponentReference ...
func NewToolComponentReference ¶
func NewToolComponentReference() *ToolComponentReference
NewToolComponentReference creates a new ToolComponentReference and returns a pointer to it
func (*ToolComponentReference) WithGuid ¶
func (t *ToolComponentReference) WithGuid(guid string) *ToolComponentReference
WithGuid sets the Guid
func (*ToolComponentReference) WithIndex ¶
func (t *ToolComponentReference) WithIndex(index int) *ToolComponentReference
WithIndex sets the Index
func (*ToolComponentReference) WithName ¶
func (t *ToolComponentReference) WithName(name string) *ToolComponentReference
WithName sets the Name
type TranslationMetadata ¶
type TranslationMetadata struct { DownloadURI *string `json:"downloadUri,omitempty"` FullDescription *MultiformatMessageString `json:"fullDescription,omitempty"` FullName *string `json:"fullName,omitempty"` InformationURI *string `json:"informationUri,omitempty"` Name *string `json:"name"` ShortDescription *MultiformatMessageString `json:"shortDescription,omitempty"` PropertyBag }
TranslationMetadata ...
func NewTranslationMetadata ¶
func NewTranslationMetadata() *TranslationMetadata
NewTranslationMetadata creates a new TranslationMetadata and returns a pointer to it
func (*TranslationMetadata) WithDownloadURI ¶
func (translationMetadata *TranslationMetadata) WithDownloadURI(downloadURI string) *TranslationMetadata
WithDownloadURI sets the DownloadURI
func (*TranslationMetadata) WithFullDescription ¶
func (translationMetadata *TranslationMetadata) WithFullDescription(message *MultiformatMessageString) *TranslationMetadata
WithFullDescription sets the FullDescription
func (*TranslationMetadata) WithFullDescriptionMarkdown ¶
func (translationMetadata *TranslationMetadata) WithFullDescriptionMarkdown(markdown string) *TranslationMetadata
WithFullDescriptionMarkdown sets the FullDescriptionMarkdown
func (*TranslationMetadata) WithFullDescriptionText ¶
func (translationMetadata *TranslationMetadata) WithFullDescriptionText(text string) *TranslationMetadata
WithFullDescriptionText sets the FullDescriptionText
func (*TranslationMetadata) WithFullName ¶
func (translationMetadata *TranslationMetadata) WithFullName(fullname string) *TranslationMetadata
WithFullName sets the FullName
func (*TranslationMetadata) WithInformationURI ¶
func (translationMetadata *TranslationMetadata) WithInformationURI(informationURI string) *TranslationMetadata
WithInformationURI sets the InformationURI
func (*TranslationMetadata) WithName ¶
func (translationMetadata *TranslationMetadata) WithName(name string) *TranslationMetadata
WithName sets the Name
func (*TranslationMetadata) WithShortDescription ¶
func (translationMetadata *TranslationMetadata) WithShortDescription(message *MultiformatMessageString) *TranslationMetadata
WithShortDescription sets the ShortDescription
func (*TranslationMetadata) WithShortDescriptionMarkdown ¶
func (translationMetadata *TranslationMetadata) WithShortDescriptionMarkdown(markdown string) *TranslationMetadata
WithShortDescriptionMarkdown sets the ShortDescriptionMarkdown
func (*TranslationMetadata) WithShortShortDescriptionText ¶
func (translationMetadata *TranslationMetadata) WithShortShortDescriptionText(text string) *TranslationMetadata
WithShortShortDescriptionText sets the ShortShortDescriptionText
type VersionControlDetails ¶
type VersionControlDetails struct { AsOfTimeUTC *time.Time `json:"asOfTimeUtc,omitempty"` Branch *string `json:"branch,omitempty"` MappedTo *ArtifactLocation `json:"mappedTo,omitempty"` RepositoryURI *string `json:"repositoryUri"` RevisionID *string `json:"revisionId,omitempty"` RevisionTag *string `json:"revisionTag,omitempty"` PropertyBag }
VersionControlDetails ...
func NewVersionControlDetails ¶
func NewVersionControlDetails() *VersionControlDetails
NewVersionControlDetails creates a new VersionControlDetails and returns a pointer to it
func (*VersionControlDetails) WithAsOfTimeUTC ¶
func (versionControlDetails *VersionControlDetails) WithAsOfTimeUTC(asOfTimeUTC *time.Time) *VersionControlDetails
WithAsOfTimeUTC sets the AsOfTimeUTC
func (*VersionControlDetails) WithBranch ¶
func (versionControlDetails *VersionControlDetails) WithBranch(branch string) *VersionControlDetails
WithBranch sets the Branch
func (*VersionControlDetails) WithMappedTo ¶
func (versionControlDetails *VersionControlDetails) WithMappedTo(mappedTo *ArtifactLocation) *VersionControlDetails
WithMappedTo sets the MappedTo
func (*VersionControlDetails) WithRepositoryURI ¶
func (versionControlDetails *VersionControlDetails) WithRepositoryURI(repositoryURI string) *VersionControlDetails
WithRepositoryURI sets the RepositoryURI
func (*VersionControlDetails) WithRevisionID ¶
func (versionControlDetails *VersionControlDetails) WithRevisionID(revisionID string) *VersionControlDetails
WithRevisionID sets the RevisionID
func (*VersionControlDetails) WithRevisionTag ¶
func (versionControlDetails *VersionControlDetails) WithRevisionTag(revisionTag string) *VersionControlDetails
WithRevisionTag sets the RevisionTag
type WebRequest ¶
type WebRequest struct { Body *ArtifactContent `json:"body,omitempty"` Headers map[string]string `json:"headers,omitempty"` Index *int `json:"index,omitempty"` Method *string `json:"method,omitempty"` Parameters map[string]string `json:"parameters,omitempty"` Protocol *string `json:"protocol,omitempty"` Target *string `json:"target,omitempty"` Version *string `json:"version,omitempty"` PropertyBag }
WebRequest ...
func NewWebRequest ¶
func NewWebRequest() *WebRequest
NewWebRequest creates a new WebRequest and returns a pointer to it
func (*WebRequest) SetHeader ¶
func (webRequest *WebRequest) SetHeader(name, value string)
SetHeader ...
func (*WebRequest) SetParameter ¶
func (webRequest *WebRequest) SetParameter(name, value string)
SetParameter ...
func (*WebRequest) WithBody ¶
func (webRequest *WebRequest) WithBody(body *ArtifactContent) *WebRequest
WithBody sets the Body
func (*WebRequest) WithHeaders ¶
func (webRequest *WebRequest) WithHeaders(headers map[string]string) *WebRequest
WithHeaders sets the Headers
func (*WebRequest) WithIndex ¶
func (webRequest *WebRequest) WithIndex(index int) *WebRequest
WithIndex sets the Index
func (*WebRequest) WithMethod ¶
func (webRequest *WebRequest) WithMethod(method string) *WebRequest
WithMethod sets the Method
func (*WebRequest) WithParameters ¶
func (webRequest *WebRequest) WithParameters(parameters map[string]string) *WebRequest
WithParameters sets the Parameters
func (*WebRequest) WithProtocol ¶
func (webRequest *WebRequest) WithProtocol(protocol string) *WebRequest
WithProtocol sets the Protocol
func (*WebRequest) WithTarget ¶
func (webRequest *WebRequest) WithTarget(target string) *WebRequest
WithTarget sets the Target
func (*WebRequest) WithVersion ¶
func (webRequest *WebRequest) WithVersion(version string) *WebRequest
WithVersion sets the Version
type WebResponse ¶
type WebResponse struct { Body *ArtifactContent `json:"body,omitempty"` Headers map[string]string `json:"headers,omitempty"` Index *int `json:"index,omitempty"` NoResponseReceived *bool `json:"noResponseReceived,omitempty"` Protocol *string `json:"protocol,omitempty"` ReasonPhrase *string `json:"reasonPhrase,omitempty"` StatusCode *int `json:"statusCode,omitempty"` Version *string `json:"version,omitempty"` PropertyBag }
WebResponse ...
func NewWebResponse ¶
func NewWebResponse() *WebResponse
NewWebResponse creates a new WebResponse and returns a pointer to it
func (*WebResponse) SetHeader ¶
func (webResponse *WebResponse) SetHeader(name, value string)
SetHeader ...
func (*WebResponse) WithBody ¶
func (webResponse *WebResponse) WithBody(body *ArtifactContent) *WebResponse
WithBody sets the Body
func (*WebResponse) WithHeaders ¶
func (webResponse *WebResponse) WithHeaders(headers map[string]string) *WebResponse
WithHeaders sets the Headers
func (*WebResponse) WithIndex ¶
func (webResponse *WebResponse) WithIndex(index int) *WebResponse
WithIndex sets the Index
func (*WebResponse) WithNoResponseReceived ¶
func (webResponse *WebResponse) WithNoResponseReceived(noResponse bool) *WebResponse
WithNoResponseReceived sets the NoResponseReceived
func (*WebResponse) WithProtocol ¶
func (webResponse *WebResponse) WithProtocol(protocol string) *WebResponse
WithProtocol sets the Protocol
func (*WebResponse) WithReasonPhrase ¶
func (webResponse *WebResponse) WithReasonPhrase(reason string) *WebResponse
WithReasonPhrase sets the ReasonPhrase
func (*WebResponse) WithStatusCode ¶
func (webResponse *WebResponse) WithStatusCode(statusCode int) *WebResponse
WithStatusCode sets the StatusCode
func (*WebResponse) WithVersion ¶
func (webResponse *WebResponse) WithVersion(version string) *WebResponse
WithVersion sets the Version
Source Files
¶
- address.go
- artifact.go
- artifact_change.go
- artifact_content.go
- artifact_location.go
- attachment.go
- code_flow.go
- configuration_override.go
- conversion.go
- edge.go
- edge_traversal.go
- exception.go
- external_properties.go
- external_property_file_reference.go
- external_property_file_references.go
- fix.go
- graph.go
- graph_traversal.go
- invocation.go
- location.go
- location_relationship.go
- logical_location.go
- message.go
- message_strings.go
- multi_format_message_string.go
- node.go
- notification.go
- physical_location.go
- properties.go
- rectangle.go
- region.go
- replacement.go
- reporting_configuration.go
- reporting_descriptor.go
- reporting_descriptor_reference.go
- result.go
- result_provenance.go
- run.go
- run_automation_details.go
- sarif.go
- special_locations.go
- stack.go
- stack_frame.go
- suppression.go
- test_helpers.go
- thread_flow.go
- thread_flow_location.go
- tool.go
- tool_component.go
- tool_component_reference.go
- translation_metadata.go
- version_control_details.go
- web_request.go
- web_response.go