handler

package
v0.0.0-...-92b3096 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 84 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EventComplianceScan          = string(utils.NEO4JComplianceScan)
	EventVulnerabilityScan       = string(utils.NEO4JVulnerabilityScan)
	EventSecretScan              = string(utils.NEO4JSecretScan)
	EventMalwareScan             = string(utils.NEO4JMalwareScan)
	EventIntegration             = "integration"
	EventGenerativeAIIntegration = "generative-ai-integration"
	EventAuth                    = "auth"
	EventReports                 = "reports"
	EventSettings                = "settings"
	EventRegistry                = "registry"
	ActionStart                  = "start"
	ActionStop                   = "stop"
	ActionLogout                 = "logout"
	ActionLogin                  = "login"
	ActionInvite                 = "invite"
	ActionInterrupt              = "interrupt"
	ActionCreate                 = "create"
	ActionUpdate                 = "update"
	ActionDelete                 = "delete"
	ActionEnable                 = "enable"
	ActionDisable                = "disable"
	ActionBulk                   = "bulk"
	ActionDownload               = "download"
	ActionNotify                 = "notify"
	ActionResetPassword          = "reset_password"
	ActionVerifyPassword         = "verify_password"
	ActionResetToken             = "reset_token"
	ActionTokenAuth              = "token_auth"
	ActionLogs                   = "logs"
)
View Source
const (
	RevokedAccessTokenIDPrefix = "Revoked-AccessTokenID-"
	UserInviteSendEmail        = "send-invite-email"
	UserInviteGetLink          = "get-invite-link"
)
View Source
const (
	MaxSbomRequestSize      = 500 * 1e6
	DownloadReportURLExpiry = 5 * time.Minute
)
View Source
const (
	MaxPostRequestSize = 1000000 // 1 MB

)

Variables

View Source
var (
	ErrStreamUnsupported             = errors.New("streaming unsupported")
	ErrGenerativeAIIntegrationExists = BadDecoding{
										// contains filtered or unexported fields
	}
)
View Source
var (
	True  = new(bool)
	False = new(bool)

	ErrEmailNotConfigured = ValidatorError{
							// contains filtered or unexported fields
	}
	ErrIncorrectOldPassword = ValidatorError{
							// contains filtered or unexported fields
	}
	ErrdeleteLastAdmin           = errors.New("at least one active admin user required")
	ErrpasswordResetCodeNotFound = NotFoundError{errors.New("code not found")}
	ErruserInviteInvalidCode     = BadDecoding{errors.New("invalid code")}
	ErrregistrationDone          = ForbiddenError{errors.New("cannot register. Please contact your administrator for an invite")}
	ErrCannotDeleteSelfUser      = ForbiddenError{/* contains filtered or unexported fields */}
)
View Source
var (
	CompanyRegex       = regexp.MustCompile("^[A-Za-z][a-zA-Z0-9-\\s@\\.#&!]+$") //nolint:gosimple
	UserNameRegex      = regexp.MustCompile("^[A-Za-z][A-Za-z .'-]+$")           //nolint:gosimple
	MinNamespaceLength = 3
	MaxNamespaceLength = 32
	NamespaceRegex     = regexp.MustCompile(fmt.Sprintf("^[a-z][a-z0-9-]{%d,%d}$", MinNamespaceLength-1, MaxNamespaceLength-1))
	APITokenRegex      = regexp.MustCompile(fmt.Sprintf("^[a-z][a-z0-9-]{%d,%d}\\:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", MinNamespaceLength-1, MaxNamespaceLength-1))
)

Functions

func CleanUpAgentVersion

func CleanUpAgentVersion(ctx context.Context, tagsToKeep []string) error

func FindImageRegistryIDs

func FindImageRegistryIDs(ctx context.Context, imageID string) ([]int32, error)

func FindNodesMatching

func FindNodesMatching(ctx context.Context,
	hostIDs []model.NodeIdentifier,
	imageIDs []model.NodeIdentifier,
	containerIDs []model.NodeIdentifier,
	cloudAccountIDs []model.NodeIdentifier,
	kubernetesClusterIDs []model.NodeIdentifier,
	filter model.ScanFilter) ([]model.NodeIdentifier, error)

func GetAgentVersionList

func GetAgentVersionList(ctx context.Context) ([]string, error)

func GetContainerKubeClusterNameFromID

func GetContainerKubeClusterNameFromID(ctx context.Context, nodeID string) (string, string, error)

func GetFilterHash

