usecase

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIgnorePolicy

func NewIgnorePolicy(ctx context.Context,
	dbClient interfaces.Database,
	genAI interfaces.GenAI,
	input NewIgnorePolicyInput,
) error

Types

type NewIgnorePolicyInput

type NewIgnorePolicyInput struct {
	AlertIDs         []types.AlertID
	BasePolicyFile   string
	TestDataDir      string
	TestDataRegoPath string
	OverWrite        bool
}

func (NewIgnorePolicyInput) Validate

func (x NewIgnorePolicyInput) Validate() error

type Option

type Option func(*UseCase)

func WithDatabase

func WithDatabase(db interfaces.Database) Option

func WithGenAI

func WithGenAI(genAI interfaces.GenAI) Option

type UseCase

type UseCase struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *UseCase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL