backendclient

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

nolint:cyclop

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetConflictError

type AssetConflictError struct {
	ConflictingAsset *models.Asset
	Message          string
}

func (AssetConflictError) Error

func (t AssetConflictError) Error() string

type AssetScanConflictError

type AssetScanConflictError struct {
	ConflictingAssetScan *models.AssetScan
	Message              string
}

func (AssetScanConflictError) Error

func (t AssetScanConflictError) Error() string

type AssetScanEstimationConflictError

type AssetScanEstimationConflictError struct {
	ConflictingAssetScanEstimation *models.AssetScanEstimation
	Message                        string
}

func (AssetScanEstimationConflictError) Error

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 (*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 (*BackendClient) GetScans

func (b *BackendClient) GetScans(ctx context.Context, params models.GetScansParams) (*models.Scans, error)

func (*BackendClient) PatchAsset

func (b *BackendClient) PatchAsset(ctx context.Context, asset models.Asset, assetID string) error

func (*BackendClient) PatchAssetScan

func (b *BackendClient) PatchAssetScan(ctx context.Context, assetScan models.AssetScan, assetScanID string) error

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 (b *BackendClient) PatchFinding(ctx context.Context, findingID models.FindingID, finding models.Finding) error

func (*BackendClient) PatchProvider

func (b *BackendClient) PatchProvider(ctx context.Context, provider models.Provider, providerID string) error

func (*BackendClient) PatchScan

func (b *BackendClient) PatchScan(ctx context.Context, scanID models.ScanID, scan *models.Scan) error

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) PostAsset

func (b *BackendClient) PostAsset(ctx context.Context, asset models.Asset) (*models.Asset, error)

func (*BackendClient) PostAssetScan

func (b *BackendClient) PostAssetScan(ctx context.Context, assetScan models.AssetScan) (*models.AssetScan, error)

func (*BackendClient) PostAssetScanEstimation

func (b *BackendClient) PostAssetScanEstimation(ctx context.Context, assetScanEstimation models.AssetScanEstimation) (*models.AssetScanEstimation, error)

func (*BackendClient) PostFinding

func (b *BackendClient) PostFinding(ctx context.Context, finding models.Finding) (*models.Finding, error)

func (*BackendClient) PostProvider

func (b *BackendClient) PostProvider(ctx context.Context, provider models.Provider) (*models.Provider, error)

func (*BackendClient) PostScan

func (b *BackendClient) PostScan(ctx context.Context, scan models.Scan) (*models.Scan, error)

func (*BackendClient) PostScanConfig

func (b *BackendClient) PostScanConfig(ctx context.Context, scanConfig models.ScanConfig) (*models.ScanConfig, error)

type FindingConflictError

type FindingConflictError struct {
	ConflictingFinding *models.Finding
	Message            string
}

func (FindingConflictError) Error

func (t FindingConflictError) Error() string

type ProviderConflictError

type ProviderConflictError struct {
	ConflictingProvider *models.Provider
	Message             string
}

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

type ScanConflictError struct {
	ConflictingScan *models.Scan
	Message         string
}

func (ScanConflictError) Error

func (t ScanConflictError) Error() string

Jump to

Keyboard shortcuts

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