Documentation ¶
Overview ¶
nolint:cyclop
Index ¶
- type AssetConflictError
- type AssetScanConflictError
- type AssetScanEstimationConflictError
- type BackendClient
- func (b *BackendClient) DeleteAssetScanEstimation(ctx context.Context, assetScanEstimationID models.AssetScanEstimationID) error
- func (b *BackendClient) DeleteScanEstimation(ctx context.Context, scanEstimationID models.ScanEstimationID) error
- func (b *BackendClient) GetAsset(ctx context.Context, assetID string, params models.GetAssetsAssetIDParams) (models.Asset, error)
- func (b *BackendClient) GetAssetScan(ctx context.Context, assetScanID string, ...) (models.AssetScan, error)
- func (b *BackendClient) GetAssetScanEstimation(ctx context.Context, assetScanEstimationID string, ...) (models.AssetScanEstimation, error)
- func (b *BackendClient) GetAssetScanEstimations(ctx context.Context, params models.GetAssetScanEstimationsParams) (models.AssetScanEstimations, error)
- func (b *BackendClient) GetAssetScanStatus(ctx context.Context, assetScanID string) (*models.AssetScanStatus, error)
- func (b *BackendClient) GetAssetScanSummary(ctx context.Context, assetScanID string) (*models.ScanFindingsSummary, error)
- func (b *BackendClient) GetAssetScans(ctx context.Context, params models.GetAssetScansParams) (models.AssetScans, error)
- func (b *BackendClient) GetAssets(ctx context.Context, params models.GetAssetsParams) (*models.Assets, error)
- func (b *BackendClient) GetFindings(ctx context.Context, params models.GetFindingsParams) (*models.Findings, error)
- func (b *BackendClient) GetProvider(ctx context.Context, providerID string, ...) (models.Provider, error)
- func (b *BackendClient) GetProviders(ctx context.Context, params models.GetProvidersParams) (*models.Providers, error)
- func (b *BackendClient) GetScan(ctx context.Context, scanID string, params models.GetScansScanIDParams) (*models.Scan, error)
- func (b *BackendClient) GetScanConfig(ctx context.Context, scanConfigID string, ...) (*models.ScanConfig, error)
- func (b *BackendClient) GetScanConfigs(ctx context.Context, params models.GetScanConfigsParams) (*models.ScanConfigs, error)
- func (b *BackendClient) GetScanEstimation(ctx context.Context, scanEstimationID string, ...) (*models.ScanEstimation, error)
- func (b *BackendClient) GetScanEstimations(ctx context.Context, params models.GetScanEstimationsParams) (*models.ScanEstimations, error)
- func (b *BackendClient) GetScans(ctx context.Context, params models.GetScansParams) (*models.Scans, error)
- func (b *BackendClient) PatchAsset(ctx context.Context, asset models.Asset, assetID string) error
- func (b *BackendClient) PatchAssetScan(ctx context.Context, assetScan models.AssetScan, assetScanID string) error
- func (b *BackendClient) PatchAssetScanEstimation(ctx context.Context, assetScanEstimation models.AssetScanEstimation, ...) error
- func (b *BackendClient) PatchAssetScanStatus(ctx context.Context, assetScanID string, status *models.AssetScanStatus) error
- func (b *BackendClient) PatchFinding(ctx context.Context, findingID models.FindingID, finding models.Finding) error
- func (b *BackendClient) PatchProvider(ctx context.Context, provider models.Provider, providerID string) error
- func (b *BackendClient) PatchScan(ctx context.Context, scanID models.ScanID, scan *models.Scan) error
- func (b *BackendClient) PatchScanConfig(ctx context.Context, scanConfigID string, scanConfig *models.ScanConfig) error
- func (b *BackendClient) PatchScanEstimation(ctx context.Context, scanEstimationID models.ScanEstimationID, ...) error
- func (b *BackendClient) PostAsset(ctx context.Context, asset models.Asset) (*models.Asset, error)
- func (b *BackendClient) PostAssetScan(ctx context.Context, assetScan models.AssetScan) (*models.AssetScan, error)
- func (b *BackendClient) PostAssetScanEstimation(ctx context.Context, assetScanEstimation models.AssetScanEstimation) (*models.AssetScanEstimation, error)
- func (b *BackendClient) PostFinding(ctx context.Context, finding models.Finding) (*models.Finding, error)
- func (b *BackendClient) PostProvider(ctx context.Context, provider models.Provider) (*models.Provider, error)
- func (b *BackendClient) PostScan(ctx context.Context, scan models.Scan) (*models.Scan, error)
- func (b *BackendClient) PostScanConfig(ctx context.Context, scanConfig models.ScanConfig) (*models.ScanConfig, error)
- type FindingConflictError
- type ProviderConflictError
- type ScanConfigConflictError
- type ScanConflictError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetConflictError ¶
func (AssetConflictError) Error ¶
func (t AssetConflictError) Error() string
type AssetScanConflictError ¶
func (AssetScanConflictError) Error ¶
func (t AssetScanConflictError) Error() string
type AssetScanEstimationConflictError ¶
type AssetScanEstimationConflictError struct { ConflictingAssetScanEstimation *models.AssetScanEstimation Message string }
func (AssetScanEstimationConflictError) Error ¶
func (t AssetScanEstimationConflictError) Error() string
type BackendClient ¶
type BackendClient struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(serverAddress string) (*BackendClient, error)
func (*BackendClient) DeleteAssetScanEstimation ¶
func (b *BackendClient) DeleteAssetScanEstimation(ctx context.Context, assetScanEstimationID models.AssetScanEstimationID) error
func (*BackendClient) DeleteScanEstimation ¶
func (b *BackendClient) DeleteScanEstimation(ctx context.Context, scanEstimationID models.ScanEstimationID) error
func (*BackendClient) GetAsset ¶
func (b *BackendClient) GetAsset(ctx context.Context, assetID string, params models.GetAssetsAssetIDParams) (models.Asset, error)
nolint:cyclop
func (*BackendClient) GetAssetScan ¶
func (b *BackendClient) GetAssetScan(ctx context.Context, assetScanID string, params models.GetAssetScansAssetScanIDParams) (models.AssetScan, error)
func (*BackendClient) GetAssetScanEstimation ¶
func (b *BackendClient) GetAssetScanEstimation(ctx context.Context, assetScanEstimationID string, params models.GetAssetScanEstimationsAssetScanEstimationIDParams) (models.AssetScanEstimation, error)
func (*BackendClient) GetAssetScanEstimations ¶
func (b *BackendClient) GetAssetScanEstimations(ctx context.Context, params models.GetAssetScanEstimationsParams) (models.AssetScanEstimations, error)
func (*BackendClient) GetAssetScanStatus ¶
func (b *BackendClient) GetAssetScanStatus(ctx context.Context, assetScanID string) (*models.AssetScanStatus, error)
func (*BackendClient) GetAssetScanSummary ¶
func (b *BackendClient) GetAssetScanSummary(ctx context.Context, assetScanID string) (*models.ScanFindingsSummary, error)
func (*BackendClient) GetAssetScans ¶
func (b *BackendClient) GetAssetScans(ctx context.Context, params models.GetAssetScansParams) (models.AssetScans, error)
func (*BackendClient) GetAssets ¶
func (b *BackendClient) GetAssets(ctx context.Context, params models.GetAssetsParams) (*models.Assets, error)
func (*BackendClient) GetFindings ¶
func (b *BackendClient) GetFindings(ctx context.Context, params models.GetFindingsParams) (*models.Findings, error)
func (*BackendClient) GetProvider ¶
func (b *BackendClient) GetProvider(ctx context.Context, providerID string, params models.GetProvidersProviderIDParams) (models.Provider, error)
nolint:cyclop
func (*BackendClient) GetProviders ¶
func (b *BackendClient) GetProviders(ctx context.Context, params models.GetProvidersParams) (*models.Providers, error)
func (*BackendClient) GetScan ¶
func (b *BackendClient) GetScan(ctx context.Context, scanID string, params models.GetScansScanIDParams) (*models.Scan, error)
func (*BackendClient) GetScanConfig ¶
func (b *BackendClient) GetScanConfig(ctx context.Context, scanConfigID string, params models.GetScanConfigsScanConfigIDParams) (*models.ScanConfig, error)
func (*BackendClient) GetScanConfigs ¶
func (b *BackendClient) GetScanConfigs(ctx context.Context, params models.GetScanConfigsParams) (*models.ScanConfigs, error)
func (*BackendClient) GetScanEstimation ¶
func (b *BackendClient) GetScanEstimation(ctx context.Context, scanEstimationID string, params models.GetScanEstimationsScanEstimationIDParams) (*models.ScanEstimation, error)
func (*BackendClient) GetScanEstimations ¶
func (b *BackendClient) GetScanEstimations(ctx context.Context, params models.GetScanEstimationsParams) (*models.ScanEstimations, error)
func (*BackendClient) GetScans ¶
func (b *BackendClient) GetScans(ctx context.Context, params models.GetScansParams) (*models.Scans, error)
func (*BackendClient) PatchAsset ¶
func (*BackendClient) PatchAssetScan ¶
func (*BackendClient) PatchAssetScanEstimation ¶
func (b *BackendClient) PatchAssetScanEstimation(ctx context.Context, assetScanEstimation models.AssetScanEstimation, assetScanEstimationID string) error
func (*BackendClient) PatchAssetScanStatus ¶
func (b *BackendClient) PatchAssetScanStatus(ctx context.Context, assetScanID string, status *models.AssetScanStatus) error
func (*BackendClient) PatchFinding ¶
func (*BackendClient) PatchProvider ¶
func (*BackendClient) PatchScanConfig ¶
func (b *BackendClient) PatchScanConfig(ctx context.Context, scanConfigID string, scanConfig *models.ScanConfig) error
func (*BackendClient) PatchScanEstimation ¶
func (b *BackendClient) PatchScanEstimation(ctx context.Context, scanEstimationID models.ScanEstimationID, scanEstimation *models.ScanEstimation) error
func (*BackendClient) PostAssetScan ¶
func (*BackendClient) PostAssetScanEstimation ¶
func (b *BackendClient) PostAssetScanEstimation(ctx context.Context, assetScanEstimation models.AssetScanEstimation) (*models.AssetScanEstimation, error)
func (*BackendClient) PostFinding ¶
func (*BackendClient) PostProvider ¶
func (*BackendClient) PostScanConfig ¶
func (b *BackendClient) PostScanConfig(ctx context.Context, scanConfig models.ScanConfig) (*models.ScanConfig, error)
type FindingConflictError ¶
func (FindingConflictError) Error ¶
func (t FindingConflictError) Error() string
type ProviderConflictError ¶
func (ProviderConflictError) Error ¶
func (t ProviderConflictError) Error() string
type ScanConfigConflictError ¶
type ScanConfigConflictError struct { ConflictingScanConfig *models.ScanConfig Message string }
func (ScanConfigConflictError) Error ¶
func (t ScanConfigConflictError) Error() string
type ScanConflictError ¶
func (ScanConflictError) Error ¶
func (t ScanConflictError) Error() string
Click to show internal directories.
Click to hide internal directories.