Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionResult ¶
type ExecutionResult struct { Status ExecutionStatus `json:"status"` AssessmentId string `json:"assessmentId"` ComponentId string `json:"componentId"` ControlId string `json:"controlId"` TaskId string `json:"taskId"` ActivityId string `json:"activityId"` Error error `json:"error"` Subject Subject `json:"subject"` Observations []Observation `json:"observations"` Findings []Finding `json:"findings"` Risks []Risk `json:"risks"` Logs []LogEntry `json:"logs"` }
ExecutionResult holds the result of an compliance check execution for each subject.
type ExecutionStatus ¶
type ExecutionStatus int
const ( ExecutionStatusSuccess ExecutionStatus = iota ExecutionStatusFailure )
type Finding ¶
type Finding struct { Id string `json:"id"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Props []domain.Property `json:"props,omitempty"` Links []domain.Link `json:"links,omitempty"` Remarks string `json:"remarks,omitempty"` SubjectId string `json:"subjectId,omitempty"` }
type LogEntry ¶
type LogEntry struct { Title string `json:"title"` SubjectId string `json:"subjectId"` Description string `json:"description"` Start time.Time `json:"start"` End time.Time `json:"end"` Remarks string `json:"remarks,omitempty"` Props []domain.Property `json:"props,omitempty"` Links []domain.Link `json:"links,omitempty"` }
type Observation ¶
type Observation struct { Id string `json:"id"` Title string `json:"title"` Description string `json:"description"` Props []domain.Property `json:"props"` Links []domain.Link `json:"links"` Remarks string `json:"remarks"` SubjectId string `json:"subjectId"` Collected time.Time `json:"collected"` Expires time.Time `json:"expires"` RelevantEvidence []Evidence `json:"relevantEvidence"` }
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor(s event.Subscriber[ExecutionResult], svc *service.PlanService) *Processor
type Subject ¶
type Subject struct { Id string `json:"id"` SubjectId string `json:"subjectId"` Type domain.SubjectType `json:"type"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Props []domain.Property `json:"props,omitempty"` Links []domain.Link `json:"links,omitempty"` Remarks string `json:"remarks,omitempty"` }
Click to show internal directories.
Click to hide internal directories.