Documentation
¶
Index ¶
- Variables
- func GetUserTypeString(ut UserType) string
- type Activity
- type ActivityAggregations
- type ActivityFilter
- type ActivityHasIssue
- type ActivityResult
- type ActivityStatusValue
- type BaseIssueRepository
- type BaseService
- type Component
- type ComponentAggregations
- type ComponentFilter
- type ComponentInstance
- type ComponentInstanceAggregations
- type ComponentInstanceFilter
- type ComponentInstanceResult
- type ComponentResult
- type ComponentVersion
- type ComponentVersionAggregations
- type ComponentVersionFilter
- type ComponentVersionResult
- type Cursor
- type Cvss
- type Evidence
- type EvidenceAggregations
- type EvidenceFilter
- type EvidenceResult
- type EvidenceType
- type HasCursor
- type HeurekaEntity
- type HeurekaFilter
- type Issue
- type IssueAggregations
- type IssueCount
- type IssueFilter
- type IssueList
- type IssueListOptions
- type IssueMatch
- type IssueMatchChange
- type IssueMatchChangeAction
- type IssueMatchChangeFilter
- type IssueMatchChangeResult
- type IssueMatchFilter
- type IssueMatchResult
- type IssueMatchStatusValue
- type IssueRepository
- type IssueRepositoryAggregations
- type IssueRepositoryFilter
- type IssueRepositoryResult
- type IssueRepositoryService
- type IssueResult
- type IssueType
- type IssueTypeCounts
- type IssueVariant
- type IssueVariantAggregations
- type IssueVariantFilter
- type IssueVariantResult
- type IssueWithAggregations
- type List
- type ListOptions
- type Metadata
- type Page
- type PageInfo
- type Paginated
- type ResultList
- type ScannerRun
- type Service
- type ServiceAggregations
- type ServiceFilter
- type ServiceIssueVariant
- type ServiceIssueVariantFilter
- type ServiceResult
- type ServiceWithAggregations
- type Severity
- type SeverityFilter
- type SeverityValues
- type SupportGroup
- type SupportGroupAggregations
- type SupportGroupFilter
- type SupportGroupResult
- type SupportGroupService
- type SupportGroupUser
- type TimeFilter
- type User
- type UserAggregations
- type UserFilter
- type UserResult
- type UserType
- type WithCursor
Constants ¶
This section is empty.
Variables ¶
View Source
var AllActivityStatusValues = []string{ ActivityStatusValuesOpen.String(), ActivityStatusValuesClosed.String(), ActivityStatusValuesInProgress.String(), }
View Source
var AllEvidenceTypeValues = []string{ EvidenceTypeValuesReOpen.String(), EvidenceTypeValuesRiskAccepted.String(), EvidenceTypeValuesFalsePositive.String(), EvidenceTypeValuesMitigated.String(), EvidenceTypeValuesSeverityAdjustment.String(), }
View Source
var AllIssueMatchChangeActions = []string{ IssueMatchChangeActionAdd.String(), IssueMatchChangeActionRemove.String(), }
View Source
var AllIssueMatchStatusValues = []string{ IssueMatchStatusValuesNew.String(), IssueMatchStatusValuesRiskAccepted.String(), IssueMatchStatusValuesFalsePositive.String(), IssueMatchStatusValuesMitigated.String(), }
View Source
var AllIssueTypes = []string{ IssueTypeVulnerability.String(), IssueTypePolicyViolation.String(), IssueTypeSecurityEvent.String(), }
Functions ¶
func GetUserTypeString ¶
Types ¶
type Activity ¶
type ActivityAggregations ¶
type ActivityAggregations struct { }
type ActivityFilter ¶
type ActivityHasIssue ¶
type ActivityResult ¶
type ActivityResult struct { WithCursor *ActivityAggregations *Activity }
type ActivityStatusValue ¶
type ActivityStatusValue string
const ( ActivityStatusValuesOpen ActivityStatusValue = "open" ActivityStatusValuesClosed ActivityStatusValue = "closed" ActivityStatusValuesInProgress ActivityStatusValue = "in_progress" )
func NewActivityStatusValue ¶
func NewActivityStatusValue(s string) ActivityStatusValue
func (ActivityStatusValue) String ¶
func (e ActivityStatusValue) String() string
type BaseIssueRepository ¶
type BaseService ¶
type BaseService struct { Metadata Id int64 `json:"id"` CCRN string `json:"ccrn"` SupportGroup *SupportGroup `json:"support_group,omitempty"` SupportGroupId int64 `db:"service_support_group_id"` Owners []User `json:"owners,omitempty"` Activities []Activity `json:"activities,omitempty"` Priority int64 `json:"priority"` }
type ComponentAggregations ¶
type ComponentAggregations struct { }
type ComponentFilter ¶
type ComponentInstance ¶
type ComponentInstance struct { Metadata Id int64 `json:"id"` CCRN string `json:"ccrn"` Count int16 `json:"count"` ComponentVersion *ComponentVersion `json:"component_version,omitempty"` ComponentVersionId int64 `db:"componentinstance_component_version_id"` Service *Service `json:"service,omitempty"` ServiceId int64 `db:"componentinstance_service_id"` }
type ComponentInstanceAggregations ¶
type ComponentInstanceAggregations struct { }
type ComponentInstanceFilter ¶
type ComponentInstanceFilter struct { Paginated IssueMatchId []*int64 `json:"issue_match_id"` ServiceId []*int64 `json:"service_id"` ServiceCcrn []*string `json:"service_ccrn"` ComponentVersionId []*int64 `json:"component_version_id"` Id []*int64 `json:"id"` CCRN []*string `json:"ccrn"` Search []*string `json:"search"` }
type ComponentInstanceResult ¶
type ComponentInstanceResult struct { WithCursor *ComponentInstance *ComponentInstanceAggregations }
type ComponentResult ¶
type ComponentResult struct { WithCursor *ComponentAggregations *Component }
type ComponentVersion ¶
type ComponentVersion struct { Metadata Id int64 `json:"id"` Version string `json:"version"` Component *Component `json:"component,omitempty"` ComponentId int64 `db:"componentversion_component_id"` ComponentInstances []ComponentInstance `json:"component_instances,omitempty"` Issues []Issue `json:"issues,omitempty"` }
type ComponentVersionAggregations ¶
type ComponentVersionAggregations struct { }
type ComponentVersionFilter ¶
type ComponentVersionResult ¶
type ComponentVersionResult struct { WithCursor *ComponentVersion *ComponentVersionAggregations }
type Evidence ¶
type Evidence struct { Metadata Id int64 `json:"id"` Description string `json:"description"` Type EvidenceType `json:"type"` RaaEnd time.Time `json:"raa_end"` Severity Severity `json:"severity"` User *User `json:"user,omitempty"` UserId int64 `db:"evidence_author_id"` Activity *Activity `json:"activity,omitempty"` ActivityId int64 `db:"evidence_activity_id"` }
type EvidenceAggregations ¶
type EvidenceAggregations struct { }
type EvidenceFilter ¶
type EvidenceResult ¶
type EvidenceResult struct { WithCursor *Evidence *EvidenceAggregations }
type EvidenceType ¶
type EvidenceType string
const ( EvidenceTypeValuesRiskAccepted EvidenceType = "risk_accepted" EvidenceTypeValuesMitigated EvidenceType = "mitigated" EvidenceTypeValuesSeverityAdjustment EvidenceType = "severity_adjustment" EvidenceTypeValuesFalsePositive EvidenceType = "false_positive" EvidenceTypeValuesReOpen EvidenceType = "reopen" )
func NewEvidenceTypeValue ¶
func NewEvidenceTypeValue(s string) EvidenceType
func (EvidenceType) String ¶
func (e EvidenceType) String() string
type HeurekaEntity ¶
type HeurekaEntity interface { Activity | ActivityAggregations | ActivityHasIssue | IssueVariant | IssueVariantAggregations | BaseIssueRepository | IssueRepository | IssueRepositoryAggregations | ResultList | ListOptions | PageInfo | Paginated | Severity | Cvss | Component | ComponentAggregations | ComponentInstance | ComponentInstanceAggregations | ComponentVersion | ComponentVersionAggregations | Evidence | EvidenceAggregations | BaseService | Service | ServiceAggregations | ServiceWithAggregations | SupportGroup | SupportGroupAggregations | SupportGroupService | SupportGroupUser | User | UserAggregations | IssueWithAggregations | IssueAggregations | Issue | IssueMatch | IssueMatchChange | HeurekaFilter | IssueCount | IssueTypeCounts | ServiceIssueVariant }
type HeurekaFilter ¶
type HeurekaFilter interface { IssueMatchFilter | IssueMatchChangeFilter | IssueFilter | UserFilter | SupportGroupFilter | ServiceFilter | ComponentInstanceFilter | TimeFilter | IssueVariantFilter | ActivityFilter | EvidenceFilter | ComponentFilter | ComponentVersionFilter | IssueRepositoryFilter | SeverityFilter }
type Issue ¶
type Issue struct { Metadata Id int64 `json:"id"` Type IssueType `json:"type"` PrimaryName string `json:"primary_name"` Description string `json:"description"` IssueVariants []IssueVariant `json:"issue_variants,omitempty"` IssueMatches []IssueMatch `json:"issue_matches,omitempty"` ComponentVersions []ComponentVersion `json:"component_versions,omitempty"` Activity []Activity `json:"activity,omitempty"` }
type IssueAggregations ¶
type IssueCount ¶
type IssueFilter ¶
type IssueFilter struct { Paginated PrimaryName []*string `json:"primary_name"` ServiceCCRN []*string `json:"service_ccrn"` Type []*string `json:"type"` Id []*int64 `json:"id"` ActivityId []*int64 `json:"activity_id"` IssueMatchId []*int64 `json:"issue_match_id"` ComponentVersionId []*int64 `json:"component_version_id"` IssueVariantId []*int64 `json:"issue_variant_id"` Search []*string `json:"search"` IssueMatchStatus []*string `json:"issue_match_status"` IssueMatchDiscoveryDate *TimeFilter `json:"issue_match_discovery_date"` IssueMatchTargetRemediationDate *TimeFilter `json:"issue_match_target_remediation_date"` }
type IssueList ¶
type IssueList struct { *List[IssueResult] VulnerabilityCount *int64 PolicyViolationCount *int64 SecurityEventCount *int64 }
type IssueListOptions ¶
type IssueListOptions struct { ListOptions ShowIssueTypeCounts bool }
type IssueMatch ¶
type IssueMatch struct { Metadata Id int64 `json:"id"` Status IssueMatchStatusValue `json:"status"` User *User `json:"user,omitempty"` UserId int64 `json:"user_id"` Severity Severity `json:"severity,omitempty"` Evidences []Evidence `json:"evidence,omitempty"` ComponentInstance *ComponentInstance `json:"component_instance,omitempty"` ComponentInstanceId int64 `json:"component_instance_id"` Issue *Issue `json:"issue,omitempty"` IssueId int64 `json:"issue_id"` RemediationDate time.Time `json:"remediation_date"` TargetRemediationDate time.Time `json:"target_remediation_date"` }
type IssueMatchChange ¶
type IssueMatchChangeAction ¶
type IssueMatchChangeAction string
const ( IssueMatchChangeActionAdd IssueMatchChangeAction = "add" IssueMatchChangeActionRemove IssueMatchChangeAction = "remove" )
func NewIssueMatchChangeAction ¶
func NewIssueMatchChangeAction(s string) IssueMatchChangeAction
func (IssueMatchChangeAction) String ¶
func (e IssueMatchChangeAction) String() string
type IssueMatchChangeFilter ¶
type IssueMatchChangeResult ¶
type IssueMatchChangeResult struct { WithCursor *IssueMatchChange }
type IssueMatchFilter ¶
type IssueMatchFilter struct { Paginated Id []*int64 `json:"id"` AffectedServiceCCRN []*string `json:"affected_service_ccrn"` SeverityValue []*string `json:"severity_value"` Status []*string `json:"status"` IssueId []*int64 `json:"issue_id"` EvidenceId []*int64 `json:"evidence_id"` ComponentInstanceId []*int64 `json:"component_instance_id"` SupportGroupCCRN []*string `json:"support_group_ccrn"` Search []*string `json:"search"` ComponentCCRN []*string `json:"component_ccrn"` PrimaryName []*string `json:"primary_name"` IssueType []*string `json:"issue_type"` }
type IssueMatchResult ¶
type IssueMatchResult struct { WithCursor *IssueMatch }
type IssueMatchStatusValue ¶
type IssueMatchStatusValue string
const ( IssueMatchStatusValuesNew IssueMatchStatusValue = "new" IssueMatchStatusValuesRiskAccepted IssueMatchStatusValue = "risk_accepted" IssueMatchStatusValuesFalsePositive IssueMatchStatusValue = "false_positive" IssueMatchStatusValuesMitigated IssueMatchStatusValue = "mitigated" IssueMatchStatusValuesNone IssueMatchStatusValue = "none" )
func NewIssueMatchStatusValue ¶
func NewIssueMatchStatusValue(s string) IssueMatchStatusValue
func (IssueMatchStatusValue) String ¶
func (e IssueMatchStatusValue) String() string
type IssueRepository ¶
type IssueRepository struct { BaseIssueRepository IssueRepositoryService }
type IssueRepositoryAggregations ¶
type IssueRepositoryAggregations struct { }
type IssueRepositoryFilter ¶
type IssueRepositoryFilter struct { Paginated Id []*int64 `json:"id"` ServiceId []*int64 `json:"service_id"` Name []*string `json:"name"` ServiceCCRN []*string `json:"service_ccrn"` }
func NewIssueRepositoryFilter ¶
func NewIssueRepositoryFilter() *IssueRepositoryFilter
type IssueRepositoryResult ¶
type IssueRepositoryResult struct { WithCursor *IssueRepositoryAggregations *IssueRepository }
type IssueRepositoryService ¶
type IssueResult ¶
type IssueResult struct { WithCursor *IssueAggregations *Issue *IssueVariant }
type IssueTypeCounts ¶
type IssueTypeCounts struct { VulnerabilityCount int64 `json:"vulnerability_count"` PolicyViolationCount int64 `json:"policy_violation_count"` SecurityEventCount int64 `json:"security_event_count"` }
func (*IssueTypeCounts) TotalIssueCount ¶
func (itc *IssueTypeCounts) TotalIssueCount() int64
type IssueVariant ¶
type IssueVariant struct { Metadata Id int64 `json:"id"` IssueRepositoryId int64 `json:"issue_repository_id"` IssueRepository *IssueRepository `json:"issue_repository"` SecondaryName string `json:"secondary_name"` IssueId int64 `json:"issue_id"` Issue *Issue `json:"issue"` Severity Severity `json:"severity"` Description string `json:"description"` }
type IssueVariantAggregations ¶
type IssueVariantAggregations struct { }
type IssueVariantFilter ¶
type IssueVariantFilter struct { Paginated Id []*int64 `json:"id"` SecondaryName []*string `json:"secondary_name"` IssueId []*int64 `json:"issue_id"` IssueRepositoryId []*int64 `json:"issue_repository_id"` ServiceId []*int64 `json:"service_id"` IssueMatchId []*int64 `json:"issue_match_id"` }
func NewIssueVariantFilter ¶
func NewIssueVariantFilter() *IssueVariantFilter
type IssueVariantResult ¶
type IssueVariantResult struct { WithCursor *IssueVariantAggregations *IssueVariant }
type IssueWithAggregations ¶
type IssueWithAggregations struct { IssueAggregations Issue }
type ListOptions ¶
type ListOptions struct { ShowTotalCount bool `json:"show_total_count"` ShowPageInfo bool `json:"show_page_info"` IncludeAggregations bool `json:"include_aggregations"` }
func NewListOptions ¶
func NewListOptions() *ListOptions
type PageInfo ¶
type PageInfo struct { HasNextPage *bool `json:"has_next_page,omitempty"` HasPreviousPage *bool `json:"has_previous_page,omitempty"` IsValidPage *bool `json:"is_valid_page,omitempty"` PageNumber *int `json:"page_number,omitempty"` NextPageAfter *string `json:"next_page_after,omitempty"` StartCursor *string `json:"deprecated,omitempty"` //@todo remove as deprecated EndCursor *string `json:"end_cursor,omitempty"` //@todo remove as deprecated Pages []Page `json:"pages,omitempty"` }
type Paginated ¶
func MaxPaginated ¶
func MaxPaginated() Paginated
type ResultList ¶
type ScannerRun ¶
type ScannerRun struct { RunID int64 `json:"run_id"` UUID string `json:"uuid"` Tag string `json:"tag"` StartRun time.Time `json:"start_run"` EndRun time.Time `json:"end_run"` Completed bool `json:"is_completed"` }
func (ScannerRun) IsCompleted ¶
func (sc ScannerRun) IsCompleted() bool
type Service ¶
type Service struct { BaseService IssueRepositoryService }
type ServiceAggregations ¶
type ServiceFilter ¶
type ServiceFilter struct { Paginated SupportGroupCCRN []*string `json:"support_group_ccrn"` Id []*int64 `json:"id"` CCRN []*string `json:"ccrn"` OwnerName []*string `json:"owner_name"` OwnerId []*int64 `json:"owner_id"` ActivityId []*int64 `json:"activity_id"` ComponentInstanceId []*int64 `json:"component_instance_id"` IssueRepositoryId []*int64 `json:"issue_repository_id"` SupportGroupId []*int64 `json:"support_group_id"` Search []*string `json:"search"` }
type ServiceIssueVariant ¶
type ServiceIssueVariant struct { IssueVariant ServiceId int64 `json:"service_id"` Priority int64 `json:"priority"` }
type ServiceIssueVariantFilter ¶
type ServiceIssueVariantFilter struct { Paginated ComponentInstanceId []*int64 `json:"component_instance_id"` IssueId []*int64 `json:"issue_id"` }
func NewServiceIssueVariantFilter ¶
func NewServiceIssueVariantFilter() *ServiceIssueVariantFilter
type ServiceResult ¶
type ServiceResult struct { WithCursor *ServiceAggregations *Service }
type ServiceWithAggregations ¶
type ServiceWithAggregations struct { Service ServiceAggregations }
type Severity ¶
func NewSeverity ¶
func NewSeverityFromRating ¶
func NewSeverityFromRating(rating SeverityValues) Severity
type SeverityFilter ¶
type SeverityValues ¶
type SeverityValues string
const ( SeverityValuesNone SeverityValues = "None" SeverityValuesLow SeverityValues = "Low" SeverityValuesMedium SeverityValues = "Medium" SeverityValuesHigh SeverityValues = "High" SeverityValuesCritical SeverityValues = "Critical" )
type SupportGroup ¶
type SupportGroupAggregations ¶
type SupportGroupAggregations struct { }
type SupportGroupFilter ¶
type SupportGroupResult ¶
type SupportGroupResult struct { WithCursor *SupportGroupAggregations *SupportGroup }
type SupportGroupService ¶
type SupportGroupUser ¶
type TimeFilter ¶
type UserAggregations ¶
type UserAggregations struct { }
type UserFilter ¶
type UserResult ¶
type UserResult struct { WithCursor *UserAggregations *User }
type WithCursor ¶
type WithCursor struct {
Value string
}
func (WithCursor) Cursor ¶
func (c WithCursor) Cursor() *string
Source Files
¶
- activity.go
- common.go
- component.go
- component_instance.go
- component_version.go
- evidence.go
- issue.go
- issue_match.go
- issue_match_change.go
- issue_repository.go
- issue_repository_service.go
- issue_variant.go
- scanner_run.go
- service.go
- severity.go
- support_group.go
- support_group_service.go
- support_group_user.go
- user.go
Click to show internal directories.
Click to hide internal directories.