Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidTask indicates that the task specified does not exist. ErrInvalidTask = errors.New("Invalid Task") // ErrInvalidOptions indicates that the options specified for a task are not valid. ErrInvalidOptions = errors.New("Invalid Options") )
Functions ¶
This section is empty.
Types ¶
type ExpireFindingsTask ¶
type ExpireFindingsTask struct {
// contains filtered or unexported fields
}
ExpireFindingsTask is a maintenance task responsible for expiring the findings that are OPEN and have not been found for a configurable time span.
func (*ExpireFindingsTask) Execute ¶
func (t *ExpireFindingsTask) Execute() (TaskResult, error)
Execute executes the ExpireFindingsTask.
func (*ExpireFindingsTask) Name ¶
func (t *ExpireFindingsTask) Name() string
Name returns this task name.
func (*ExpireFindingsTask) Type ¶
func (t *ExpireFindingsTask) Type() string
Type returns this task type.
type PurgeOrphanTargetsTask ¶ added in v1.2.0
type PurgeOrphanTargetsTask struct {
// contains filtered or unexported fields
}
PurgeOrphanTargetsTask is a maintenance task responsible for removing orphan targets from the database. Orphan targets are targets that are not associated with any team.
func (*PurgeOrphanTargetsTask) Execute ¶ added in v1.2.0
func (t *PurgeOrphanTargetsTask) Execute() (TaskResult, error)
Execute executes the PurgeOrphanTargetsTask.
func (*PurgeOrphanTargetsTask) Name ¶ added in v1.2.0
func (t *PurgeOrphanTargetsTask) Name() string
Name returns this task name.
func (*PurgeOrphanTargetsTask) Type ¶ added in v1.2.0
func (t *PurgeOrphanTargetsTask) Type() string
Type returns this task type.
Click to show internal directories.
Click to hide internal directories.