func GetFilterHash(filters model.IntegrationFilters) (string, error)

func GetImageFromID

func GetImageFromID(ctx context.Context, nodeID string) (string, string, error)

func GetImagesFromAdvanceFilter

func GetImagesFromAdvanceFilter(ctx context.Context, ids []model.NodeIdentifier, filter reporters.ContainsFilter) ([]model.NodeIdentifier, error)

func GetLatestVersionByMajorMinor

func GetLatestVersionByMajorMinor(versions map[string]*bytes.Buffer) map[string]string

func GetTokenFromRequest

func GetTokenFromRequest(ja *jwtauth.JWTAuth, r *http.Request) (jwt.Token, error)

func IngestAgentVersion

func IngestAgentVersion(ctx context.Context, tagsWithFileServerKeys map[string]string, manual bool) error

func IsAccessTokenRevoked

func IsAccessTokenRevoked(ctx context.Context, accessTokenID string) (bool, error)

func LogoutHandler

func LogoutHandler(requestContext context.Context) error

func NewScanStatus

func NewScanStatus(scanID, status, message string) map[string]interface{}

func NewValidator

func NewValidator() (*validator.Validate, ut.Translator, error)

func PrepareAgentBinariesReleases

func PrepareAgentBinariesReleases(ctx context.Context, versionedTarball map[string]*bytes.Buffer) (map[string]string, error)

func RevokeAccessToken

func RevokeAccessToken(ctx context.Context, accessTokenID string) error

func ScheduleAutoUpgradeForPatchChanges

func ScheduleAutoUpgradeForPatchChanges(ctx context.Context, latest map[string]string) error

func SearchCloudNodeCountHandler

func SearchCloudNodeCountHandler[T reporters.CypherableAndCategorizable](w http.ResponseWriter, r *http.Request, h *Handler)

SearchCloudNodeCountHandler TODO: Handle Generic more gracefully

func SearchCloudNodeHandler

func SearchCloudNodeHandler[T reporters.Cypherable](w http.ResponseWriter, r *http.Request, h *Handler)

func SearchHandler

func SearchHandler[T reporters.Cypherable](w http.ResponseWriter, r *http.Request, h *Handler)

func StartMultiCloudComplianceScan

func StartMultiCloudComplianceScan(ctx context.Context, reqs []model.NodeIdentifier,
	benchmarkTypes []string, isPriority bool) ([]string, string, error)

func StartMultiScan

func StartMultiScan(ctx context.Context,
	genBulkID bool,
	scanType utils.Neo4jScanType,
	scanTriggerCommon model.ScanTriggerCommon,
	actionBuilder func(string, model.NodeIdentifier, int32) (controls.Action, error)) ([]string, string, error)

func StartScanActionBuilder

func StartScanActionBuilder(ctx context.Context, scanType controls.ActionID, additionalBinArgs map[string]string) func(string, model.NodeIdentifier, int32) (controls.Action, error)

func ValidateAPIToken

func ValidateAPIToken(fl validator.FieldLevel) bool

func ValidateCompanyName

func ValidateCompanyName(fl validator.FieldLevel) bool

func ValidateJiraConfig

func ValidateJiraConfig(fl validator.FieldLevel) bool

func ValidateNamespace

func ValidateNamespace(fl validator.FieldLevel) bool

func ValidatePassword

func ValidatePassword(fl validator.FieldLevel) bool

func ValidateUserName

func ValidateUserName(fl validator.FieldLevel) bool

Types

type BadDecoding

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

func (*BadDecoding) Error

func (bd *BadDecoding) Error() string

type ForbiddenError

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

func (*ForbiddenError) Error

func (bd *ForbiddenError) Error() string

type Handler

type Handler struct {
	TokenAuth        *jwtauth.JWTAuth
	AuthEnforcer     *casbin.Enforcer
	OpenAPIDocs      *apiDocs.OpenAPIDocs
	SaasDeployment   bool
	Validator        *validator.Validate
	Translator       ut.Translator
	IngestChan       chan *kgo.Record
	TTLCache         *ttlcache.Cache[string, string]
	ConsoleDiagnosis consolediagnosis.ConsoleDiagnosisHandler
}

func (*Handler) APIAuthHandler

func (h *Handler) APIAuthHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) AddAuditLog

func (h *Handler) AddAuditLog(namespace string, params postgresql_db.CreateAuditLogParams)

func (*Handler) AddBedrockIntegration

