Documentation ¶
Index ¶
- Variables
- type ComplianceStatusByTargets
- type ComplianceStatusOverTime
- type DocWithMetadata
- type MetadataService
- type PlanService
- func (s *PlanService) ActivatePlan(planId string) error
- func (s *PlanService) ComplianceOverTime(planId string, resultId string) ([]bson.M, error)
- func (s *PlanService) ComplianceStatusByTargets(planId string, resultId string) ([]ComplianceStatusByTargets, error)
- func (s *PlanService) Create(plan *Plan) (string, error)
- func (s *PlanService) CreateActivity(planId string, taskId string, activity Activity) (string, error)
- func (s *PlanService) CreateTask(planId string, task Task) (string, error)
- func (s *PlanService) Findings(planId string, resultId string) ([]bson.M, error)
- func (s *PlanService) GetById(id string) (*Plan, error)
- func (s *PlanService) Observations(planId string, resultId string) ([]bson.M, error)
- func (s *PlanService) RemediationVsTime(planId string, resultId string) ([]RemediationVsTime, error)
- func (s *PlanService) ResultSummary(planId string, resultId string) (PlanSummary, error)
- func (s *PlanService) Results(planId string) ([]bson.M, error)
- func (s *PlanService) Risks(planId string, resultId string) ([]Risk, error)
- func (s *PlanService) SaveResult(planId string, result Result) error
- func (s *PlanService) SaveSubject(subject Subject) error
- type PlanSummary
- type PlansService
- type RemediationVsTime
- type RiskLevels
- type RiskScore
- type RiskSeverity
- type RiskState
- type SSPService
- func (s *SSPService) Create(ssp *domain.SystemSecurityPlan) (string, error)
- func (s *SSPService) Delete(id string) error
- func (s *SSPService) GetByID(id string) (*domain.SystemSecurityPlan, error)
- func (s *SSPService) List() ([]*domain.SystemSecurityPlan, error)
- func (s *SSPService) Update(id string, ssp *domain.SystemSecurityPlan) (*domain.SystemSecurityPlan, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSSPNotFound = errors.New("SSP not found")
Functions ¶
This section is empty.
Types ¶
type DocWithMetadata ¶
type MetadataService ¶
type MetadataService struct { }
func NewMetadataService ¶
func NewMetadataService() *MetadataService
func (*MetadataService) AttachMetadata ¶
type PlanService ¶
type PlanService struct {
// contains filtered or unexported fields
}
func NewPlanService ¶
func NewPlanService(p event.Publisher) *PlanService
func (*PlanService) ActivatePlan ¶
func (s *PlanService) ActivatePlan(planId string) error
func (*PlanService) ComplianceOverTime ¶
func (*PlanService) ComplianceStatusByTargets ¶
func (s *PlanService) ComplianceStatusByTargets(planId string, resultId string) ([]ComplianceStatusByTargets, error)
func (*PlanService) Create ¶
func (s *PlanService) Create(plan *Plan) (string, error)
func (*PlanService) CreateActivity ¶
func (s *PlanService) CreateActivity(planId string, taskId string, activity Activity) (string, error)
func (*PlanService) CreateTask ¶
func (s *PlanService) CreateTask(planId string, task Task) (string, error)
func (*PlanService) GetById ¶
func (s *PlanService) GetById(id string) (*Plan, error)
func (*PlanService) Observations ¶
func (*PlanService) RemediationVsTime ¶
func (s *PlanService) RemediationVsTime(planId string, resultId string) ([]RemediationVsTime, error)
func (*PlanService) ResultSummary ¶
func (s *PlanService) ResultSummary(planId string, resultId string) (PlanSummary, error)
func (*PlanService) Risks ¶
func (s *PlanService) Risks(planId string, resultId string) ([]Risk, error)
func (*PlanService) SaveResult ¶
func (s *PlanService) SaveResult(planId string, result Result) error
func (*PlanService) SaveSubject ¶
func (s *PlanService) SaveSubject(subject Subject) error
type PlanSummary ¶
type PlanSummary struct { Published string `json:"published" yaml:"published"` EndDate string `json:"endDate" yaml:"endDate"` Description string `json:"description" yaml:"description"` Status string `json:"status" yaml:"status"` NumControls int `json:"numControls" yaml:"numControls"` NumSubjects int `json:"numSubjects" yaml:"numSubjects"` NumObservations int `json:"numObservations" yaml:"numObservations"` NumRisks int `json:"numRisks" yaml:"numRisks"` RiskScore RiskScore `json:"riskScore" yaml:"riskScore"` ComplianceStatus float64 `json:"complianceStatus" yaml:"complianceStatus"` RiskLevels RiskLevels `json:"riskLevels" yaml:"riskLevels"` }
type PlansService ¶
type PlansService struct {
// contains filtered or unexported fields
}
func NewPlansService ¶
func NewPlansService(p event.Publisher) *PlansService
type RemediationVsTime ¶
type RiskLevels ¶
type RiskScore ¶
type RiskScore struct { Score int `json:"score" yaml:"score"` Severity RiskSeverity `json:"severity" yaml:"severity"` }
type RiskSeverity ¶
type RiskSeverity string
const ( Medium RiskSeverity = "medium" Low RiskSeverity = "low" High RiskSeverity = "high" )
type SSPService ¶
type SSPService struct {
// contains filtered or unexported fields
}
func NewSSPService ¶
func NewSSPService() *SSPService
func (*SSPService) Create ¶
func (s *SSPService) Create(ssp *domain.SystemSecurityPlan) (string, error)
func (*SSPService) Delete ¶
func (s *SSPService) Delete(id string) error
func (*SSPService) GetByID ¶
func (s *SSPService) GetByID(id string) (*domain.SystemSecurityPlan, error)
func (*SSPService) List ¶
func (s *SSPService) List() ([]*domain.SystemSecurityPlan, error)
func (*SSPService) Update ¶
func (s *SSPService) Update(id string, ssp *domain.SystemSecurityPlan) (*domain.SystemSecurityPlan, error)
Click to show internal directories.
Click to hide internal directories.