Documentation
¶
Index ¶
- type App
- func (a *App) CloseFinding(ctx context.Context, finding *events.SecurityHubV2Finding, statusID int32, ...) error
- func (a *App) LoadRulesFromS3(ctx context.Context, loader *filters.S3RulesLoader, bucket, prefix string) ([]filters.AutoCloseRule, error)
- func (a *App) ParseEvent(e events.SecurityHubEventInput) (*events.SecurityHubV2Finding, error)
- func (a *App) Process(ctx context.Context, evt events.SecurityHubEventInput) error
- func (a *App) SendNotification(ctx context.Context, finding *events.SecurityHubV2Finding) error
- type Config
- type EventDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Config *Config
FilterEngine *filters.FilterEngine
FindingCloser *actions.FindingCloser
Notifier notifiers.Notifier
Logger *slog.Logger
}
func (*App) CloseFinding ¶
func (*App) LoadRulesFromS3 ¶
func (a *App) LoadRulesFromS3(ctx context.Context, loader *filters.S3RulesLoader, bucket, prefix string) ([]filters.AutoCloseRule, error)
func (*App) ParseEvent ¶
func (a *App) ParseEvent(e events.SecurityHubEventInput) (*events.SecurityHubV2Finding, error)
func (*App) SendNotification ¶
type Config ¶
type EventDetail ¶
type EventDetail struct {
Findings []json.RawMessage `json:"findings"`
}
Click to show internal directories.
Click to hide internal directories.