func (h *Handler) AddBedrockIntegration(w http.ResponseWriter, r *http.Request)

func (*Handler) AddEmailConfiguration

func (h *Handler) AddEmailConfiguration(w http.ResponseWriter, r *http.Request)

func (*Handler) AddGenerativeAIIntegrationUsingIAMRole

func (h *Handler) AddGenerativeAIIntegrationUsingIAMRole(w http.ResponseWriter, r *http.Request)

func (*Handler) AddGoogleContainerRegistry

func (h *Handler) AddGoogleContainerRegistry(w http.ResponseWriter, r *http.Request)

func (*Handler) AddIntegration

func (h *Handler) AddIntegration(w http.ResponseWriter, r *http.Request)

func (*Handler) AddOpenAiIntegration

func (h *Handler) AddOpenAiIntegration(w http.ResponseWriter, r *http.Request)

func (*Handler) AddRegistry

func (h *Handler) AddRegistry(w http.ResponseWriter, r *http.Request)

func (*Handler) AddScheduledTask

func (h *Handler) AddScheduledTask(w http.ResponseWriter, r *http.Request)

func (*Handler) AuditUserActivity

func (h *Handler) AuditUserActivity(
	req *http.Request,
	event string,
	action string,
	resources interface{},
	success bool,
)

func (*Handler) AuthHandler

func (h *Handler) AuthHandler(resource, permission string, handlerFunc http.HandlerFunc) func(w http.ResponseWriter, r *http.Request)

func (*Handler) BulkDeleteReports

func (h *Handler) BulkDeleteReports(w http.ResponseWriter, r *http.Request)

func (*Handler) BulkDeleteScans

func (h *Handler) BulkDeleteScans(w http.ResponseWriter, r *http.Request)

func (*Handler) CachePostureProviders

func (h *Handler) CachePostureProviders(ctx context.Context) error

func (*Handler) CloudComplianceFiltersHandler

func (h *Handler) CloudComplianceFiltersHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) CompleteCloudComplianceInfo

func (h *Handler) CompleteCloudComplianceInfo(w http.ResponseWriter, r *http.Request)

func (*Handler) CompleteComplianceInfo

func (h *Handler) CompleteComplianceInfo(w http.ResponseWriter, r *http.Request)

func (*Handler) CompleteContainerInfo

func (h *Handler) CompleteContainerInfo(w http.ResponseWriter, r *http.Request)

func (*Handler) CompleteHostInfo

func (h *Handler) CompleteHostInfo(w http.ResponseWriter, r *http.Request)

func (*Handler) CompletePodInfo

func (h *Handler) CompletePodInfo(w http.ResponseWriter, r *http.Request)

func (*Handler) CompleteProcessInfo

func (h *Handler) CompleteProcessInfo(w http.ResponseWriter, r *http.Request)

func (*Handler) CompleteVulnerabilityInfo

func (h *Handler) CompleteVulnerabilityInfo(w http.ResponseWriter, r *http.Request)

func (*Handler) ComplianceFiltersHandler

func (h *Handler) ComplianceFiltersHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) CountCloudComplianceScanResultsHandler

func (h *Handler) CountCloudComplianceScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) CountComplianceScanResultsHandler

func (h *Handler) CountComplianceScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) CountImageStubs

func (h *Handler) CountImageStubs(w http.ResponseWriter, r *http.Request)

func (*Handler) CountImages

func (h *Handler) CountImages(w http.ResponseWriter, r *http.Request)

func (*Handler) CountMalwareScanResultsHandler

func (h *Handler) CountMalwareScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) CountSecretScanResultsHandler

func (h *Handler) CountSecretScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) CountVulnerabilityScanResultsHandler

func (h *Handler) CountVulnerabilityScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteCloudAccountHandler

func (h *Handler) DeleteCloudAccountHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteCustomScheduledTask

