generative_ai_integration

package
v0.0.0-...-b5277d5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidIntegrationType = errors.New("invalid integration type")

Functions

This section is empty.

Types

type GenerativeAiIntegration

type GenerativeAiIntegration interface {
	ValidateConfig(*validator.Validate) error
	VerifyAuth(ctx context.Context) error
	GenerateCloudPostureQuery(model.GenerativeAiIntegrationRequest) (string, error)
	GenerateLinuxPostureQuery(model.GenerativeAiIntegrationRequest) (string, error)
	GenerateKubernetesPostureQuery(model.GenerativeAiIntegrationRequest) (string, error)
	GenerateVulnerabilityQuery(model.GenerativeAiIntegrationRequest) (string, error)
	GenerateSecretQuery(model.GenerativeAiIntegrationRequest) (string, error)
	GenerateMalwareQuery(model.GenerativeAiIntegrationRequest) (string, error)
	Message(ctx context.Context, message string, dataChan chan string) error
	EncryptSecret(aes encryption.AES) error
	DecryptSecret(aes encryption.AES) error
}

GenerativeAiIntegration is the interface for all integrations

func NewGenerativeAiIntegrationFromDBEntry

func NewGenerativeAiIntegrationFromDBEntry(ctx context.Context, integrationType string, config json.RawMessage) (GenerativeAiIntegration, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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