Documentation ¶
Index ¶
- type AWSRepoInterface
- type Client
- func (c *Client) CleanWithNoProject(ctx context.Context) error
- func (c *Client) DeleteAWS(ctx context.Context, projectID, awsID uint32) error
- func (c *Client) DeleteAWSRelDataSource(ctx context.Context, projectID, awsID, awsDataSourceID uint32) error
- func (c *Client) DeleteApplicationScan(ctx context.Context, projectID uint32, applicationScanID uint32) error
- func (c *Client) DeleteApplicationScanBasicSetting(ctx context.Context, projectID uint32, applicationScanBasicSettingID uint32) error
- func (c *Client) DeleteDependencySetting(ctx context.Context, projectID uint32, githubSettingID uint32) error
- func (c *Client) DeleteDiagnosisDataSource(ctx context.Context, projectID uint32, diagnosisDataSourceID uint32) error
- func (c *Client) DeleteGCP(ctx context.Context, projectID, gcpID uint32) error
- func (c *Client) DeleteGCPDataSource(ctx context.Context, projectID, gcpID, googleDataSourceID uint32) error
- func (c *Client) DeleteGitHubSetting(ctx context.Context, projectID uint32, githubSettingID uint32) error
- func (c *Client) DeleteGitleaksCache(ctx context.Context, githubSettingID uint32) error
- func (c *Client) DeleteGitleaksSetting(ctx context.Context, projectID uint32, githubSettingID uint32) error
- func (c *Client) DeleteOsint(ctx context.Context, projectID uint32, osintID uint32) error
- func (c *Client) DeleteOsintDataSource(ctx context.Context, projectID uint32, osintDataSourceID uint32) error
- func (c *Client) DeleteOsintDetectWord(ctx context.Context, projectID uint32, osintDetectWordID uint32) error
- func (c *Client) DeletePortscanSetting(ctx context.Context, projectID uint32, portscanSettingID uint32) error
- func (c *Client) DeletePortscanTarget(ctx context.Context, projectID uint32, portscanTargetID uint32) error
- func (c *Client) DeletePortscanTargetByPortscanSettingID(ctx context.Context, projectID uint32, portscanSettingID uint32) error
- func (c *Client) DeleteRelOsintDataSource(ctx context.Context, projectID uint32, relOsintDataSourceID uint32) error
- func (c *Client) DeleteWpscanSetting(ctx context.Context, projectID uint32, wpscanSettingID uint32) error
- func (c *Client) GetAWSByAccountID(ctx context.Context, projectID uint32, awsAccountID string) (*model.AWS, error)
- func (c *Client) GetAWSDataSourceForMessage(ctx context.Context, awsID, awsDataSourceID, projectID uint32) (*message.AWSQueueMessage, error)
- func (c *Client) GetAWSRelDataSourceByID(ctx context.Context, awsID, awsDataSourceID, projectID uint32) (*model.AWSRelDataSource, error)
- func (c *Client) GetApplicationScan(ctx context.Context, projectID uint32, applicationScanID uint32) (*model.ApplicationScan, error)
- func (c *Client) GetApplicationScanBasicSetting(ctx context.Context, projectID uint32, applicationScanID uint32) (*model.ApplicationScanBasicSetting, error)
- func (c *Client) GetDependencySetting(ctx context.Context, projectID uint32, githubSettingID uint32) (*model.CodeDependencySetting, error)
- func (c *Client) GetDiagnosisDataSource(ctx context.Context, projectID uint32, diagnosisDataSourceID uint32) (*model.DiagnosisDataSource, error)
- func (c *Client) GetGCP(ctx context.Context, projectID, gcpID uint32) (*model.GCP, error)
- func (c *Client) GetGCPByUniqueIndex(ctx context.Context, projectID uint32, gcpProjectID string) (*model.GCP, error)
- func (c *Client) GetGCPDataSource(ctx context.Context, projectID, gcpID, googleDataSourceID uint32) (*GCPDataSource, error)
- func (c *Client) GetGitHubSetting(ctx context.Context, projectID uint32, githubSettingID uint32) (*model.CodeGitHubSetting, error)
- func (c *Client) GetGitHubSettingByUniqueIndex(ctx context.Context, projectID uint32, name string) (*model.CodeGitHubSetting, error)
- func (c *Client) GetGitleaksCache(ctx context.Context, projectID, githubSettingID uint32, ...) (*model.CodeGitleaksCache, error)
- func (c *Client) GetGitleaksSetting(ctx context.Context, projectID uint32, githubSettingID uint32) (*model.CodeGitleaksSetting, error)
- func (c *Client) GetGoogleDataSource(ctx context.Context, googleDataSourceID uint32) (*model.GCP, error)
- func (c *Client) GetOsint(ctx context.Context, projectID uint32, osintID uint32) (*model.Osint, error)
- func (c *Client) GetOsintDataSource(ctx context.Context, projectID uint32, osintDataSourceID uint32) (*model.OsintDataSource, error)
- func (c *Client) GetOsintDetectWord(ctx context.Context, projectID uint32, osintDetectWordID uint32) (*model.OsintDetectWord, error)
- func (c *Client) GetPortscanSetting(ctx context.Context, projectID uint32, portscanSettingID uint32) (*model.PortscanSetting, error)
- func (c *Client) GetPortscanTarget(ctx context.Context, projectID uint32, portscanTargetID uint32) (*model.PortscanTarget, error)
- func (c *Client) GetRelOsintDataSource(ctx context.Context, projectID uint32, relOsintDataSourceID uint32) (*model.RelOsintDataSource, error)
- func (c *Client) GetWpscanSetting(ctx context.Context, projectID uint32, wpscanSettingID uint32) (*model.WpscanSetting, error)
- func (c *Client) ListAWS(ctx context.Context, projectID, awsID uint32, awsAccountID string) (*[]model.AWS, error)
- func (c *Client) ListAWSDataSource(ctx context.Context, projectID, awsID uint32, ds string) (*[]DataSource, error)
- func (c *Client) ListAWSRelDataSource(ctx context.Context, projectID, awsID uint32) (*[]model.AWSRelDataSource, error)
- func (c *Client) ListAllApplicationScan(ctx context.Context) (*[]model.ApplicationScan, error)
- func (c *Client) ListAllPortscanSetting(ctx context.Context) (*[]model.PortscanSetting, error)
- func (c *Client) ListAllRelOsintDataSource(ctx context.Context, osintDataSourceID uint32) (*[]model.RelOsintDataSource, error)
- func (c *Client) ListAllWpscanSetting(ctx context.Context) (*[]model.WpscanSetting, error)
- func (c *Client) ListApplicationScan(ctx context.Context, projectID, diagnoosisDataSourceID uint32) (*[]model.ApplicationScan, error)
- func (c *Client) ListApplicationScanBasicSetting(ctx context.Context, projectID, applicationScanID uint32) (*[]model.ApplicationScanBasicSetting, error)
- func (c *Client) ListCodeDataSource(ctx context.Context, codeDataSourceID uint32, name string) (*[]model.CodeDataSource, error)
- func (c *Client) ListDataSourceByAWSDataSourceID(ctx context.Context, dataSourceID uint32) (*[]DataSource, error)
- func (c *Client) ListDependencySetting(ctx context.Context, projectID uint32) (*[]model.CodeDependencySetting, error)
- func (c *Client) ListDiagnosisDataSource(ctx context.Context, projectID uint32, name string) (*[]model.DiagnosisDataSource, error)
- func (c *Client) ListGCP(ctx context.Context, projectID, gcpID uint32, gcpProjectID string) (*[]model.GCP, error)
- func (c *Client) ListGCPDataSource(ctx context.Context, projectID, gcpID uint32) (*[]GCPDataSource, error)
- func (c *Client) ListGCPDataSourceByDataSourceID(ctx context.Context, googleDataSourceID uint32) (*[]GCPDataSource, error)
- func (c *Client) ListGitHubSetting(ctx context.Context, projectID, githubSettingID uint32) (*[]model.CodeGitHubSetting, error)
- func (c *Client) ListGitleaksSetting(ctx context.Context, projectID uint32) (*[]model.CodeGitleaksSetting, error)
- func (c *Client) ListGoogleDataSource(ctx context.Context, googleDataSourceID uint32, name string) (*[]model.GoogleDataSource, error)
- func (c *Client) ListOsint(ctx context.Context, projectID uint32) (*[]model.Osint, error)
- func (c *Client) ListOsintDataSource(ctx context.Context, projectID uint32, name string) (*[]model.OsintDataSource, error)
- func (c *Client) ListOsintDetectWord(ctx context.Context, projectID, relOsintDataSourceID uint32) (*[]model.OsintDetectWord, error)
- func (c *Client) ListPortscanSetting(ctx context.Context, projectID, diagnoosisDataSourceID uint32) (*[]model.PortscanSetting, error)
- func (c *Client) ListPortscanTarget(ctx context.Context, projectID, portscanSettingID uint32) (*[]model.PortscanTarget, error)
- func (c *Client) ListRelOsintDataSource(ctx context.Context, projectID, osintID, osintDataSourceID uint32) (*[]model.RelOsintDataSource, error)
- func (c *Client) ListWpscanSetting(ctx context.Context, projectID, diagnoosisDataSourceID uint32) (*[]model.WpscanSetting, error)
- func (c *Client) UpsertAWS(ctx context.Context, data *model.AWS) (*model.AWS, error)
- func (c *Client) UpsertAWSRelDataSource(ctx context.Context, data *aws.DataSourceForAttach) (*model.AWSRelDataSource, error)
- func (c *Client) UpsertApplicationScan(ctx context.Context, data *model.ApplicationScan) (*model.ApplicationScan, error)
- func (c *Client) UpsertApplicationScanBasicSetting(ctx context.Context, data *model.ApplicationScanBasicSetting) (*model.ApplicationScanBasicSetting, error)
- func (c *Client) UpsertDependencySetting(ctx context.Context, data *code.DependencySettingForUpsert) (*model.CodeDependencySetting, error)
- func (c *Client) UpsertDiagnosisDataSource(ctx context.Context, input *model.DiagnosisDataSource) (*model.DiagnosisDataSource, error)
- func (c *Client) UpsertGCP(ctx context.Context, gcp *google.GCPForUpsert) (*model.GCP, error)
- func (c *Client) UpsertGCPDataSource(ctx context.Context, gcpDataSource *google.GCPDataSourceForUpsert) (*GCPDataSource, error)
- func (c *Client) UpsertGitHubSetting(ctx context.Context, data *code.GitHubSettingForUpsert) (*model.CodeGitHubSetting, error)
- func (c *Client) UpsertGitHubSettingWithToken(ctx context.Context, data *code.GitHubSettingForUpsert) (*model.CodeGitHubSetting, error)
- func (c *Client) UpsertGitHubSettingWithoutToken(ctx context.Context, data *code.GitHubSettingForUpsert) (*model.CodeGitHubSetting, error)
- func (c *Client) UpsertGitleaksCache(ctx context.Context, projectID uint32, data *code.GitleaksCacheForUpsert) (*model.CodeGitleaksCache, error)
- func (c *Client) UpsertGitleaksSetting(ctx context.Context, data *code.GitleaksSettingForUpsert) (*model.CodeGitleaksSetting, error)
- func (c *Client) UpsertOsint(ctx context.Context, data *model.Osint) (*model.Osint, error)
- func (c *Client) UpsertOsintDataSource(ctx context.Context, input *model.OsintDataSource) (*model.OsintDataSource, error)
- func (c *Client) UpsertOsintDetectWord(ctx context.Context, data *model.OsintDetectWord) (*model.OsintDetectWord, error)
- func (c *Client) UpsertPortscanSetting(ctx context.Context, data *model.PortscanSetting) (*model.PortscanSetting, error)
- func (c *Client) UpsertPortscanTarget(ctx context.Context, data *model.PortscanTarget) (*model.PortscanTarget, error)
- func (c *Client) UpsertRelOsintDataSource(ctx context.Context, data *model.RelOsintDataSource) (*model.RelOsintDataSource, error)
- func (c *Client) UpsertWpscanSetting(ctx context.Context, data *model.WpscanSetting) (*model.WpscanSetting, error)
- type CodeRepoInterface
- type Config
- type DataSource
- type DataSourceRepoInterface
- type DiagnosisRepoInterface
- type GCPDataSource
- type GoogleRepoInterface
- type OSINTRepoInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSRepoInterface ¶
type AWSRepoInterface interface { ListAWS(ctx context.Context, projectID, awsID uint32, awsAccountID string) (*[]model.AWS, error) GetAWSByAccountID(ctx context.Context, projectID uint32, awsAccountID string) (*model.AWS, error) UpsertAWS(ctx context.Context, data *model.AWS) (*model.AWS, error) DeleteAWS(ctx context.Context, projectID, awsID uint32) error ListAWSDataSource(ctx context.Context, projectID, awsID uint32, ds string) (*[]DataSource, error) ListDataSourceByAWSDataSourceID(ctx context.Context, awsDataSourceID uint32) (*[]DataSource, error) ListAWSRelDataSource(ctx context.Context, projectID, awsID uint32) (*[]model.AWSRelDataSource, error) UpsertAWSRelDataSource(ctx context.Context, data *aws.DataSourceForAttach) (*model.AWSRelDataSource, error) GetAWSRelDataSourceByID(ctx context.Context, awsID, awsDataSourceID, projectID uint32) (*model.AWSRelDataSource, error) DeleteAWSRelDataSource(ctx context.Context, projectID, awsID, awsDataSourceID uint32) error GetAWSDataSourceForMessage(ctx context.Context, awsID, awsDataSourceID, projectID uint32) (*message.AWSQueueMessage, error) }
type Client ¶
func (*Client) CleanWithNoProject ¶ added in v0.5.0
func (*Client) DeleteAWSRelDataSource ¶
func (*Client) DeleteApplicationScan ¶
func (*Client) DeleteApplicationScanBasicSetting ¶
func (*Client) DeleteDependencySetting ¶ added in v0.4.0
func (*Client) DeleteDiagnosisDataSource ¶
func (*Client) DeleteGCPDataSource ¶
func (*Client) DeleteGitHubSetting ¶ added in v0.4.0
func (*Client) DeleteGitleaksCache ¶ added in v0.5.0
func (*Client) DeleteGitleaksSetting ¶ added in v0.4.0
func (*Client) DeleteOsint ¶
func (*Client) DeleteOsintDataSource ¶
func (*Client) DeleteOsintDetectWord ¶
func (*Client) DeletePortscanSetting ¶
func (*Client) DeletePortscanTarget ¶
func (*Client) DeletePortscanTargetByPortscanSettingID ¶
func (*Client) DeleteRelOsintDataSource ¶
func (*Client) DeleteWpscanSetting ¶
func (*Client) GetAWSByAccountID ¶
func (*Client) GetAWSDataSourceForMessage ¶
func (*Client) GetAWSRelDataSourceByID ¶
func (*Client) GetApplicationScan ¶
func (*Client) GetApplicationScanBasicSetting ¶
func (*Client) GetDependencySetting ¶ added in v0.4.0
func (*Client) GetDiagnosisDataSource ¶
func (*Client) GetGCPByUniqueIndex ¶
func (*Client) GetGCPDataSource ¶
func (*Client) GetGitHubSetting ¶ added in v0.4.0
func (*Client) GetGitHubSettingByUniqueIndex ¶ added in v0.4.0
func (*Client) GetGitleaksCache ¶ added in v0.5.0
func (*Client) GetGitleaksSetting ¶ added in v0.4.0
func (*Client) GetGoogleDataSource ¶
func (*Client) GetOsintDataSource ¶
func (*Client) GetOsintDetectWord ¶
func (*Client) GetPortscanSetting ¶
func (*Client) GetPortscanTarget ¶
func (*Client) GetRelOsintDataSource ¶
func (*Client) GetWpscanSetting ¶
func (*Client) ListAWSDataSource ¶
func (*Client) ListAWSRelDataSource ¶
func (*Client) ListAllApplicationScan ¶
func (*Client) ListAllPortscanSetting ¶
func (*Client) ListAllRelOsintDataSource ¶
func (*Client) ListAllWpscanSetting ¶
func (*Client) ListApplicationScan ¶
func (*Client) ListApplicationScanBasicSetting ¶
func (*Client) ListCodeDataSource ¶
func (*Client) ListDataSourceByAWSDataSourceID ¶
func (*Client) ListDependencySetting ¶ added in v0.4.0
func (*Client) ListDiagnosisDataSource ¶
func (*Client) ListGCPDataSource ¶
func (*Client) ListGCPDataSourceByDataSourceID ¶
func (*Client) ListGitHubSetting ¶ added in v0.4.0
func (*Client) ListGitleaksSetting ¶ added in v0.4.0
func (*Client) ListGoogleDataSource ¶
func (*Client) ListOsintDataSource ¶
func (*Client) ListOsintDetectWord ¶
func (*Client) ListPortscanSetting ¶
func (*Client) ListPortscanTarget ¶
func (*Client) ListRelOsintDataSource ¶
func (*Client) ListWpscanSetting ¶
func (*Client) UpsertAWSRelDataSource ¶
func (c *Client) UpsertAWSRelDataSource(ctx context.Context, data *aws.DataSourceForAttach) (*model.AWSRelDataSource, error)
func (*Client) UpsertApplicationScan ¶
func (c *Client) UpsertApplicationScan(ctx context.Context, data *model.ApplicationScan) (*model.ApplicationScan, error)
func (*Client) UpsertApplicationScanBasicSetting ¶
func (c *Client) UpsertApplicationScanBasicSetting(ctx context.Context, data *model.ApplicationScanBasicSetting) (*model.ApplicationScanBasicSetting, error)
func (*Client) UpsertDependencySetting ¶ added in v0.4.0
func (c *Client) UpsertDependencySetting(ctx context.Context, data *code.DependencySettingForUpsert) (*model.CodeDependencySetting, error)
func (*Client) UpsertDiagnosisDataSource ¶
func (c *Client) UpsertDiagnosisDataSource(ctx context.Context, input *model.DiagnosisDataSource) (*model.DiagnosisDataSource, error)
func (*Client) UpsertGCPDataSource ¶
func (c *Client) UpsertGCPDataSource(ctx context.Context, gcpDataSource *google.GCPDataSourceForUpsert) (*GCPDataSource, error)
func (*Client) UpsertGitHubSetting ¶ added in v0.4.0
func (c *Client) UpsertGitHubSetting(ctx context.Context, data *code.GitHubSettingForUpsert) (*model.CodeGitHubSetting, error)
func (*Client) UpsertGitHubSettingWithToken ¶ added in v0.4.0
func (c *Client) UpsertGitHubSettingWithToken(ctx context.Context, data *code.GitHubSettingForUpsert) (*model.CodeGitHubSetting, error)
func (*Client) UpsertGitHubSettingWithoutToken ¶ added in v0.4.0
func (c *Client) UpsertGitHubSettingWithoutToken(ctx context.Context, data *code.GitHubSettingForUpsert) (*model.CodeGitHubSetting, error)
func (*Client) UpsertGitleaksCache ¶ added in v0.5.0
func (c *Client) UpsertGitleaksCache(ctx context.Context, projectID uint32, data *code.GitleaksCacheForUpsert) (*model.CodeGitleaksCache, error)
func (*Client) UpsertGitleaksSetting ¶ added in v0.4.0
func (c *Client) UpsertGitleaksSetting(ctx context.Context, data *code.GitleaksSettingForUpsert) (*model.CodeGitleaksSetting, error)
func (*Client) UpsertOsint ¶
func (*Client) UpsertOsintDataSource ¶
func (c *Client) UpsertOsintDataSource(ctx context.Context, input *model.OsintDataSource) (*model.OsintDataSource, error)
func (*Client) UpsertOsintDetectWord ¶
func (c *Client) UpsertOsintDetectWord(ctx context.Context, data *model.OsintDetectWord) (*model.OsintDetectWord, error)
func (*Client) UpsertPortscanSetting ¶
func (c *Client) UpsertPortscanSetting(ctx context.Context, data *model.PortscanSetting) (*model.PortscanSetting, error)
func (*Client) UpsertPortscanTarget ¶
func (c *Client) UpsertPortscanTarget(ctx context.Context, data *model.PortscanTarget) (*model.PortscanTarget, error)
func (*Client) UpsertRelOsintDataSource ¶
func (c *Client) UpsertRelOsintDataSource(ctx context.Context, data *model.RelOsintDataSource) (*model.RelOsintDataSource, error)
func (*Client) UpsertWpscanSetting ¶
func (c *Client) UpsertWpscanSetting(ctx context.Context, data *model.WpscanSetting) (*model.WpscanSetting, error)
type CodeRepoInterface ¶
type CodeRepoInterface interface { // code_data_source ListCodeDataSource(ctx context.Context, codeDataSourceID uint32, name string) (*[]model.CodeDataSource, error) // code_github_setting ListGitHubSetting(ctx context.Context, projectID, githubSettingID uint32) (*[]model.CodeGitHubSetting, error) GetGitHubSetting(ctx context.Context, projectID, GitHubSettingID uint32) (*model.CodeGitHubSetting, error) UpsertGitHubSetting(ctx context.Context, data *code.GitHubSettingForUpsert) (*model.CodeGitHubSetting, error) DeleteGitHubSetting(ctx context.Context, projectID uint32, GitHubSettingID uint32) error // code_gitleaks_setting ListGitleaksSetting(ctx context.Context, projectID uint32) (*[]model.CodeGitleaksSetting, error) GetGitleaksSetting(ctx context.Context, projectID, githubSettingID uint32) (*model.CodeGitleaksSetting, error) UpsertGitleaksSetting(ctx context.Context, data *code.GitleaksSettingForUpsert) (*model.CodeGitleaksSetting, error) DeleteGitleaksSetting(ctx context.Context, projectID uint32, GitHubSettingID uint32) error // code_gitleaks_cache GetGitleaksCache(ctx context.Context, projectID, githubSettingID uint32, repositoryFullName string, immediately bool) (*model.CodeGitleaksCache, error) UpsertGitleaksCache(ctx context.Context, projectID uint32, data *code.GitleaksCacheForUpsert) (*model.CodeGitleaksCache, error) DeleteGitleaksCache(ctx context.Context, githubSettingID uint32) error // code_dependency_setting ListDependencySetting(ctx context.Context, projectID uint32) (*[]model.CodeDependencySetting, error) GetDependencySetting(ctx context.Context, projectID, githubSettingID uint32) (*model.CodeDependencySetting, error) UpsertDependencySetting(ctx context.Context, data *code.DependencySettingForUpsert) (*model.CodeDependencySetting, error) DeleteDependencySetting(ctx context.Context, projectID uint32, GitHubSettingID uint32) error }
type DataSource ¶
type DataSourceRepoInterface ¶ added in v0.5.0
type DiagnosisRepoInterface ¶
type DiagnosisRepoInterface interface { ListDiagnosisDataSource(context.Context, uint32, string) (*[]model.DiagnosisDataSource, error) GetDiagnosisDataSource(context.Context, uint32, uint32) (*model.DiagnosisDataSource, error) UpsertDiagnosisDataSource(context.Context, *model.DiagnosisDataSource) (*model.DiagnosisDataSource, error) DeleteDiagnosisDataSource(context.Context, uint32, uint32) error ListWpscanSetting(context.Context, uint32, uint32) (*[]model.WpscanSetting, error) GetWpscanSetting(context.Context, uint32, uint32) (*model.WpscanSetting, error) UpsertWpscanSetting(context.Context, *model.WpscanSetting) (*model.WpscanSetting, error) DeleteWpscanSetting(context.Context, uint32, uint32) error ListPortscanSetting(context.Context, uint32, uint32) (*[]model.PortscanSetting, error) GetPortscanSetting(context.Context, uint32, uint32) (*model.PortscanSetting, error) UpsertPortscanSetting(context.Context, *model.PortscanSetting) (*model.PortscanSetting, error) DeletePortscanSetting(context.Context, uint32, uint32) error ListPortscanTarget(context.Context, uint32, uint32) (*[]model.PortscanTarget, error) GetPortscanTarget(context.Context, uint32, uint32) (*model.PortscanTarget, error) UpsertPortscanTarget(context.Context, *model.PortscanTarget) (*model.PortscanTarget, error) DeletePortscanTarget(context.Context, uint32, uint32) error DeletePortscanTargetByPortscanSettingID(context.Context, uint32, uint32) error ListApplicationScan(context.Context, uint32, uint32) (*[]model.ApplicationScan, error) GetApplicationScan(context.Context, uint32, uint32) (*model.ApplicationScan, error) UpsertApplicationScan(context.Context, *model.ApplicationScan) (*model.ApplicationScan, error) DeleteApplicationScan(context.Context, uint32, uint32) error ListApplicationScanBasicSetting(context.Context, uint32, uint32) (*[]model.ApplicationScanBasicSetting, error) GetApplicationScanBasicSetting(context.Context, uint32, uint32) (*model.ApplicationScanBasicSetting, error) UpsertApplicationScanBasicSetting(context.Context, *model.ApplicationScanBasicSetting) (*model.ApplicationScanBasicSetting, error) DeleteApplicationScanBasicSetting(context.Context, uint32, uint32) error //for InvokeScan ListAllWpscanSetting(context.Context) (*[]model.WpscanSetting, error) }
type GCPDataSource ¶
type GCPDataSource struct { GCPID uint32 `gorm:"primary_key column:gcp_id"` GoogleDataSourceID uint32 `gorm:"primary_key"` ProjectID uint32 SpecificVersion string Status string StatusDetail string ScanAt time.Time CreatedAt time.Time UpdatedAt time.Time Name string // google_data_source.name Description string // google_data_source.description MaxScore float32 // google_data_source.max_score GCPOrganizationID string // gcp.gcp_organization_id GCPProjectID string // gcp.gcp_project_id }
type GoogleRepoInterface ¶
type GoogleRepoInterface interface { // google_data_source ListGoogleDataSource(ctx context.Context, googleDataSourceID uint32, name string) (*[]model.GoogleDataSource, error) // gcp ListGCP(ctx context.Context, projectID, gcpID uint32, gcpProjectID string) (*[]model.GCP, error) GetGCP(ctx context.Context, projectID, gcpID uint32) (*model.GCP, error) UpsertGCP(ctx context.Context, gcp *google.GCPForUpsert) (*model.GCP, error) DeleteGCP(ctx context.Context, projectID uint32, gcpID uint32) error // gcp_data_source ListGCPDataSource(ctx context.Context, projectID, gcpID uint32) (*[]GCPDataSource, error) GetGCPDataSource(ctx context.Context, projectID, gcpID, googleDataSourceID uint32) (*GCPDataSource, error) UpsertGCPDataSource(ctx context.Context, gcpDataSource *google.GCPDataSourceForUpsert) (*GCPDataSource, error) DeleteGCPDataSource(ctx context.Context, projectID, gcpID, googleDataSourceID uint32) error ListGCPDataSourceByDataSourceID(ctx context.Context, googleDataSourceID uint32) (*[]GCPDataSource, error) }
type OSINTRepoInterface ¶
type OSINTRepoInterface interface { ListOsint(context.Context, uint32) (*[]model.Osint, error) GetOsint(context.Context, uint32, uint32) (*model.Osint, error) UpsertOsint(context.Context, *model.Osint) (*model.Osint, error) DeleteOsint(context.Context, uint32, uint32) error ListOsintDataSource(context.Context, uint32, string) (*[]model.OsintDataSource, error) GetOsintDataSource(context.Context, uint32, uint32) (*model.OsintDataSource, error) UpsertOsintDataSource(context.Context, *model.OsintDataSource) (*model.OsintDataSource, error) DeleteOsintDataSource(context.Context, uint32, uint32) error ListRelOsintDataSource(context.Context, uint32, uint32, uint32) (*[]model.RelOsintDataSource, error) GetRelOsintDataSource(context.Context, uint32, uint32) (*model.RelOsintDataSource, error) UpsertRelOsintDataSource(context.Context, *model.RelOsintDataSource) (*model.RelOsintDataSource, error) DeleteRelOsintDataSource(context.Context, uint32, uint32) error ListOsintDetectWord(context.Context, uint32, uint32) (*[]model.OsintDetectWord, error) GetOsintDetectWord(context.Context, uint32, uint32) (*model.OsintDetectWord, error) UpsertOsintDetectWord(context.Context, *model.OsintDetectWord) (*model.OsintDetectWord, error) DeleteOsintDetectWord(context.Context, uint32, uint32) error // For Invoke ListAllRelOsintDataSource(context.Context, uint32) (*[]model.RelOsintDataSource, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.