func (h *Handler) DeleteCustomScheduledTask(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteEmailConfiguration

func (h *Handler) DeleteEmailConfiguration(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteGenerativeAiIntegration

func (h *Handler) DeleteGenerativeAiIntegration(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteIntegration

func (h *Handler) DeleteIntegration(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteIntegrations

func (h *Handler) DeleteIntegrations(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteLicenseHandler

func (h *Handler) DeleteLicenseHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteRegistry

func (h *Handler) DeleteRegistry(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteRegistryBulk

func (h *Handler) DeleteRegistryBulk(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteReport

func (h *Handler) DeleteReport(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteUser

func (h *Handler) DeleteUser(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteUserByUserID

func (h *Handler) DeleteUserByUserID(w http.ResponseWriter, r *http.Request)

func (*Handler) DiagnosticNotification

func (h *Handler) DiagnosticNotification(w http.ResponseWriter, r *http.Request)

func (*Handler) DiffAddCloudComplianceScan

func (h *Handler) DiffAddCloudComplianceScan(w http.ResponseWriter, r *http.Request)

func (*Handler) DiffAddComplianceScan

func (h *Handler) DiffAddComplianceScan(w http.ResponseWriter, r *http.Request)

func (*Handler) DiffAddMalwareScan

func (h *Handler) DiffAddMalwareScan(w http.ResponseWriter, r *http.Request)

func (*Handler) DiffAddSecretScan

func (h *Handler) DiffAddSecretScan(w http.ResponseWriter, r *http.Request)

func (*Handler) DiffAddVulnerabilityScan

func (h *Handler) DiffAddVulnerabilityScan(w http.ResponseWriter, r *http.Request)

func (*Handler) DisableCloudNodeControls

func (h *Handler) DisableCloudNodeControls(w http.ResponseWriter, r *http.Request)

func (*Handler) EULAHandler

func (h *Handler) EULAHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) EnableCloudNodeControls

func (h *Handler) EnableCloudNodeControls(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateAgentDiagnosticLogs

func (h *Handler) GenerateAgentDiagnosticLogs(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateCloudScannerDiagnosticLogs

func (h *Handler) GenerateCloudScannerDiagnosticLogs(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateConsoleDiagnosticLogs

func (h *Handler) GenerateConsoleDiagnosticLogs(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateLicenseHandler

func (h *Handler) GenerateLicenseHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateReport

func (h *Handler) GenerateReport(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerativeAiIntegrationCloudPostureQuery

func (h *Handler) GenerativeAiIntegrationCloudPostureQuery(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerativeAiIntegrationKubernetesPostureQuery

func (h *Handler) GenerativeAiIntegrationKubernetesPostureQuery(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerativeAiIntegrationLinuxPostureQuery

func (h *Handler) GenerativeAiIntegrationLinuxPostureQuery(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerativeAiIntegrationMalwareQuery

func (h *Handler) GenerativeAiIntegrationMalwareQuery(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerativeAiIntegrationSecretQuery

func (h *Handler) GenerativeAiIntegrationSecretQuery(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerativeAiIntegrationVulnerabilityQuery

func (h *Handler) GenerativeAiIntegrationVulnerabilityQuery(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAPITokenForConsoleAgent

func (h *Handler) GetAPITokenForConsoleAgent(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAPITokens

func (h *Handler) GetAPITokens(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAgentBinaryDownloadURL

func (h *Handler) GetAgentBinaryDownloadURL(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAgentControls

func (h *Handler) GetAgentControls(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAgentInitControls

func (h *Handler) GetAgentInitControls(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAllNodesInScanResultBulkHandler

func (h *Handler) GetAllNodesInScanResultBulkHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAuditLogs

func (h *Handler) GetAuditLogs(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAuditLogsCount

func (h *Handler) GetAuditLogsCount(w http.ResponseWriter, r *http.Request)

func (*Handler) GetCloudCompliances

func (h *Handler) GetCloudCompliances(w http.ResponseWriter, r *http.Request)

func (*Handler) GetCloudNodeControls

func (h *Handler) GetCloudNodeControls(w http.ResponseWriter, r *http.Request)

func (*Handler) GetCloudResources

func (h *Handler) GetCloudResources(w http.ResponseWriter, r *http.Request)

func (*Handler) GetCompliances

func (h *Handler) GetCompliances(w http.ResponseWriter, r *http.Request)

func (*Handler) GetContainerImages

func (h *Handler) GetContainerImages(w http.ResponseWriter, r *http.Request)

func (*Handler) GetContainers

func (h *Handler) GetContainers(w http.ResponseWriter, r *http.Request)

func (*Handler) GetDiagnosticLogs

func (h *Handler) GetDiagnosticLogs(w http.ResponseWriter, r *http.Request)

func (*Handler) GetEmailConfiguration

func (h *Handler) GetEmailConfiguration(w http.ResponseWriter, r *http.Request)

func (*Handler) GetGenerativeAiIntegrations

func (h *Handler) GetGenerativeAiIntegrations(w http.ResponseWriter, r *http.Request)

func (*Handler) GetGlobalSettings

func (h *Handler) GetGlobalSettings(w http.ResponseWriter, r *http.Request)

func (*Handler) GetHostURL

func (h *Handler) GetHostURL(r *http.Request) string

GetHostURL Host specifies the host on which the URL is sought. This is either the value of the "Host" header or the host name given in the URL itself

func (*Handler) GetHosts

func (h *Handler) GetHosts(w http.ResponseWriter, r *http.Request)

func (*Handler) GetIndividualThreatGraph

func (h *Handler) GetIndividualThreatGraph(w http.ResponseWriter, r *http.Request)

func (*Handler) GetIntegrations

func (h *Handler) GetIntegrations(w http.ResponseWriter, r *http.Request)

func (*Handler) GetKubernetesClusterControls

func (h *Handler) GetKubernetesClusterControls(w http.ResponseWriter, r *http.Request)

func (*Handler) GetKubernetesClusters

func (h *Handler) GetKubernetesClusters(w http.ResponseWriter, r *http.Request)

func (*Handler) GetLicenseHandler

func (h *Handler) GetLicenseHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) GetMalwares

func (h *Handler) GetMalwares(w http.ResponseWriter, r *http.Request)

func (*Handler) GetPods

func (h *Handler) GetPods(w http.ResponseWriter, r *http.Request)

func (*Handler) GetProcesses

func (h *Handler) GetProcesses(w http.ResponseWriter, r *http.Request)

func (*Handler) GetRegistryAccount

func (h *Handler) GetRegistryAccount(w http.ResponseWriter, r *http.Request)

func (*Handler) GetReport

func (h *Handler) GetReport(w http.ResponseWriter, r *http.Request)

func (*Handler) GetSbomHandler

func (h *Handler) GetSbomHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) GetScanReportFields

func (h *Handler) GetScanReportFields(w http.ResponseWriter, r *http.Request)

func (*Handler) GetScheduledTask

func (h *Handler) GetScheduledTask(w http.ResponseWriter, r *http.Request)

func (*Handler) GetSecrets

func (h *Handler) GetSecrets(w http.ResponseWriter, r *http.Request)

func (*Handler) GetThreatGraph

func (h *Handler) GetThreatGraph(w http.ResponseWriter, r *http.Request)

func (*Handler) GetTopologyContainersGraph

func (h *Handler) GetTopologyContainersGraph(w http.ResponseWriter, req *http.Request)

func (*Handler) GetTopologyDelta

func (h *Handler) GetTopologyDelta(w http.ResponseWriter, req *http.Request)

func (*Handler) GetTopologyGraph

func (h *Handler) GetTopologyGraph(w http.ResponseWriter, req *http.Request)

func (*Handler) GetTopologyHostsGraph

func (h *Handler) GetTopologyHostsGraph(w http.ResponseWriter, req *http.Request)

func (*Handler) GetTopologyKubernetesGraph

func (h *Handler) GetTopologyKubernetesGraph(w http.ResponseWriter, req *http.Request)

func (*Handler) GetTopologyPodsGraph

func (h *Handler) GetTopologyPodsGraph(w http.ResponseWriter, req *http.Request)

func (*Handler) GetUser

func (h *Handler) GetUser(w http.ResponseWriter, r *http.Request)

func (*Handler) GetUserByUserID

func (h *Handler) GetUserByUserID(w http.ResponseWriter, r *http.Request)

func (*Handler) GetUserFromJWT

func (h *Handler) GetUserFromJWT(requestContext context.Context) (*model.User, int, *postgresql_db.Queries, error)

func (*Handler) GetUsers

func (h *Handler) GetUsers(w http.ResponseWriter, r *http.Request)

func (*Handler) GetVulnerabilities

func (h *Handler) GetVulnerabilities(w http.ResponseWriter, r *http.Request)

func (*Handler) GroupMalwareClassResultsHandler

func (h *Handler) GroupMalwareClassResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) GroupMalwareResultsHandler

func (h *Handler) GroupMalwareResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) GroupSecretResultsHandler

func (h *Handler) GroupSecretResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestAgentReport

func (h *Handler) IngestAgentReport(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestCloudComplianceReportHandler

func (h *Handler) IngestCloudComplianceReportHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestCloudComplianceScanStatusReportHandler

func (h *Handler) IngestCloudComplianceScanStatusReportHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestCloudResourcesReportHandler

func (h *Handler) IngestCloudResourcesReportHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestComplianceReportHandler

func (h *Handler) IngestComplianceReportHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestComplianceScanStatusHandler

func (h *Handler) IngestComplianceScanStatusHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestMalwareReportHandler

func (h *Handler) IngestMalwareReportHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestMalwareScanStatusHandler

func (h *Handler) IngestMalwareScanStatusHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestMalwareScanStatusReportHandler

func (h *Handler) IngestMalwareScanStatusReportHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestSbomHandler

func (h *Handler) IngestSbomHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestSecretReportHandler

func (h *Handler) IngestSecretReportHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestSecretScanStatusHandler

func (h *Handler) IngestSecretScanStatusHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestSyncAgentReport

func (h *Handler) IngestSyncAgentReport(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestVulnerabilityReportHandler

func (h *Handler) IngestVulnerabilityReportHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) IngestVulnerabilityScanStatusHandler

func (h *Handler) IngestVulnerabilityScanStatusHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) InviteUser

func (h *Handler) InviteUser(w http.ResponseWriter, r *http.Request)

func (*Handler) ListAgentVersion

func (h *Handler) ListAgentVersion(w http.ResponseWriter, r *http.Request)

func (*Handler) ListCloudComplianceScanResultsHandler

func (h *Handler) ListCloudComplianceScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListCloudComplianceScansHandler

func (h *Handler) ListCloudComplianceScansHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListCloudNodeAccountHandler

func (h *Handler) ListCloudNodeAccountHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListCloudNodeProvidersHandler

func (h *Handler) ListCloudNodeProvidersHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListComplianceScanResultsHandler

func (h *Handler) ListComplianceScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListComplianceScansHandler

func (h *Handler) ListComplianceScansHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListImageStubs

func (h *Handler) ListImageStubs(w http.ResponseWriter, r *http.Request)

func (*Handler) ListImages

func (h *Handler) ListImages(w http.ResponseWriter, r *http.Request)

func (*Handler) ListMalwareScanResultClassHandler

func (h *Handler) ListMalwareScanResultClassHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListMalwareScanResultRulesHandler

func (h *Handler) ListMalwareScanResultRulesHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListMalwareScanResultsHandler

func (h *Handler) ListMalwareScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListMalwareScansHandler

func (h *Handler) ListMalwareScansHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListRegistry

func (h *Handler) ListRegistry(w http.ResponseWriter, r *http.Request)

func (*Handler) ListReports

func (h *Handler) ListReports(w http.ResponseWriter, r *http.Request)

func (*Handler) ListSecretScanResultRulesHandler

func (h *Handler) ListSecretScanResultRulesHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListSecretScanResultsHandler

func (h *Handler) ListSecretScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListSecretScansHandler

func (h *Handler) ListSecretScansHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListVulnerabilityScanResultsHandler

func (h *Handler) ListVulnerabilityScanResultsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ListVulnerabilityScansHandler

func (h *Handler) ListVulnerabilityScansHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) LoginHandler

func (h *Handler) LoginHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) LogoutHandler

func (h *Handler) LogoutHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) NodeCount

func (h *Handler) NodeCount(w http.ResponseWriter, r *http.Request)

func (*Handler) NodeCountHandler

func (h *Handler) NodeCountHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) OpenAPIDocsHandler

func (h *Handler) OpenAPIDocsHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ParseValidatorError

func (h *Handler) ParseValidatorError(err error, errs []error, skipOverwriteErrorMessage bool) (map[string]string, string)

func (*Handler) Ping

func (h *Handler) Ping(w http.ResponseWriter, r *http.Request)

func (*Handler) RefreshCloudAccountHandler

func (h *Handler) RefreshCloudAccountHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) RefreshRegistry

func (h *Handler) RefreshRegistry(w http.ResponseWriter, r *http.Request)

func (*Handler) RefreshTokenHandler

func (h *Handler) RefreshTokenHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) RegisterCloudNodeAccountHandler

func (h *Handler) RegisterCloudNodeAccountHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) RegisterInvitedUser

func (h *Handler) RegisterInvitedUser(w http.ResponseWriter, r *http.Request)

func (*Handler) RegisterLicenseHandler

func (h *Handler) RegisterLicenseHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) RegisterUser

func (h *Handler) RegisterUser(w http.ResponseWriter, r *http.Request)

func (*Handler) RegistrySummary

func (h *Handler) RegistrySummary(w http.ResponseWriter, r *http.Request)

func (*Handler) ResetAPIToken

func (h *Handler) ResetAPIToken(w http.ResponseWriter, r *http.Request)

func (*Handler) ResetPasswordRequest

func (h *Handler) ResetPasswordRequest(w http.ResponseWriter, r *http.Request)

func (*Handler) ResetPasswordVerification

func (h *Handler) ResetPasswordVerification(w http.ResponseWriter, r *http.Request)

func (*Handler) RunThreatIntelUpdateTask

func (h *Handler) RunThreatIntelUpdateTask(ctx context.Context) error

func (*Handler) SbomDownloadHandler

func (h *Handler) SbomDownloadHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ScanDeleteHandler

func (h *Handler) ScanDeleteHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ScanResultDeleteHandler

func (h *Handler) ScanResultDeleteHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ScanResultDownloadHandler

func (h *Handler) ScanResultDownloadHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ScanResultMaskHandler

func (h *Handler) ScanResultMaskHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ScanResultNotifyHandler

func (h *Handler) ScanResultNotifyHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ScanResultUnmaskHandler

func (h *Handler) ScanResultUnmaskHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) ScheduleAgentPluginsDisable

func (h *Handler) ScheduleAgentPluginsDisable(w http.ResponseWriter, r *http.Request)

func (*Handler) ScheduleAgentPluginsEnable

func (h *Handler) ScheduleAgentPluginsEnable(w http.ResponseWriter, r *http.Request)

func (*Handler) ScheduleAgentUpgrade

func (h *Handler) ScheduleAgentUpgrade(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCloudAccountCount

func (h *Handler) SearchCloudAccountCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCloudComplianceScans

func (h *Handler) SearchCloudComplianceScans(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCloudComplianceScansCount

func (h *Handler) SearchCloudComplianceScansCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCloudCompliances

func (h *Handler) SearchCloudCompliances(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCloudCompliancesCount

func (h *Handler) SearchCloudCompliancesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCloudNodes

func (h *Handler) SearchCloudNodes(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCloudResources

func (h *Handler) SearchCloudResources(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCloudResourcesCount

func (h *Handler) SearchCloudResourcesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchComplianceRules

func (h *Handler) SearchComplianceRules(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchComplianceRulesCount

func (h *Handler) SearchComplianceRulesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchComplianceScans

func (h *Handler) SearchComplianceScans(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchComplianceScansCount

func (h *Handler) SearchComplianceScansCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCompliances

func (h *Handler) SearchCompliances(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchCompliancesCount

func (h *Handler) SearchCompliancesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchContainerImages

func (h *Handler) SearchContainerImages(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchContainerImagesCount

func (h *Handler) SearchContainerImagesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchContainers

func (h *Handler) SearchContainers(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchContainersCount

func (h *Handler) SearchContainersCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchHosts

func (h *Handler) SearchHosts(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchHostsCount

func (h *Handler) SearchHostsCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchKubernetesClusters

func (h *Handler) SearchKubernetesClusters(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchKubernetesClustersCount

func (h *Handler) SearchKubernetesClustersCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchMalwareRules

func (h *Handler) SearchMalwareRules(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchMalwareRulesCount

func (h *Handler) SearchMalwareRulesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchMalwareScans

func (h *Handler) SearchMalwareScans(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchMalwareScansCount

func (h *Handler) SearchMalwareScansCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchMalwares

func (h *Handler) SearchMalwares(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchMalwaresCount

func (h *Handler) SearchMalwaresCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchPods

func (h *Handler) SearchPods(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchPodsCount

func (h *Handler) SearchPodsCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchRegistryAccounts

func (h *Handler) SearchRegistryAccounts(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchRegistryAccountsCount

func (h *Handler) SearchRegistryAccountsCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchScans

func (h *Handler) SearchScans(w http.ResponseWriter, r *http.Request, scanType utils.Neo4jScanType)

func (*Handler) SearchScansCount

func (h *Handler) SearchScansCount(w http.ResponseWriter, r *http.Request, scanType utils.Neo4jScanType)

func (*Handler) SearchSecretRules

func (h *Handler) SearchSecretRules(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchSecretRulesCount

func (h *Handler) SearchSecretRulesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchSecretScans

func (h *Handler) SearchSecretScans(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchSecretScansCount

func (h *Handler) SearchSecretScansCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchSecrets

func (h *Handler) SearchSecrets(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchSecretsCount

func (h *Handler) SearchSecretsCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchVulnerabilities

func (h *Handler) SearchVulnerabilities(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchVulnerabilitiesCount

func (h *Handler) SearchVulnerabilitiesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchVulnerabilityRules

func (h *Handler) SearchVulnerabilityRules(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchVulnerabilityRulesCount

func (h *Handler) SearchVulnerabilityRulesCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchVulnerabilityScans

func (h *Handler) SearchVulnerabilityScans(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchVulnerabilityScansCount

func (h *Handler) SearchVulnerabilityScansCount(w http.ResponseWriter, r *http.Request)

func (*Handler) SendScanStatus

func (h *Handler) SendScanStatus(
	ctx context.Context, scanStatusType string, status map[string]interface{})

func (*Handler) SetDefaultGenerativeAiIntegration

func (h *Handler) SetDefaultGenerativeAiIntegration(w http.ResponseWriter, r *http.Request)

func (*Handler) StartComplianceScanHandler

func (h *Handler) StartComplianceScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StartMalwareScanHandler

func (h *Handler) StartMalwareScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StartSecretScanHandler

func (h *Handler) StartSecretScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StartVulnerabilityScanHandler

func (h *Handler) StartVulnerabilityScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StatusCloudComplianceScanHandler

func (h *Handler) StatusCloudComplianceScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StatusComplianceScanHandler

func (h *Handler) StatusComplianceScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StatusMalwareScanHandler

func (h *Handler) StatusMalwareScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StatusSecretScanHandler

func (h *Handler) StatusSecretScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StatusVulnerabilityScanHandler

func (h *Handler) StatusVulnerabilityScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StopComplianceScanHandler

func (h *Handler) StopComplianceScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StopMalwareScanHandler

func (h *Handler) StopMalwareScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StopSecretScanHandler

func (h *Handler) StopSecretScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) StopVulnerabilityScanHandler

func (h *Handler) StopVulnerabilityScanHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) Summary

func (h *Handler) Summary(w http.ResponseWriter, r *http.Request)

func (*Handler) SummaryByRegistryType

func (h *Handler) SummaryByRegistryType(w http.ResponseWriter, r *http.Request)

func (*Handler) SyncRegistry

func (h *Handler) SyncRegistry(rCtx context.Context, pgID int32, registry registry.Registry) error

func (*Handler) TestConfiguredEmail

func (h *Handler) TestConfiguredEmail(w http.ResponseWriter, r *http.Request)

func (*Handler) TestUnconfiguredEmail

func (h *Handler) TestUnconfiguredEmail(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateAgentDiagnosticLogsStatus

func (h *Handler) UpdateAgentDiagnosticLogsStatus(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateCloudScannerDiagnosticLogsStatus

func (h *Handler) UpdateCloudScannerDiagnosticLogsStatus(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateGlobalSettings

func (h *Handler) UpdateGlobalSettings(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateIntegration

func (h *Handler) UpdateIntegration(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateRegistry

func (h *Handler) UpdateRegistry(w http.ResponseWriter, r *http.Request)

update registry

func (*Handler) UpdateScheduledTask

func (h *Handler) UpdateScheduledTask(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateUser

func (h *Handler) UpdateUser(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateUserByUserID

func (h *Handler) UpdateUserByUserID(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateUserPassword

func (h *Handler) UpdateUserPassword(w http.ResponseWriter, r *http.Request)

func (*Handler) UploadAgentBinaries

func (h *Handler) UploadAgentBinaries(w http.ResponseWriter, r *http.Request)

func (*Handler) UploadMalwareRules

func (h *Handler) UploadMalwareRules(w http.ResponseWriter, r *http.Request)

func (*Handler) UploadPostureControls

func (h *Handler) UploadPostureControls(w http.ResponseWriter, r *http.Request)

func (*Handler) UploadSecretsRules

func (h *Handler) UploadSecretsRules(w http.ResponseWriter, r *http.Request)

func (*Handler) UploadVulnerabilityDB

func (h *Handler) UploadVulnerabilityDB(w http.ResponseWriter, r *http.Request)

type InternalServerError

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

func (*InternalServerError) Error

func (i *InternalServerError) Error() string

type NotFoundError

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

func (*NotFoundError) Error

func (bd *NotFoundError) Error() string

type PaymentRequired

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

func (*PaymentRequired) Error

func (p *PaymentRequired) Error() string

type ValidatorError

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

func (*ValidatorError) Error

func (bd *ValidatorError) Error() string

Jump to

Keyboard shortcuts

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