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 ¶ added in v2.0.1
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Artifact) WithDescriptionText ¶ added in v2.0.1
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 ¶ added in v2.0.1
func (artifactLocation *ArtifactLocation) WithDescriptionMarkdown(markdown string) *ArtifactLocation
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*ArtifactLocation) WithDescriptionText ¶ added in v2.0.1
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 ¶ added in v2.0.1
type Attachment struct { ArtifactLocation *ArtifactLocation `json:"artifactLocation,omitempty"` Description *Message `json:"description,omitempty"` Rectangles []*Rectangle `json:"rectangles,omitempty"` PropertyBag }
Attachment ...
func NewAttachment ¶ added in v2.0.1
func NewAttachment() *Attachment
NewAttachment creates a new Attachment and returns a pointer to it
func (*Attachment) AddRectangle ¶ added in v2.0.1
func (attachment *Attachment) AddRectangle(rectangle *Rectangle)
AddRectangle ...
func (*Attachment) WithArtifactionLocation ¶ added in v2.0.1
func (attachment *Attachment) WithArtifactionLocation(artifactLocation *ArtifactLocation) *Attachment
WithArtifactionLocation sets the ArtifactionLocation
func (*Attachment) WithDescription ¶ added in v2.0.1
func (attachment *Attachment) WithDescription(description *Message) *Attachment
WithDescription sets the Description
func (*Attachment) WithDescriptionMarkdown ¶ added in v2.0.1
func (attachment *Attachment) WithDescriptionMarkdown(markdown string) *Attachment
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Attachment) WithDescriptionText ¶ added in v2.0.1
func (attachment *Attachment) WithDescriptionText(text string) *Attachment
WithDescriptionText sets the DescriptionText
func (*Attachment) WithRectangles ¶ added in v2.0.1
func (attachment *Attachment) WithRectangles(rectangles []*Rectangle) *Attachment
WithRectangles sets the Rectangles
type CodeFlow ¶ added in v2.0.1
type CodeFlow struct { Message *Message `json:"message,omitempty"` ThreadFlows []*ThreadFlow `json:"threadFlows,omitempty"` PropertyBag }
CodeFlow ...
func NewCodeFlow ¶ added in v2.0.1
func NewCodeFlow() *CodeFlow
NewCodeFlow creates a new CodeFlow and returns a pointer to it
func (*CodeFlow) AddThreadFlow ¶ added in v2.0.1
func (codeFlow *CodeFlow) AddThreadFlow(threadFlow *ThreadFlow)
AddThreadFlow ...
func (*CodeFlow) WithMessage ¶ added in v2.0.1
WithMessage sets the Message
func (*CodeFlow) WithMessageMarkdown ¶ added in v2.0.1
WithMessageMarkdown sets the Message markdown
func (*CodeFlow) WithTextMessage ¶ added in v2.0.1
WithTextMessage sets the Message text
func (*CodeFlow) WithThreadFlows ¶ added in v2.0.1
func (codeFlow *CodeFlow) WithThreadFlows(threadFlows []*ThreadFlow) *CodeFlow
WithThreadFlows sets the ThreadFlows
type ConfigurationOverride ¶ added in v2.0.1
type ConfigurationOverride struct { Configuration *ReportingConfiguration `json:"configuration,omitempty"` Descriptor *ReportingDescriptorReference `json:"descriptor,omitempty"` PropertyBag }
ConfigurationOverride ...
func NewConfigurationOverride ¶ added in v2.0.1
func NewConfigurationOverride() *ConfigurationOverride
NewConfigurationOverride creates a new ConfigurationOverride and returns a pointer to it
func (*ConfigurationOverride) WithConfiguration ¶ added in v2.0.1
func (configurationOverride *ConfigurationOverride) WithConfiguration(configuration *ReportingConfiguration) *ConfigurationOverride
WithConfiguration sets the Configuration
func (*ConfigurationOverride) WithDescriptor ¶ added in v2.0.1
func (configurationOverride *ConfigurationOverride) WithDescriptor(descriptor *ReportingDescriptorReference) *ConfigurationOverride
WithDescriptor sets the Descriptor
type Conversion ¶ added in v2.0.1
type Conversion struct { AnalysisToolLogFiles []*ArtifactLocation `json:"analysisToolLogFiles,omitempty"` Invocation *Invocation `json:"invocation,omitempty"` Tool *Tool `json:"tool"` PropertyBag }
Conversion ...
func NewConversion ¶ added in v2.0.1
func NewConversion() *Conversion
NewConversion creates a new Conversion and returns a pointer to it
func (*Conversion) WithInvocation ¶ added in v2.0.1
func (conversion *Conversion) WithInvocation(invocation *Invocation) *Conversion
WithInvocation sets the Invocation
func (*Conversion) WithTool ¶ added in v2.0.1
func (conversion *Conversion) WithTool(tool *Tool) *Conversion
WithTool sets the Tool
type Edge ¶ added in v2.0.1
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 ¶ added in v2.0.1
WithLabelMarkdown sets the LabelMarkdown
func (*Edge) WithLabelText ¶ added in v2.0.1
WithLabelText sets the LabelText
type EdgeTraversal ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewEdgeTraversal(edgeID string) *EdgeTraversal
NewEdgeTraversal creates a new EdgeTraversal and returns a pointer to it
func (*EdgeTraversal) SetFinalState ¶ added in v2.0.1
func (edgeTraversal *EdgeTraversal) SetFinalState(key string, state *MultiformatMessageString)
SetFinalState ...
func (*EdgeTraversal) WithDescription ¶ added in v2.0.1
func (edgeTraversal *EdgeTraversal) WithDescription(message *Message) *EdgeTraversal
WithDescription sets the Description
func (*EdgeTraversal) WithDescriptionMarkdown ¶ added in v2.0.1
func (edgeTraversal *EdgeTraversal) WithDescriptionMarkdown(markdown string) *EdgeTraversal
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*EdgeTraversal) WithDescriptionText ¶ added in v2.0.1
func (edgeTraversal *EdgeTraversal) WithDescriptionText(text string) *EdgeTraversal
WithDescriptionText sets the DescriptionText
func (*EdgeTraversal) WithFinalState ¶ added in v2.0.1
func (edgeTraversal *EdgeTraversal) WithFinalState(finalState map[string]*MultiformatMessageString) *EdgeTraversal
WithFinalState sets the FinalState
func (*EdgeTraversal) WithStepOverEdgeCount ¶ added in v2.0.1
func (edgeTraversal *EdgeTraversal) WithStepOverEdgeCount(stepOverEdgeCount int) *EdgeTraversal
WithStepOverEdgeCount sets the StepOverEdgeCount
type Exception ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewException() *Exception
NewException creates a new Exception and returns a pointer to it
func (*Exception) AddInnerException ¶ added in v2.0.1
AddInnerException ...
func (*Exception) WithInnerExceptions ¶ added in v2.0.1
WithInnerExceptions sets the InnerExceptions
func (*Exception) WithMessage ¶ added in v2.0.1
WithMessage sets the Message
type ExternalProperties ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewExternalProperties() *ExternalProperties
NewExternalProperties creates a new ExternalProperties and returns a pointer to it
func (*ExternalProperties) AddAddress ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddAddress(address *Address)
AddAddress ...
func (*ExternalProperties) AddArtifact ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddArtifact(artifact *Artifact)
AddArtifact ...
func (*ExternalProperties) AddExtension ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddExtension(extension *ToolComponent)
AddExtension ...
func (*ExternalProperties) AddGraph ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddGraph(graph *Graph)
AddGraph ...
func (*ExternalProperties) AddInvocation ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddInvocation(invocation *Invocation)
AddInvocation ...
func (*ExternalProperties) AddLogicalLocation ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddLogicalLocation(logicalLocation *LogicalLocation)
AddLogicalLocation ...
func (*ExternalProperties) AddPolicy ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddPolicy(policy *ToolComponent)
AddPolicy ...
func (*ExternalProperties) AddResult ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddResult(result *Result)
AddResult ...
func (*ExternalProperties) AddTaxonomie ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddTaxonomie(taxonomy *ToolComponent)
AddTaxonomie ...
func (*ExternalProperties) AddThreadFlowLocations ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddThreadFlowLocations(threadFlowLocation *ThreadFlowLocation)
AddThreadFlowLocations ...
func (*ExternalProperties) AddTranslation ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddTranslation(translation *ToolComponent)
AddTranslation ...
func (*ExternalProperties) AddWebRequest ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddWebRequest(webRequest *WebRequest)
AddWebRequest ...
func (*ExternalProperties) AddWebResponse ¶ added in v2.0.1
func (externalProperties *ExternalProperties) AddWebResponse(webResponse *WebResponse)
AddWebResponse ...
func (*ExternalProperties) WithAddress ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithAddress(addresses []*Address) *ExternalProperties
WithAddress sets the Address
func (*ExternalProperties) WithArtifact ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithArtifact(artifacts []*Artifact) *ExternalProperties
WithArtifact sets the Artifact
func (*ExternalProperties) WithConversion ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithConversion(conversion *Conversion) *ExternalProperties
WithConversion sets the Conversion
func (*ExternalProperties) WithDriver ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithDriver(driver *ToolComponent) *ExternalProperties
WithDriver sets the Driver
func (*ExternalProperties) WithExtensions ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithExtensions(extensions []*ToolComponent) *ExternalProperties
WithExtensions sets the Extensions
func (*ExternalProperties) WithExternalizedProperties ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithExternalizedProperties(externalizedProperties *PropertyBag) *ExternalProperties
WithExternalizedProperties sets the ExternalizedProperties
func (*ExternalProperties) WithGUID ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithGUID(guid string) *ExternalProperties
WithGUID sets the GUID
func (*ExternalProperties) WithGraphs ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithGraphs(graphs []*Graph) *ExternalProperties
WithGraphs sets the Graphs
func (*ExternalProperties) WithInvocations ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithInvocations(invocations []*Invocation) *ExternalProperties
WithInvocations sets the Invocations
func (*ExternalProperties) WithLogicalLocations ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithLogicalLocations(logicalLocations []*LogicalLocation) *ExternalProperties
WithLogicalLocations sets the LogicalLocations
func (*ExternalProperties) WithPolicies ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithPolicies(policies []*ToolComponent) *ExternalProperties
WithPolicies sets the Policies
func (*ExternalProperties) WithResults ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithResults(results []*Result) *ExternalProperties
WithResults sets the Results
func (*ExternalProperties) WithRunGUID ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithRunGUID(runGUID string) *ExternalProperties
WithRunGUID sets the RunGUID
func (*ExternalProperties) WithSchema ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithSchema(schema string) *ExternalProperties
WithSchema sets the Schema
func (*ExternalProperties) WithTaxonomies ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithTaxonomies(taxonomies []*ToolComponent) *ExternalProperties
WithTaxonomies sets the Taxonomies
func (*ExternalProperties) WithThreadFlowLocations ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithThreadFlowLocations(threadFlowLocations []*ThreadFlowLocation) *ExternalProperties
WithThreadFlowLocations sets the ThreadFlowLocations
func (*ExternalProperties) WithTranslations ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithTranslations(translation []*ToolComponent) *ExternalProperties
WithTranslations sets the Translations
func (*ExternalProperties) WithVersion ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithVersion(version string) *ExternalProperties
WithVersion sets the Version
func (*ExternalProperties) WithWebRequests ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithWebRequests(webRequests []*WebRequest) *ExternalProperties
WithWebRequests sets the WebRequests
func (*ExternalProperties) WithWebResponses ¶ added in v2.0.1
func (externalProperties *ExternalProperties) WithWebResponses(webResponses []*WebResponse) *ExternalProperties
WithWebResponses sets the WebResponses
type ExternalPropertyFileReference ¶ added in v2.0.1
type ExternalPropertyFileReference struct { GUID *string `json:"guid,omitempty"` ItemCount *int `json:"itemCount,omitempty"` Location *ArtifactLocation `json:"location,omitempty"` PropertyBag }
ExternalPropertyFileReference ...
func NewExternalPropertyFileReference ¶ added in v2.0.1
func NewExternalPropertyFileReference() *ExternalPropertyFileReference
NewExternalPropertyFileReference creates a new ExternalPropertyFileReference and returns a pointer to it
func (*ExternalPropertyFileReference) WithGUID ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReference) WithGUID(guid string) *ExternalPropertyFileReference
WithGUID sets the GUID
func (*ExternalPropertyFileReference) WithItemCount ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReference) WithItemCount(itemCount int) *ExternalPropertyFileReference
WithItemCount sets the ItemCount
type ExternalPropertyFileReferences ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewExternalPropertyFileReferences() *ExternalPropertyFileReferences
NewExternalPropertyFileReferences creates a new ExternalPropertyFileReferences and returns a pointer to it
func (*ExternalPropertyFileReferences) AddAddress ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddAddress(address *ExternalPropertyFileReference)
AddAddress ...
func (*ExternalPropertyFileReferences) AddArtifact ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddArtifact(artifact *ExternalPropertyFileReference)
AddArtifact ...
func (*ExternalPropertyFileReferences) AddExtension ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddExtension(extension *ExternalPropertyFileReference)
AddExtension ...
func (*ExternalPropertyFileReferences) AddGraph ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddGraph(graph *ExternalPropertyFileReference)
AddGraph ...
func (*ExternalPropertyFileReferences) AddInvocation ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddInvocation(invocation *ExternalPropertyFileReference)
AddInvocation ...
func (*ExternalPropertyFileReferences) AddLogicalLocation ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddLogicalLocation(logicalLocation *ExternalPropertyFileReference)
AddLogicalLocation ...
func (*ExternalPropertyFileReferences) AddPolicy ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddPolicy(policy *ExternalPropertyFileReference)
AddPolicy ...
func (*ExternalPropertyFileReferences) AddResult ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddResult(result *ExternalPropertyFileReference)
AddResult ...
func (*ExternalPropertyFileReferences) AddTaxonomie ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddTaxonomie(taxonomy *ExternalPropertyFileReference)
AddTaxonomie ...
func (*ExternalPropertyFileReferences) AddThreadFlowLocations ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddThreadFlowLocations(threadFlowLocation *ExternalPropertyFileReference)
AddThreadFlowLocations ...
func (*ExternalPropertyFileReferences) AddTranslation ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddTranslation(translation *ExternalPropertyFileReference)
AddTranslation ...
func (*ExternalPropertyFileReferences) AddWebRequest ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddWebRequest(webRequest *ExternalPropertyFileReference)
AddWebRequest ...
func (*ExternalPropertyFileReferences) AddWebResponse ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) AddWebResponse(webResponse *ExternalPropertyFileReference)
AddWebResponse ...
func (*ExternalPropertyFileReferences) WithAddress ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithAddress(addresses []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithAddress sets the Address
func (*ExternalPropertyFileReferences) WithArtifact ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithArtifact(artifacts []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithArtifact sets the Artifact
func (*ExternalPropertyFileReferences) WithConversion ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithConversion(conversion *ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithConversion sets the Conversion
func (*ExternalPropertyFileReferences) WithDriver ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithDriver(driver *ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithDriver sets the Driver
func (*ExternalPropertyFileReferences) WithExtensions ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithExtensions(extensions []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithExtensions sets the Extensions
func (*ExternalPropertyFileReferences) WithExternalizedProperties ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithExternalizedProperties(externalizedProperties *ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithExternalizedProperties sets the ExternalizedProperties
func (*ExternalPropertyFileReferences) WithGraphs ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithGraphs(graphs []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithGraphs sets the Graphs
func (*ExternalPropertyFileReferences) WithInvocations ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithInvocations(invocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithInvocations sets the Invocations
func (*ExternalPropertyFileReferences) WithLogicalLocations ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithLogicalLocations(logicalLocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithLogicalLocations sets the LogicalLocations
func (*ExternalPropertyFileReferences) WithPolicies ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithPolicies(policies []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithPolicies sets the Policies
func (*ExternalPropertyFileReferences) WithResults ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithResults(results []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithResults sets the Results
func (*ExternalPropertyFileReferences) WithTaxonomies ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithTaxonomies(taxonomies []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithTaxonomies sets the Taxonomies
func (*ExternalPropertyFileReferences) WithThreadFlowLocations ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithThreadFlowLocations(threadFlowLocations []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithThreadFlowLocations sets the ThreadFlowLocations
func (*ExternalPropertyFileReferences) WithTranslations ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithTranslations(translation []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithTranslations sets the Translations
func (*ExternalPropertyFileReferences) WithWebRequests ¶ added in v2.0.1
func (externalPropertyFileReferences *ExternalPropertyFileReferences) WithWebRequests(webRequests []*ExternalPropertyFileReference) *ExternalPropertyFileReferences
WithWebRequests sets the WebRequests
func (*ExternalPropertyFileReferences) WithWebResponses ¶ added in v2.0.1
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 ¶ added in v2.0.1
func (fix *Fix) AddArtifactChanges(artifactChange *ArtifactChange)
AddArtifactChanges ...
func (*Fix) WithArtifactChanges ¶ added in v2.0.1
func (fix *Fix) WithArtifactChanges(artifactChanges []*ArtifactChange) *Fix
WithArtifactChanges sets the ArtifactChanges
func (*Fix) WithDescription ¶
WithDescription sets the Description
func (*Fix) WithDescriptionMarkdown ¶ added in v2.0.1
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Fix) WithDescriptionText ¶ added in v2.0.1
WithDescriptionText sets the DescriptionText
type Graph ¶ added in v2.0.1
type Graph struct { Description *Message `json:"description,omitempty"` Edges []*Edge `json:"edges,omitempty"` Nodes []*Node `json:"nodes,omitempty"` PropertyBag }
Graph ...
func NewGraph ¶ added in v2.0.1
func NewGraph() *Graph
NewGraph creates a new Graph and returns a pointer to it
func (*Graph) WithDescription ¶ added in v2.0.1
WithDescription sets the Description
func (*Graph) WithDescriptionMarkdown ¶ added in v2.0.1
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Graph) WithDescriptionText ¶ added in v2.0.1
WithDescriptionText sets the DescriptionText
type GraphTraversal ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewGraphTraversal() *GraphTraversal
NewGraphTraversal creates a new GraphTraversal and returns a pointer to it
func (*GraphTraversal) AddEdge ¶ added in v2.0.1
func (graphTraversal *GraphTraversal) AddEdge(edgeTraversal *EdgeTraversal)
AddEdge ...
func (*GraphTraversal) WithDescription ¶ added in v2.0.1
func (graphTraversal *GraphTraversal) WithDescription(message *Message) *GraphTraversal
WithDescription sets the Description
func (*GraphTraversal) WithDescriptionMarkdown ¶ added in v2.0.1
func (graphTraversal *GraphTraversal) WithDescriptionMarkdown(markdown string) *GraphTraversal
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*GraphTraversal) WithDescriptionText ¶ added in v2.0.1
func (graphTraversal *GraphTraversal) WithDescriptionText(text string) *GraphTraversal
WithDescriptionText sets the DescriptionText
func (*GraphTraversal) WithEdgeTraversals ¶ added in v2.0.1
func (graphTraversal *GraphTraversal) WithEdgeTraversals(edgeTraversals []*EdgeTraversal) *GraphTraversal
WithEdgeTraversals sets the EdgeTraversals
func (*GraphTraversal) WithImmutableState ¶ added in v2.0.1
func (graphTraversal *GraphTraversal) WithImmutableState(immutableState map[string]*MultiformatMessageString) *GraphTraversal
WithImmutableState sets the ImmutableState
func (*GraphTraversal) WithInitialState ¶ added in v2.0.1
func (graphTraversal *GraphTraversal) WithInitialState(initialState map[string]*MultiformatMessageString) *GraphTraversal
WithInitialState sets the InitialState
func (*GraphTraversal) WithResultGraphIndex ¶ added in v2.0.1
func (graphTraversal *GraphTraversal) WithResultGraphIndex(index int) *GraphTraversal
WithResultGraphIndex sets the ResultGraphIndex
func (*GraphTraversal) WithRunGraphIndex ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewInvocation() *Invocation
NewInvocation creates a new Invocation and returns a pointer to it
func (*Invocation) AddArgument ¶ added in v2.0.1
func (invocation *Invocation) AddArgument(argument string)
AddArgument ...
func (*Invocation) AddNotificationConfigurationOverride ¶ added in v2.0.1
func (invocation *Invocation) AddNotificationConfigurationOverride(override *ConfigurationOverride)
AddNotificationConfigurationOverride ...
func (*Invocation) AddResponseFile ¶ added in v2.0.1
func (invocation *Invocation) AddResponseFile(responseFile *ArtifactLocation)
AddResponseFile ...
func (*Invocation) AddRuleConfigurationOverride ¶ added in v2.0.1
func (invocation *Invocation) AddRuleConfigurationOverride(override *ConfigurationOverride)
AddRuleConfigurationOverride ...
func (*Invocation) AddTToolExecutionNotification ¶ added in v2.0.1
func (invocation *Invocation) AddTToolExecutionNotification(toolExecutionNotification *Notification)
AddTToolExecutionNotification ...
func (*Invocation) AddToolConfigurationNotification ¶ added in v2.0.1
func (invocation *Invocation) AddToolConfigurationNotification(toolConfigNotification *Notification)
AddToolConfigurationNotification ...
func (*Invocation) SetEnvironmentVariable ¶ added in v2.0.1
func (invocation *Invocation) SetEnvironmentVariable(name, value string)
SetEnvironmentVariable ...
func (*Invocation) WithAccount ¶ added in v2.0.1
func (invocation *Invocation) WithAccount(account string) *Invocation
WithAccount sets the Account
func (*Invocation) WithArguments ¶ added in v2.0.1
func (invocation *Invocation) WithArguments(arguments []string) *Invocation
WithArguments sets the Arguments
func (*Invocation) WithCommanLine ¶ added in v2.0.1
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 ¶ added in v2.0.1
func (invocation *Invocation) WithEnvironmentVariables(environmentVariables map[string]string) *Invocation
WithEnvironmentVariables sets the EnvironmentVariables
func (*Invocation) WithExecutableLocation ¶ added in v2.0.1
func (invocation *Invocation) WithExecutableLocation(executableLocation *ArtifactLocation) *Invocation
WithExecutableLocation sets the ExecutableLocation
func (*Invocation) WithExecutionSuccess ¶ added in v2.0.1
func (invocation *Invocation) WithExecutionSuccess(executionSuccessful bool) *Invocation
WithExecutionSuccess sets the ExecutionSuccess
func (*Invocation) WithExitCode ¶ added in v2.0.1
func (invocation *Invocation) WithExitCode(exitCode int) *Invocation
WithExitCode sets the ExitCode
func (*Invocation) WithExitCodeDescription ¶ added in v2.0.1
func (invocation *Invocation) WithExitCodeDescription(exitCodeDescription string) *Invocation
WithExitCodeDescription sets the ExitCodeDescription
func (*Invocation) WithExitSignalName ¶ added in v2.0.1
func (invocation *Invocation) WithExitSignalName(exitSignalName string) *Invocation
WithExitSignalName sets the ExitSignalName
func (*Invocation) WithExitSignalNumber ¶ added in v2.0.1
func (invocation *Invocation) WithExitSignalNumber(exitSignalNumber int) *Invocation
WithExitSignalNumber sets the ExitSignalNumber
func (*Invocation) WithMachine ¶ added in v2.0.1
func (invocation *Invocation) WithMachine(machine string) *Invocation
WithMachine sets the Machine
func (*Invocation) WithNotificationConfigurationOverrides ¶ added in v2.0.1
func (invocation *Invocation) WithNotificationConfigurationOverrides(overrides []*ConfigurationOverride) *Invocation
WithNotificationConfigurationOverrides sets the NotificationConfigurationOverrides
func (*Invocation) WithProcessID ¶ added in v2.0.1
func (invocation *Invocation) WithProcessID(processID int) *Invocation
WithProcessID sets the ProcessID
func (*Invocation) WithProcessStartFailureMessage ¶ added in v2.0.1
func (invocation *Invocation) WithProcessStartFailureMessage(failureMessage string) *Invocation
WithProcessStartFailureMessage sets the ProcessStartFailureMessage
func (*Invocation) WithResponseFiles ¶ added in v2.0.1
func (invocation *Invocation) WithResponseFiles(responseFiles []*ArtifactLocation) *Invocation
WithResponseFiles sets the ResponseFiles
func (*Invocation) WithRuleConfigurationOverrides ¶ added in v2.0.1
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 ¶ added in v2.0.1
func (invocation *Invocation) WithStdErr(stdErr *ArtifactLocation) *Invocation
WithStdErr sets the StdErr
func (*Invocation) WithStdIn ¶ added in v2.0.1
func (invocation *Invocation) WithStdIn(stdIn *ArtifactLocation) *Invocation
WithStdIn sets the StdIn
func (*Invocation) WithStdout ¶ added in v2.0.1
func (invocation *Invocation) WithStdout(stdOut *ArtifactLocation) *Invocation
WithStdout sets the Stdout
func (*Invocation) WithStdoutStderr ¶ added in v2.0.1
func (invocation *Invocation) WithStdoutStderr(stdoutStderr *ArtifactLocation) *Invocation
WithStdoutStderr sets the StdoutStderr
func (*Invocation) WithToolConfigurationNotifications ¶ added in v2.0.1
func (invocation *Invocation) WithToolConfigurationNotifications(toolConfigNotifications []*Notification) *Invocation
WithToolConfigurationNotifications sets the ToolConfigurationNotifications
func (*Invocation) WithToolExecutionNotifications ¶ added in v2.0.1
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 ¶ added in v2.0.1
AddAnnotation ...
func (*Location) AddLogicalLocations ¶ added in v2.0.1
func (location *Location) AddLogicalLocations(logicalLocation *LogicalLocation)
AddLogicalLocations ...
func (*Location) AddRelationship ¶ added in v2.0.1
func (location *Location) AddRelationship(locationRelationship *LocationRelationship)
AddRelationship ...
func (*Location) WithAnnotations ¶ added in v2.0.1
WithAnnotations sets the Annotations
func (*Location) WithDescriptionMarkdown ¶ added in v2.0.1
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*Location) WithDescriptionText ¶ added in v2.0.1
WithDescriptionText sets the DescriptionText
func (*Location) WithLogicalLocations ¶ added in v2.0.1
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
func (locationRelationship *LocationRelationship) AddKind(kind string)
AddKind ...
func (*LocationRelationship) WithDescription ¶
func (locationRelationship *LocationRelationship) WithDescription(message *Message) *LocationRelationship
WithDescription sets the Description
func (*LocationRelationship) WithDescriptionMarkdown ¶ added in v2.0.1
func (locationRelationship *LocationRelationship) WithDescriptionMarkdown(markdown string) *LocationRelationship
WithDescriptionMarkdown sets the DescriptionMarkdown
func (*LocationRelationship) WithDescriptionText ¶ added in v2.0.1
func (locationRelationship *LocationRelationship) WithDescriptionText(text string) *LocationRelationship
WithDescriptionText sets the DescriptionText
func (*LocationRelationship) WithKinds ¶ added in v2.0.1
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) AddArgument ¶ added in v2.0.1
AddArgument ...
func (*Message) WithArguments ¶ added in v2.0.1
WithArguments sets the Arguments
func (*Message) WithMarkdown ¶
WithMarkdown sets the Markdown
type MessageStrings ¶ added in v2.2.1
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 ¶ added in v2.0.1
func (multiFormatMessageString *MultiformatMessageString) WithText(text string) *MultiformatMessageString
WithText sets the Text
type Node ¶ added in v2.0.1
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 ¶ added in v2.0.1
WithChildren sets the Children
func (*Node) WithLabelMarkdown ¶ added in v2.0.1
WithLabelMarkdown sets the LabelMarkdown
func (*Node) WithLabelText ¶ added in v2.0.1
WithLabelText sets the LabelText
type Notification ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewNotification() *Notification
NewNotification creates a new Notification and returns a pointer to it
func (*Notification) AddLocation ¶ added in v2.0.1
func (notification *Notification) AddLocation(location *Location)
AddLocation ...
func (*Notification) WithAssociatedRule ¶ added in v2.0.1
func (notification *Notification) WithAssociatedRule(associatedRule *ReportingDescriptorReference) *Notification
WithAssociatedRule sets the AssociatedRule
func (*Notification) WithDescriptor ¶ added in v2.0.1
func (notification *Notification) WithDescriptor(descriptor *ReportingDescriptorReference) *Notification
WithDescriptor sets the Descriptor
func (*Notification) WithException ¶ added in v2.0.1
func (notification *Notification) WithException(exception *Exception) *Notification
WithException sets the Exception
func (*Notification) WithLevel ¶ added in v2.0.1
func (notification *Notification) WithLevel(level string) *Notification
WithLevel sets the Level
func (*Notification) WithLocations ¶ added in v2.0.1
func (notification *Notification) WithLocations(locations []*Location) *Notification
WithLocations sets the Locations
func (*Notification) WithMessage ¶ added in v2.0.1
func (notification *Notification) WithMessage(message *Message) *Notification
WithMessage sets the Message
func (*Notification) WithMessageMarkdown ¶ added in v2.0.1
func (notification *Notification) WithMessageMarkdown(markdown string) *Notification
WithMessageMarkdown sets the Message markdown
func (*Notification) WithTextMessage ¶ added in v2.0.1
func (notification *Notification) WithTextMessage(text string) *Notification
WithTextMessage sets the Message text
func (*Notification) WithThreadID ¶ added in v2.0.1
func (notification *Notification) WithThreadID(threadID int) *Notification
WithThreadID sets the ThreadID
func (*Notification) WithTimeUTC ¶ added in v2.0.1
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 ¶ added in v2.0.1
func (propertyBag *PropertyBag) AttachPropertyBag(pb *PropertyBag)
AttachPropertyBag adds a property bag to a rule
type Rectangle ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewRectangle() *Rectangle
NewRectangle creates a new Rectangle and returns a pointer to it
func (*Rectangle) WithBottom ¶ added in v2.0.1
WithBottom sets the Bottom
func (*Rectangle) WithMessage ¶ added in v2.0.1
WithMessage sets the Message
func (*Rectangle) WithMessageMarkdown ¶ added in v2.0.1
WithMessageMarkdown sets the Message markdown
func (*Rectangle) WithTextMessage ¶ added in v2.0.1
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewReportingConfiguration() *ReportingConfiguration
NewReportingConfiguration creates a new ReportingConfiguration and returns a pointer to it
func (*ReportingConfiguration) WithEnabled ¶ added in v2.0.1
func (reportingConfiguration *ReportingConfiguration) WithEnabled(enabled bool) *ReportingConfiguration
WithEnabled sets the Enabled
func (*ReportingConfiguration) WithLevel ¶ added in v2.0.1
func (reportingConfiguration *ReportingConfiguration) WithLevel(level string) *ReportingConfiguration
WithLevel sets the Level
func (*ReportingConfiguration) WithParameters ¶ added in v2.0.1
func (reportingConfiguration *ReportingConfiguration) WithParameters(parameters *PropertyBag) *ReportingConfiguration
WithParameters sets the Parameters
func (*ReportingConfiguration) WithRank ¶ added in v2.0.1
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 ¶ added in v2.0.1
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 ¶ added in v2.0.15
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
func (result *Result) AddAttachment(attachments *Attachment)
AddAttachment ...
func (*Result) AddCodeFlow ¶ added in v2.0.1
AddCodeFlow ...
func (*Result) AddGraphTraversal ¶ added in v2.0.1
func (result *Result) AddGraphTraversal(graphTraversal *GraphTraversal)
AddGraphTraversal ...
func (*Result) AddLocation ¶ added in v2.0.1
AddLocation ...
func (*Result) AddRelatedLocation ¶ added in v2.0.1
AddRelatedLocation ...
func (*Result) AddSuppression ¶ added in v2.0.1
func (result *Result) AddSuppression(suppression *Suppression)
AddSuppression ...
func (*Result) AddTaxa ¶ added in v2.0.1
func (result *Result) AddTaxa(taxa *ReportingDescriptorReference)
AddTaxa ...
func (*Result) AddWorkItemUri ¶ added in v2.0.1
AddWorkItemUri ...
func (*Result) SetFingerPrint ¶ added in v2.0.1
SetFingerPrint ...
func (*Result) SetPartialFingerPrint ¶ added in v2.0.1
SetPartialFingerPrint ...
func (*Result) WithAnalysisTarget ¶
func (result *Result) WithAnalysisTarget(target *ArtifactLocation) *Result
WithAnalysisTarget sets the AnalysisTarget
func (*Result) WithAttachments ¶ added in v2.0.1
func (result *Result) WithAttachments(attachments []*Attachment) *Result
WithAttachments sets the Attachments
func (*Result) WithBaselineState ¶
WithBaselineState sets the BaselineState
func (*Result) WithCodeFlows ¶ added in v2.0.1
WithCodeFlows sets the CodeFlows
func (*Result) WithCorrelationGuid ¶
WithCorrelationGuid sets the CorrelationGuid
func (*Result) WithFingerPrints ¶
WithFingerPrints sets the FingerPrints
func (*Result) WithGraphTraversal ¶ added in v2.0.1
func (result *Result) WithGraphTraversal(graphTraversals []*GraphTraversal) *Result
WithGraphTraversal sets the GraphTraversal
func (*Result) WithGraphs ¶ added in v2.0.1
WithGraphs sets the Graphs
func (*Result) WithHostedViewerUri ¶
WithHostedViewerUri sets the HostedViewerUri
func (*Result) WithLocations ¶ added in v2.0.1
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
WithWorkItemUris sets the WorkItemUris
type ResultProvenance ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewResultProvenance() *ResultProvenance
NewResultProvenance creates a new ResultProvenance and returns a pointer to it
func (*ResultProvenance) AddConversionSource ¶ added in v2.0.1
func (resultProvenance *ResultProvenance) AddConversionSource(conversionSource *PhysicalLocation)
AddConversionSource ...
func (*ResultProvenance) WithConversionSources ¶ added in v2.0.1
func (resultProvenance *ResultProvenance) WithConversionSources(conversionSources []*PhysicalLocation) *ResultProvenance
WithConversionSources sets the ConversionSources
func (*ResultProvenance) WithFirstDetectionRunGUID ¶ added in v2.0.1
func (resultProvenance *ResultProvenance) WithFirstDetectionRunGUID(firstDetectionRunGUID string) *ResultProvenance
WithFirstDetectionRunGUID sets the FirstDetectionRunGUID
func (*ResultProvenance) WithFirstDetectionTimeUTC ¶ added in v2.0.1
func (resultProvenance *ResultProvenance) WithFirstDetectionTimeUTC(firstDetectionTimeUTC *time.Time) *ResultProvenance
WithFirstDetectionTimeUTC sets the FirstDetectionTimeUTC
func (*ResultProvenance) WithInvocationIndex ¶ added in v2.0.1
func (resultProvenance *ResultProvenance) WithInvocationIndex(invocationIndex int) *ResultProvenance
WithInvocationIndex sets the InvocationIndex
func (*ResultProvenance) WithLastDetectionRunGUID ¶ added in v2.0.1
func (resultProvenance *ResultProvenance) WithLastDetectionRunGUID(lastDetectionRunGUID string) *ResultProvenance
WithLastDetectionRunGUID sets the LastDetectionRunGUID
func (*ResultProvenance) WithLastDetectionTimeUTC ¶ added in v2.0.1
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
func (run *Run) AddInvocations(invocation *Invocation)
AddInvocations ...
func (*Run) AddPolicy ¶ added in v2.0.1
func (run *Run) AddPolicy(policy *ToolComponent)
AddPolicy ...
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 ¶ added in v2.0.1
func (run *Run) AddRunAggregate(runAggregate *RunAutomationDetails)
AddRunAggregate ...
func (*Run) AddTaxonomy ¶ added in v2.0.1
func (run *Run) AddTaxonomy(taxonomy *ToolComponent)
AddTaxonomy ...
func (*Run) AddThreadFlowLocation ¶ added in v2.0.1
func (run *Run) AddThreadFlowLocation(threadFlowLocation *ThreadFlowLocation)
AddThreadFlowLocation ...
func (*Run) AddTranslation ¶ added in v2.0.1
func (run *Run) AddTranslation(translation *ToolComponent)
AddTranslation ...
func (*Run) AddVersionControlProvenance ¶ added in v2.0.1
func (run *Run) AddVersionControlProvenance(vcProvenance *VersionControlDetails)
AddVersionControlProvenance ...
func (*Run) AddWebRequest ¶ added in v2.0.1
func (run *Run) AddWebRequest(webRequest *WebRequest)
AddWebRequest ...
func (*Run) AddWebResponse ¶ added in v2.0.1
func (run *Run) AddWebResponse(webResponse *WebResponse)
AddWebResponse ...
func (*Run) CreateResultForRule ¶ added in v2.0.1
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 ¶ added in v2.0.1
WithAddresses sets the Addresses
func (*Run) WithArtifacts ¶ added in v2.0.1
WithArtifacts sets the Artifacts
func (*Run) WithAutomationDetails ¶ added in v2.0.1
func (run *Run) WithAutomationDetails(automationDetails *RunAutomationDetails) *Run
WithAutomationDetails sets the AutomationDetails
func (*Run) WithBaselineGUID ¶ added in v2.0.1
WithBaselineGUID sets the BaselineGUID
func (*Run) WithColumnKind ¶ added in v2.0.1
WithColumnKind sets the ColumnKind
func (*Run) WithConversion ¶ added in v2.0.1
func (run *Run) WithConversion(conversion *Conversion) *Run
WithConversion sets the Conversion
func (*Run) WithDefaultEncoding ¶ added in v2.0.1
WithDefaultEncoding sets the DefaultEncoding
func (*Run) WithDefaultSourceLanguage ¶ added in v2.0.1
WithDefaultSourceLanguage sets the DefaultSourceLanguage
func (*Run) WithExternalPropertyFileReferences ¶ added in v2.0.1
func (run *Run) WithExternalPropertyFileReferences(references *ExternalPropertyFileReferences) *Run
WithExternalPropertyFileReferences sets the ExternalPropertyFileReferences
func (*Run) WithGraphs ¶ added in v2.0.1
WithGraphs sets the Graphs
func (*Run) WithInvocations ¶ added in v2.0.1
func (run *Run) WithInvocations(invocations []*Invocation) *Run
WithInvocations sets the Invocations
func (*Run) WithLanguage ¶ added in v2.0.1
WithLanguage sets the Language
func (*Run) WithLogicalLocations ¶ added in v2.0.1
func (run *Run) WithLogicalLocations(locations []*LogicalLocation) *Run
WithLogicalLocations sets the LogicalLocations
func (*Run) WithNewlineSequences ¶ added in v2.0.1
WithNewlineSequences sets the NewlineSequences
func (*Run) WithOriginalUriBaseIds ¶ added in v2.0.1
func (run *Run) WithOriginalUriBaseIds(originalUriBaseIDs map[string]*ArtifactLocation) *Run
WithOriginalUriBaseIds sets the OriginalUriBaseIds
func (*Run) WithPolicies ¶ added in v2.0.1
func (run *Run) WithPolicies(policies []*ToolComponent) *Run
WithPolicies sets the Policies
func (*Run) WithRedactionTokens ¶ added in v2.0.1
WithRedactionTokens sets the RedactionTokens
func (*Run) WithResults ¶ added in v2.0.1
WithResults sets the Results
func (*Run) WithRunAggregates ¶ added in v2.0.1
func (run *Run) WithRunAggregates(runAggregates []*RunAutomationDetails) *Run
WithRunAggregates sets the RunAggregates
func (*Run) WithSpecialLocations ¶ added in v2.0.1
func (run *Run) WithSpecialLocations(specialLocation *SpecialLocations) *Run
WithSpecialLocations sets the SpecialLocations
func (*Run) WithTaxonomies ¶ added in v2.0.1
func (run *Run) WithTaxonomies(taxonomies []*ToolComponent) *Run
WithTaxonomies sets the Taxonomies
func (*Run) WithThreadFlowLocations ¶ added in v2.0.1
func (run *Run) WithThreadFlowLocations(threadFlowLocations []*ThreadFlowLocation) *Run
WithThreadFlowLocations sets the ThreadFlowLocations
func (*Run) WithTranslations ¶ added in v2.0.1
func (run *Run) WithTranslations(translations []*ToolComponent) *Run
WithTranslations sets the Translations
func (*Run) WithVersionControlProvenances ¶ added in v2.0.1
func (run *Run) WithVersionControlProvenances(vcProvenance []*VersionControlDetails) *Run
WithVersionControlProvenances sets the VersionControlProvenances
func (*Run) WithWebRequests ¶ added in v2.0.1
func (run *Run) WithWebRequests(webRequests []*WebRequest) *Run
WithWebRequests sets the WebRequests
func (*Run) WithWebResponses ¶ added in v2.0.1
func (run *Run) WithWebResponses(webResponses []*WebResponse) *Run
WithWebResponses sets the WebResponses
type RunAutomationDetails ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewRunAutomationDetails() *RunAutomationDetails
NewRunAutomationDetails ...
func (*RunAutomationDetails) WithCorrelationGUID ¶ added in v2.0.1
func (runAutomationDetails *RunAutomationDetails) WithCorrelationGUID(correlationGUID string) *RunAutomationDetails
WithCorrelationGUID sets the CorrelationGUID
func (*RunAutomationDetails) WithDescription ¶ added in v2.0.1
func (runAutomationDetails *RunAutomationDetails) WithDescription(description *Message) *RunAutomationDetails
WithDescription sets the Message
func (*RunAutomationDetails) WithDescriptionMarkdown ¶ added in v2.0.1
func (runAutomationDetails *RunAutomationDetails) WithDescriptionMarkdown(markdown string) *RunAutomationDetails
WithDescriptionMarkdown sets the Message markdown
func (*RunAutomationDetails) WithDescriptionText ¶ added in v2.0.1
func (runAutomationDetails *RunAutomationDetails) WithDescriptionText(text string) *RunAutomationDetails
WithDescriptionText sets the Message text
func (*RunAutomationDetails) WithGUID ¶ added in v2.0.1
func (runAutomationDetails *RunAutomationDetails) WithGUID(guid string) *RunAutomationDetails
WithGUID sets the GUID
func (*RunAutomationDetails) WithID ¶ added in v2.0.1
func (runAutomationDetails *RunAutomationDetails) WithID(id string) *RunAutomationDetails
WithID sets the ID
type SpecialLocations ¶ added in v2.0.1
type SpecialLocations struct { DisplayBase *ArtifactLocation `json:"displayBase,omitempty"` PropertyBag }
SpecialLocations ...
func NewSpecialLocations ¶ added in v2.0.1
func NewSpecialLocations() *SpecialLocations
NewSpecialLocations ...
func (*SpecialLocations) WithDisplayBase ¶ added in v2.0.1
func (specialLocations *SpecialLocations) WithDisplayBase(displayBase *ArtifactLocation) *SpecialLocations
WithDisplayBase sets the DisplayBase
type Stack ¶ added in v2.0.1
type Stack struct { Frames []*StackFrame `json:"frames"` Message *Message `json:"message,omitempty"` PropertyBag }
Stack ...
func NewStack ¶ added in v2.0.1
func NewStack() *Stack
NewStack creates a new Stack and returns a pointer to it
func (*Stack) AddFrame ¶ added in v2.0.1
func (stack *Stack) AddFrame(frame *StackFrame)
AddFrame ...
func (*Stack) WithFrames ¶ added in v2.0.1
func (stack *Stack) WithFrames(frames []*StackFrame) *Stack
WithFrames sets the Frames
func (*Stack) WithMessage ¶ added in v2.0.1
WithMessage sets the Message
func (*Stack) WithMessageMarkdown ¶ added in v2.0.1
WithMessageMarkdown sets the Message markdown
func (*Stack) WithTextMessage ¶ added in v2.0.1
WithTextMessage sets the Message text
type StackFrame ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewStackFrame() *StackFrame
NewStackFrame creates a new StackFrame and returns a pointer to it
func (*StackFrame) AddParameter ¶ added in v2.0.1
func (stackFrame *StackFrame) AddParameter(parameter string)
AddParameter ...
func (*StackFrame) WithLocation ¶ added in v2.0.1
func (stackFrame *StackFrame) WithLocation(location *Location) *StackFrame
WithLocation sets the Location
func (*StackFrame) WithModule ¶ added in v2.0.1
func (stackFrame *StackFrame) WithModule(module string) *StackFrame
WithModule sets the Module
func (*StackFrame) WithParameters ¶ added in v2.0.1
func (stackFrame *StackFrame) WithParameters(parameters []string) *StackFrame
WithParameters sets the Parameters
func (*StackFrame) WithThreadID ¶ added in v2.0.1
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewThreadFlow() *ThreadFlow
NewThreadFlow creates a new ThreadFlow and returns a pointer to it
func (*ThreadFlow) AddLocation ¶ added in v2.0.1
func (threadFlow *ThreadFlow) AddLocation(location *ThreadFlowLocation)
AddLocation ...
func (*ThreadFlow) WithID ¶ added in v2.0.1
func (threadFlow *ThreadFlow) WithID(id string) *ThreadFlow
WithID sets the ID
func (*ThreadFlow) WithImmutableState ¶ added in v2.0.1
func (threadFlow *ThreadFlow) WithImmutableState(immutableState map[string]*MultiformatMessageString) *ThreadFlow
WithImmutableState sets the ImmutableState
func (*ThreadFlow) WithInitialState ¶ added in v2.0.1
func (threadFlow *ThreadFlow) WithInitialState(initialState map[string]*MultiformatMessageString) *ThreadFlow
WithInitialState sets the InitialState
func (*ThreadFlow) WithLocations ¶ added in v2.0.1
func (threadFlow *ThreadFlow) WithLocations(locations []*ThreadFlowLocation) *ThreadFlow
WithLocations sets the Locations
func (*ThreadFlow) WithMessage ¶ added in v2.0.1
func (threadFlow *ThreadFlow) WithMessage(message *Message) *ThreadFlow
WithMessage sets the Message
func (*ThreadFlow) WithMessageMarkdown ¶ added in v2.0.1
func (threadFlow *ThreadFlow) WithMessageMarkdown(markdown string) *ThreadFlow
WithMessageMarkdown sets the Message markdown
func (*ThreadFlow) WithTextMessage ¶ added in v2.0.1
func (threadFlow *ThreadFlow) WithTextMessage(text string) *ThreadFlow
WithTextMessage sets the Message text
type ThreadFlowLocation ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewThreadFlowLocation() *ThreadFlowLocation
NewThreadFlowLocation creates a new ThreadFlowLocation and returns a pointer to it
func (*ThreadFlowLocation) AddKind ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) AddKind(kind string)
AddKind ...
func (*ThreadFlowLocation) AddTaxa ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) AddTaxa(taxa *ReportingDescriptorReference)
AddTaxa ...
func (*ThreadFlowLocation) WithExecutionOrder ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithExecutionOrder(order int) *ThreadFlowLocation
WithExecutionOrder sets the ExecutionOrder
func (*ThreadFlowLocation) WithExecutionTimeUTC ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithExecutionTimeUTC(executionTimeUTC *time.Time) *ThreadFlowLocation
WithExecutionTimeUTC sets the ExecutionTimeUTC
func (*ThreadFlowLocation) WithImportance ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithImportance(importance interface{}) *ThreadFlowLocation
WithImportance sets the Importance
func (*ThreadFlowLocation) WithIndex ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithIndex(index int) *ThreadFlowLocation
WithIndex sets the Index
func (*ThreadFlowLocation) WithKinds ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithKinds(kinds []string) *ThreadFlowLocation
WithKinds sets the Kinds
func (*ThreadFlowLocation) WithLocation ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithLocation(location *Location) *ThreadFlowLocation
WithLocation sets the Location
func (*ThreadFlowLocation) WithModule ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithModule(module string) *ThreadFlowLocation
WithModule sets the Module
func (*ThreadFlowLocation) WithNestingLevel ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithNestingLevel(nestingLevel int) *ThreadFlowLocation
WithNestingLevel sets the NestingLevel
func (*ThreadFlowLocation) WithStack ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithStack(stack *Stack) *ThreadFlowLocation
WithStack sets the Stack
func (*ThreadFlowLocation) WithState ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithState(state map[string]*MultiformatMessageString) *ThreadFlowLocation
WithState sets the State
func (*ThreadFlowLocation) WithTaxa ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithTaxa(taxa []*ReportingDescriptorReference) *ThreadFlowLocation
WithTaxa sets the Taxa
func (*ThreadFlowLocation) WithWebRequest ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithWebRequest(webRequest *WebRequest) *ThreadFlowLocation
WithWebRequest sets the WebRequest
func (*ThreadFlowLocation) WithWebResponse ¶ added in v2.0.1
func (threadFlowLocation *ThreadFlowLocation) WithWebResponse(webResponse *WebResponse) *ThreadFlowLocation
WithWebResponse sets the WebResponse
type Tool ¶
type Tool struct { Driver *ToolComponent `json:"driver"` Extensions []*ToolComponent `json:"extensions,omitempty"` PropertyBag }
Tool ...
func NewSimpleTool ¶ added in v2.0.1
NewSimpleTool creates a new SimpleTool and returns a pointer to it
func NewTool ¶ added in v2.0.1
func NewTool(driver *ToolComponent) *Tool
NewTool creates a new Tool and returns a pointer to it
func (*Tool) AddExtension ¶ added in v2.3.2
func (tool *Tool) AddExtension(extension *ToolComponent)
AddExtension ...
func (*Tool) WithExtensions ¶ added in v2.3.2
func (tool *Tool) WithExtensions(extensions []*ToolComponent) *Tool
WithExtensions sets the Extensions
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 ¶ added in v2.0.1
func NewDriver(name string) *ToolComponent
NewDriver creates a new Driver and returns a pointer to it
func NewVersionedDriver ¶ added in v2.0.1
func NewVersionedDriver(name, version string) *ToolComponent
NewVersionedDriver creates a new VersionedDriver and returns a pointer to it
func (*ToolComponent) AddContent ¶ added in v2.0.14
func (driver *ToolComponent) AddContent(content interface{})
AddContent adds a single content object to the Contents slice
func (*ToolComponent) AddLocation ¶ added in v2.0.14
func (driver *ToolComponent) AddLocation(location *ArtifactLocation)
AddLocation ...
func (*ToolComponent) AddNotification ¶ added in v2.0.1
func (driver *ToolComponent) AddNotification(notification *ReportingDescriptor)
AddNotification ...
func (*ToolComponent) AddRule ¶ added in v2.0.1
func (driver *ToolComponent) AddRule(rule *ReportingDescriptor)
AddRule ...
func (*ToolComponent) AddSupportedTaxonomie ¶ added in v2.0.14
func (driver *ToolComponent) AddSupportedTaxonomie(taxonomy *ToolComponentReference)
AddSupportedTaxonomie ...
func (*ToolComponent) AddTaxa ¶ added in v2.0.1
func (driver *ToolComponent) AddTaxa(taxa *ReportingDescriptor)
AddTaxa adds a single Taxa to the Taxa slice
func (*ToolComponent) WithAssociatedComponent ¶ added in v2.0.14
func (driver *ToolComponent) WithAssociatedComponent(associatedComponent *ToolComponentReference) *ToolComponent
WithAssociatedComponent adds an associated component to the driver
func (*ToolComponent) WithContents ¶ added in v2.0.14
func (driver *ToolComponent) WithContents(contents []interface{}) *ToolComponent
WithContents sets the contents slice to the provided value
func (*ToolComponent) WithDottedQuadFileVersion ¶ added in v2.0.14
func (driver *ToolComponent) WithDottedQuadFileVersion(version string) *ToolComponent
WithDottedQuadFileVersion ...
func (*ToolComponent) WithDownloadURI ¶ added in v2.0.14
func (driver *ToolComponent) WithDownloadURI(downloadURI string) *ToolComponent
WithDownloadURI ...
func (*ToolComponent) WithFullDescription ¶ added in v2.0.14
func (driver *ToolComponent) WithFullDescription(description *MultiformatMessageString) *ToolComponent
WithFullDescription ...
func (*ToolComponent) WithFullName ¶ added in v2.0.14
func (driver *ToolComponent) WithFullName(fullName string) *ToolComponent
WithFullName ...
func (*ToolComponent) WithGUID ¶ added in v2.0.14
func (driver *ToolComponent) WithGUID(guid string) *ToolComponent
WithGUID ...
func (*ToolComponent) WithGlobalMessageStrings ¶ added in v2.0.14
func (driver *ToolComponent) WithGlobalMessageStrings(messageStrings map[string]*MultiformatMessageString) *ToolComponent
WithGlobalMessageStrings ...
func (*ToolComponent) WithInformationURI ¶ added in v2.0.1
func (driver *ToolComponent) WithInformationURI(informationURI string) *ToolComponent
WithInformationURI sets the InformationURI
func (*ToolComponent) WithIsComprehensive ¶ added in v2.0.14
func (driver *ToolComponent) WithIsComprehensive(isComprehensive bool) *ToolComponent
WithIsComprehensive ...
func (*ToolComponent) WithLanguage ¶ added in v2.0.14
func (driver *ToolComponent) WithLanguage(language string) *ToolComponent
WithLanguage ...
func (*ToolComponent) WithLocalizedDataSemanticVersion ¶ added in v2.0.14
func (driver *ToolComponent) WithLocalizedDataSemanticVersion(version string) *ToolComponent
WithLocalizedDataSemanticVersion ...
func (*ToolComponent) WithLocations ¶ added in v2.0.14
func (driver *ToolComponent) WithLocations(locations []*ArtifactLocation) *ToolComponent
WithLocations ...
func (*ToolComponent) WithMinimumRequiredLocalizedDataSemanticVersion ¶ added in v2.0.14
func (driver *ToolComponent) WithMinimumRequiredLocalizedDataSemanticVersion(version string) *ToolComponent
WithMinimumRequiredLocalizedDataSemanticVersion ...
func (*ToolComponent) WithNotifications ¶ added in v2.0.1
func (driver *ToolComponent) WithNotifications(notifications []*ReportingDescriptor) *ToolComponent
WithNotifications sets the Notifications
func (*ToolComponent) WithOrganization ¶ added in v2.0.14
func (driver *ToolComponent) WithOrganization(organization string) *ToolComponent
WithOrganization ...
func (*ToolComponent) WithProduct ¶ added in v2.0.14
func (driver *ToolComponent) WithProduct(product string) *ToolComponent
WithProduct ...
func (*ToolComponent) WithProductSuite ¶ added in v2.0.14
func (driver *ToolComponent) WithProductSuite(suite string) *ToolComponent
WithProductSuite ...
func (*ToolComponent) WithReleaseDateUTC ¶ added in v2.0.14
func (driver *ToolComponent) WithReleaseDateUTC(releaseDate *time.Time) *ToolComponent
WithReleaseDateUTC ...
func (*ToolComponent) WithRules ¶ added in v2.0.12
func (driver *ToolComponent) WithRules(rules []*ReportingDescriptor) *ToolComponent
WithRules sets the Rules
func (*ToolComponent) WithSemanticVersion ¶ added in v2.0.14
func (driver *ToolComponent) WithSemanticVersion(version string) *ToolComponent
WithSemanticVersion ...
func (*ToolComponent) WithShortDescription ¶ added in v2.0.14
func (driver *ToolComponent) WithShortDescription(description *MultiformatMessageString) *ToolComponent
WithShortDescription ...
func (*ToolComponent) WithSupportedTaxonomies ¶ added in v2.0.14
func (driver *ToolComponent) WithSupportedTaxonomies(taxonomies []*ToolComponentReference) *ToolComponent
WithSupportedTaxonomies ...
func (*ToolComponent) WithTaxa ¶ added in v2.0.1
func (driver *ToolComponent) WithTaxa(taxa []*ReportingDescriptor) *ToolComponent
WithTaxa sets the Taxa
func (*ToolComponent) WithTranslationMetadata ¶ added in v2.0.14
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 ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewTranslationMetadata() *TranslationMetadata
NewTranslationMetadata creates a new TranslationMetadata and returns a pointer to it
func (*TranslationMetadata) WithDownloadURI ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithDownloadURI(downloadURI string) *TranslationMetadata
WithDownloadURI sets the DownloadURI
func (*TranslationMetadata) WithFullDescription ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithFullDescription(message *MultiformatMessageString) *TranslationMetadata
WithFullDescription sets the FullDescription
func (*TranslationMetadata) WithFullDescriptionMarkdown ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithFullDescriptionMarkdown(markdown string) *TranslationMetadata
WithFullDescriptionMarkdown sets the FullDescriptionMarkdown
func (*TranslationMetadata) WithFullDescriptionText ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithFullDescriptionText(text string) *TranslationMetadata
WithFullDescriptionText sets the FullDescriptionText
func (*TranslationMetadata) WithFullName ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithFullName(fullname string) *TranslationMetadata
WithFullName sets the FullName
func (*TranslationMetadata) WithInformationURI ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithInformationURI(informationURI string) *TranslationMetadata
WithInformationURI sets the InformationURI
func (*TranslationMetadata) WithName ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithName(name string) *TranslationMetadata
WithName sets the Name
func (*TranslationMetadata) WithShortDescription ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithShortDescription(message *MultiformatMessageString) *TranslationMetadata
WithShortDescription sets the ShortDescription
func (*TranslationMetadata) WithShortDescriptionMarkdown ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithShortDescriptionMarkdown(markdown string) *TranslationMetadata
WithShortDescriptionMarkdown sets the ShortDescriptionMarkdown
func (*TranslationMetadata) WithShortShortDescriptionText ¶ added in v2.0.1
func (translationMetadata *TranslationMetadata) WithShortShortDescriptionText(text string) *TranslationMetadata
WithShortShortDescriptionText sets the ShortShortDescriptionText
type VersionControlDetails ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewVersionControlDetails() *VersionControlDetails
NewVersionControlDetails creates a new VersionControlDetails and returns a pointer to it
func (*VersionControlDetails) WithAsOfTimeUTC ¶ added in v2.0.1
func (versionControlDetails *VersionControlDetails) WithAsOfTimeUTC(asOfTimeUTC *time.Time) *VersionControlDetails
WithAsOfTimeUTC sets the AsOfTimeUTC
func (*VersionControlDetails) WithBranch ¶ added in v2.0.1
func (versionControlDetails *VersionControlDetails) WithBranch(branch string) *VersionControlDetails
WithBranch sets the Branch
func (*VersionControlDetails) WithMappedTo ¶ added in v2.0.1
func (versionControlDetails *VersionControlDetails) WithMappedTo(mappedTo *ArtifactLocation) *VersionControlDetails
WithMappedTo sets the MappedTo
func (*VersionControlDetails) WithRepositoryURI ¶ added in v2.0.1
func (versionControlDetails *VersionControlDetails) WithRepositoryURI(repositoryURI string) *VersionControlDetails
WithRepositoryURI sets the RepositoryURI
func (*VersionControlDetails) WithRevisionID ¶ added in v2.0.1
func (versionControlDetails *VersionControlDetails) WithRevisionID(revisionID string) *VersionControlDetails
WithRevisionID sets the RevisionID
func (*VersionControlDetails) WithRevisionTag ¶ added in v2.0.1
func (versionControlDetails *VersionControlDetails) WithRevisionTag(revisionTag string) *VersionControlDetails
WithRevisionTag sets the RevisionTag
type WebRequest ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewWebRequest() *WebRequest
NewWebRequest creates a new WebRequest and returns a pointer to it
func (*WebRequest) SetHeader ¶ added in v2.0.1
func (webRequest *WebRequest) SetHeader(name, value string)
SetHeader ...
func (*WebRequest) SetParameter ¶ added in v2.0.1
func (webRequest *WebRequest) SetParameter(name, value string)
SetParameter ...
func (*WebRequest) WithBody ¶ added in v2.0.1
func (webRequest *WebRequest) WithBody(body *ArtifactContent) *WebRequest
WithBody sets the Body
func (*WebRequest) WithHeaders ¶ added in v2.0.1
func (webRequest *WebRequest) WithHeaders(headers map[string]string) *WebRequest
WithHeaders sets the Headers
func (*WebRequest) WithIndex ¶ added in v2.0.1
func (webRequest *WebRequest) WithIndex(index int) *WebRequest
WithIndex sets the Index
func (*WebRequest) WithMethod ¶ added in v2.0.1
func (webRequest *WebRequest) WithMethod(method string) *WebRequest
WithMethod sets the Method
func (*WebRequest) WithParameters ¶ added in v2.0.1
func (webRequest *WebRequest) WithParameters(parameters map[string]string) *WebRequest
WithParameters sets the Parameters
func (*WebRequest) WithProtocol ¶ added in v2.0.1
func (webRequest *WebRequest) WithProtocol(protocol string) *WebRequest
WithProtocol sets the Protocol
func (*WebRequest) WithTarget ¶ added in v2.0.1
func (webRequest *WebRequest) WithTarget(target string) *WebRequest
WithTarget sets the Target
func (*WebRequest) WithVersion ¶ added in v2.0.1
func (webRequest *WebRequest) WithVersion(version string) *WebRequest
WithVersion sets the Version
type WebResponse ¶ added in v2.0.1
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 ¶ added in v2.0.1
func NewWebResponse() *WebResponse
NewWebResponse creates a new WebResponse and returns a pointer to it
func (*WebResponse) SetHeader ¶ added in v2.0.1
func (webResponse *WebResponse) SetHeader(name, value string)
SetHeader ...
func (*WebResponse) WithBody ¶ added in v2.0.1
func (webResponse *WebResponse) WithBody(body *ArtifactContent) *WebResponse
WithBody sets the Body
func (*WebResponse) WithHeaders ¶ added in v2.0.1
func (webResponse *WebResponse) WithHeaders(headers map[string]string) *WebResponse
WithHeaders sets the Headers
func (*WebResponse) WithIndex ¶ added in v2.0.1
func (webResponse *WebResponse) WithIndex(index int) *WebResponse
WithIndex sets the Index
func (*WebResponse) WithNoResponseReceived ¶ added in v2.0.1
func (webResponse *WebResponse) WithNoResponseReceived(noResponse bool) *WebResponse
WithNoResponseReceived sets the NoResponseReceived
func (*WebResponse) WithProtocol ¶ added in v2.0.1
func (webResponse *WebResponse) WithProtocol(protocol string) *WebResponse
WithProtocol sets the Protocol
func (*WebResponse) WithReasonPhrase ¶ added in v2.0.1
func (webResponse *WebResponse) WithReasonPhrase(reason string) *WebResponse
WithReasonPhrase sets the ReasonPhrase
func (*WebResponse) WithStatusCode ¶ added in v2.0.1
func (webResponse *WebResponse) WithStatusCode(statusCode int) *WebResponse
WithStatusCode sets the StatusCode
func (*WebResponse) WithVersion ¶ added in v2.0.1
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