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 ComponentInstanceType
- 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 IssueSeverityCounts
- type IssueType
- type IssueTypeCounts
- type IssueVariant
- type IssueVariantAggregations
- type IssueVariantFilter
- type IssueVariantResult
- type IssueWithAggregations
- type Json
- type List
- type ListOptions
- type Metadata
- type Order
- type OrderByField
- type OrderDirection
- type Page
- type PageInfo
- type Paginated
- type PaginatedX
- type ResultList
- type ScannerRun
- type ScannerRunFilter
- type Service
- type ServiceAggregations
- type ServiceFilter
- type ServiceIssueVariant
- type ServiceIssueVariantFilter
- type ServiceResult
- type ServiceWithAggregations
- type Severity
- type SeverityFilter
- type SeverityValues
- type StateFilterType
- 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 AllComponentInstanceType = []string{ ComponentInstanceTypeUnknown.String(), ComponentInstanceTypeProject.String(), ComponentInstanceTypeServer.String(), ComponentInstanceTypeSecurityGroup.String(), ComponentInstanceTypeSecurityGroupRule.String(), ComponentInstanceTypeDnsZone.String(), ComponentInstanceTypeFloatingIp.String(), ComponentInstanceTypeRbacPolicy.String(), ComponentInstanceTypeUser.String(), ComponentInstanceTypeContainer.String(), ComponentInstanceTypeRecordSet.String(), ComponentInstanceTypeProjectConfiguration.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(), }
View Source
var AllSeverityValues = []SeverityValues{ SeverityValuesNone, SeverityValuesLow, SeverityValuesMedium, SeverityValuesHigh, SeverityValuesCritical, }
View Source
var StateFilterTypeMap = map[StateFilterType]string{ Active: "active", Deleted: "deleted", }
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"`
Domain string `json:"domain"`
Region string `json:"region"`
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 ComponentFilter struct {
PaginatedX
CCRN []*string `json:"ccrn"`
ServiceCCRN []*string `json:"service_ccrn"`
Id []*int64 `json:"id"`
ComponentVersionId []*int64 `json:"component_version_id"`
State []StateFilterType `json:"state"`
}
type ComponentInstance ¶
type ComponentInstance struct {
Metadata
Id int64 `json:"id"`
CCRN string `json:"ccrn"`
Region string `json:"region"`
Cluster string `json:"cluster"`
Namespace string `json:"namespace"`
Domain string `json:"domain"`
Project string `json:"project"`
Pod string `json:"pod"`
Container string `json:"container"`
Type ComponentInstanceType `json:"type"`
ParentId int64 `json:"parent_id,omitempty"`
Context *Json `json:"context"`
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 {
PaginatedX
IssueMatchId []*int64 `json:"issue_match_id"`
ServiceId []*int64 `json:"service_id"`
ServiceCcrn []*string `json:"service_ccrn"`
ComponentVersionId []*int64 `json:"component_version_id"`
ComponentVersionVersion []*string `json:"component_version_version"`
Id []*int64 `json:"id"`
CCRN []*string `json:"ccrn"`
Region []*string `json:"region"`
Cluster []*string `json:"cluster"`
Namespace []*string `json:"namespace"`
Domain []*string `json:"domain"`
Project []*string `json:"project"`
Pod []*string `json:"pod"`
Container []*string `json:"container"`
Type []*string `json:"type"`
ParentId []*int64 `json:"parent_id"`
Context []*Json `json:"context"`
Search []*string `json:"search"`
State []StateFilterType `json:"state"`
}
type ComponentInstanceResult ¶
type ComponentInstanceResult struct {
WithCursor
*ComponentInstance
*ComponentInstanceAggregations
}
type ComponentInstanceType ¶
type ComponentInstanceType string
const ( ComponentInstanceTypeUnknown ComponentInstanceType = "Unknown" ComponentInstanceTypeProject ComponentInstanceType = "Project" ComponentInstanceTypeServer ComponentInstanceType = "Server" ComponentInstanceTypeSecurityGroup ComponentInstanceType = "SecurityGroup" ComponentInstanceTypeSecurityGroupRule ComponentInstanceType = "SecurityGroupRule" ComponentInstanceTypeDnsZone ComponentInstanceType = "DnsZone" ComponentInstanceTypeFloatingIp ComponentInstanceType = "FloatingIp" ComponentInstanceTypeRbacPolicy ComponentInstanceType = "RbacPolicy" ComponentInstanceTypeUser ComponentInstanceType = "User" ComponentInstanceTypeContainer ComponentInstanceType = "Container" ComponentInstanceTypeRecordSet ComponentInstanceType = "RecordSet" ComponentInstanceTypeProjectConfiguration ComponentInstanceType = "ProjectConfiguration" )
func NewComponentInstanceType ¶
func NewComponentInstanceType(s string) ComponentInstanceType
func (ComponentInstanceType) Index ¶
func (e ComponentInstanceType) Index() int
func (ComponentInstanceType) String ¶
func (e ComponentInstanceType) String() string
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"`
Tag string `json:"tag"`
Repository string `json:"repository"`
Organization string `json:"organization"`
ComponentInstances []ComponentInstance `json:"component_instances,omitempty"`
Issues []Issue `json:"issues,omitempty"`
}
type ComponentVersionAggregations ¶
type ComponentVersionAggregations struct {
}
type ComponentVersionFilter ¶
type ComponentVersionFilter struct {
PaginatedX
Id []*int64 `json:"id"`
IssueId []*int64 `json:"issue_id"`
ComponentCCRN []*string `json:"component_ccrn"`
ComponentId []*int64 `json:"component_id"`
// Used for ordering by severity/rating
IssueRepositoryId []*int64 `json:"issue_repository_id"`
Version []*string `json:"version"`
ServiceId []*int64 `json:"service_id"`
ServiceCCRN []*string `json:"service_ccrn"`
State []StateFilterType `json:"state"`
Tag []*string `json:"tag"`
Repository []*string `json:"repository"`
Organization []*string `json:"organization"`
}
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 |
ComponentResult |
ComponentAggregations |
ComponentInstance |
ComponentInstanceResult |
ComponentInstanceAggregations |
ComponentVersion |
ComponentVersionResult |
ComponentVersionAggregations |
Evidence |
EvidenceAggregations |
BaseService |
Service |
ServiceAggregations |
ServiceWithAggregations |
ServiceResult |
SupportGroup |
SupportGroupResult |
SupportGroupAggregations |
SupportGroupService |
SupportGroupUser |
User |
UserAggregations |
IssueWithAggregations |
IssueAggregations |
Issue |
IssueResult |
IssueMatch |
IssueMatchResult |
IssueMatchChange |
HeurekaFilter |
IssueCount |
IssueTypeCounts |
IssueSeverityCounts |
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 {
PaginatedX
PrimaryName []*string `json:"primary_name"`
ServiceCCRN []*string `json:"service_ccrn"`
AllServices bool `json:"all_services"`
HasIssueMatches bool `json:"has_issue_matches"`
SupportGroupCCRN []*string `json:"support_group_ccrn"`
Type []*string `json:"type"`
Id []*int64 `json:"id"`
ActivityId []*int64 `json:"activity_id"`
IssueMatchId []*int64 `json:"issue_match_id"`
ComponentId []*int64 `json:"component_id"`
ComponentVersionId []*int64 `json:"component_version_id"`
IssueVariantId []*int64 `json:"issue_variant_id"`
IssueRepositoryId []*int64 `json:"issue_repository_id"`
ServiceId []*int64 `json:"service_id"`
Search []*string `json:"search"`
IssueMatchStatus []*string `json:"issue_match_status"`
IssueMatchSeverity []*string `json:"issue_match_severity"`
IssueMatchDiscoveryDate *TimeFilter `json:"issue_match_discovery_date"`
IssueMatchTargetRemediationDate *TimeFilter `json:"issue_match_target_remediation_date"`
Unique bool `json:"unique"`
State []StateFilterType `json:"state"`
}
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 {
PaginatedX
Id []*int64 `json:"id"`
ServiceCCRN []*string `json:"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"`
ServiceId []*int64 `json:"service_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"`
State []StateFilterType `json:"state"`
ServiceOwnerUsername []*string `json:"service_owner_username"`
ServiceOwnerUniqueUserId []*string `json:"service_owner_unique_user_id"`
}
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"`
State []StateFilterType `json:"state"`
}
func NewIssueRepositoryFilter ¶
func NewIssueRepositoryFilter() *IssueRepositoryFilter
type IssueRepositoryResult ¶
type IssueRepositoryResult struct {
WithCursor
*IssueRepositoryAggregations
*IssueRepository
}
type IssueRepositoryService ¶
type IssueResult ¶
type IssueResult struct {
WithCursor
*IssueAggregations `json:"issue_aggregations"`
*Issue `json:"issue"`
*IssueVariant `json:"issue_variant"`
}
type IssueSeverityCounts ¶
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"`
ExternalUrl string `json:"external_url"`
}
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"`
State []StateFilterType `json:"state"`
}
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"`
Order []Order
}
func NewListOptions ¶
func NewListOptions() *ListOptions
type Order ¶
type Order struct {
By OrderByField
Direction OrderDirection
}
type OrderByField ¶
type OrderByField int
const ( ComponentInstanceCcrn OrderByField = iota ComponentInstanceId ComponentInstanceRegion ComponentInstanceCluster ComponentInstanceNamespace ComponentInstanceDomain ComponentInstanceProject ComponentInstancePod ComponentInstanceContainer ComponentInstanceTypeOrder ComponentVersionId ComponentVersionRepository ComponentId ComponentCcrn IssueId IssuePrimaryName IssueVariantRating IssueMatchId IssueMatchRating IssueMatchTargetRemediationDate CriticalCount HighCount MediumCount LowCount NoneCount SupportGroupId SupportGroupCcrn ServiceId ServiceCcrn )
type OrderDirection ¶
type OrderDirection int
const ( OrderDirectionAsc OrderDirection = iota OrderDirectionDesc )
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 PaginatedX ¶
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 ScannerRunFilter ¶
type ScannerRunFilter struct {
Paginated
Tag []string `json:"tag"`
Completed bool `json:"is_completed"`
}
func (ScannerRunFilter) HasArgs ¶
func (srf ScannerRunFilter) HasArgs() bool
type Service ¶
type Service struct {
BaseService
IssueRepositoryService
}
type ServiceAggregations ¶
type ServiceFilter ¶
type ServiceFilter struct {
PaginatedX
SupportGroupCCRN []*string `json:"support_group_ccrn"`
Id []*int64 `json:"id"`
CCRN []*string `json:"ccrn"`
Domain []*string `json:"domian"`
Region []*string `json:"region"`
OwnerName []*string `json:"owner_name"`
OwnerId []*int64 `json:"owner_id"`
IssueId []*int64 `json:"issue_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"`
State []StateFilterType `json:"state"`
}
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"`
State []StateFilterType `json:"state"`
}
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" )
func (SeverityValues) String ¶
func (s SeverityValues) String() string
type StateFilterType ¶
type StateFilterType int
const ( Active StateFilterType = iota Deleted )
func (StateFilterType) String ¶
func (sft StateFilterType) String() string
type SupportGroup ¶
type SupportGroupAggregations ¶
type SupportGroupAggregations struct {
}
type SupportGroupFilter ¶
type SupportGroupFilter struct {
PaginatedX
Id []*int64 `json:"id"`
ServiceId []*int64 `json:"service_id"`
UserId []*int64 `json:"user_id"`
IssueId []*int64 `json:"issue_id"`
CCRN []*string `json:"ccrn"`
State []StateFilterType `json:"state"`
}
type SupportGroupResult ¶
type SupportGroupResult struct {
WithCursor
*SupportGroupAggregations
*SupportGroup
}
type SupportGroupService ¶
type SupportGroupUser ¶
type TimeFilter ¶
type UserAggregations ¶
type UserAggregations struct {
}
type UserFilter ¶
type UserFilter struct {
Paginated
Name []*string `json:"name"`
UniqueUserID []*string `json:"uniqueUserId"`
Type []UserType `json:"type"`
Id []*int64 `json:"id"`
SupportGroupId []*int64 `json:"support_group_id"`
ServiceId []*int64 `json:"service_id"`
State []StateFilterType `json:"state"`
Email []*string `json:"email"`
}
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
- order.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.