client

package module
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 15

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 *types.Asset
	Message          string
}

func (AssetConflictError) Error

func (t AssetConflictError) Error() string

type AssetFindingConflictError added in v0.7.2

type AssetFindingConflictError struct {
	ConflictingAssetFinding *types.AssetFinding
	Message                 string
}

func (AssetFindingConflictError) Error added in v0.7.2

type AssetScanConflictError

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

func (AssetScanConflictError) Error

func (t AssetScanConflictError) Error() string

type AssetScanEstimationConflictError

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

func (AssetScanEstimationConflictError) Error

type Client

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

func New

func New(serverAddress string) (*Client, error)

func (*Client) DeleteAssetScanEstimation

func (c *Client) DeleteAssetScanEstimation(ctx context.Context, assetScanEstimationID types.AssetScanEstimationID) error

func (*Client) DeleteScanEstimation

func (c *Client) DeleteScanEstimation(ctx context.Context, scanEstimationID types.ScanEstimationID) error

func (*Client) GetAsset

func (c *Client) GetAsset(ctx context.Context, assetID string, params types.GetAssetsAssetIDParams) (types.Asset, error)

nolint:cyclop

func (*Client) GetAssetFindings added in v0.7.2

func (c *Client) GetAssetFindings(ctx context.Context, params types.GetAssetFindingsParams) (*types.AssetFindings, error)

func (*Client) GetAssetScan

func (c *Client) GetAssetScan(ctx context.Context, assetScanID string, params types.GetAssetScansAssetScanIDParams) (types.AssetScan, error)

func (*Client) GetAssetScanEstimation

func (c *Client) GetAssetScanEstimation(ctx context.Context, assetScanEstimationID string, params types.GetAssetScanEstimationsAssetScanEstimationIDParams) (types.AssetScanEstimation, error)

func (*Client) GetAssetScanEstimations

func (c *Client) GetAssetScanEstimations(ctx context.Context, params types.GetAssetScanEstimationsParams) (types.AssetScanEstimations, error)

func (*Client) GetAssetScanStatus

func (c *Client) GetAssetScanStatus(ctx context.Context, assetScanID string) (*types.AssetScanStatus, error)

func (*Client) GetAssetScanSummary

func (c *Client) GetAssetScanSummary(ctx context.Context, assetScanID string) (*types.ScanFindingsSummary, error)

func (*Client) GetAssetScans

func (c *Client) GetAssetScans(ctx context.Context, params types.GetAssetScansParams) (types.AssetScans, error)

func (*Client) GetAssets

func (c *Client) GetAssets(ctx context.Context, params types.GetAssetsParams) (*types.Assets, error)

func (*Client) GetFinding added in v0.7.2

func (c *Client) GetFinding(ctx context.Context, findingID types.FindingID, params types.GetFindingsFindingIDParams) (*types.Finding, error)

func (*Client) GetFindings

func (c *Client) GetFindings(ctx context.Context, params types.GetFindingsParams) (*types.Findings, error)

func (*Client) GetProvider

func (c *Client) GetProvider(ctx context.Context, providerID string, params types.GetProvidersProviderIDParams) (types.Provider, error)

nolint:cyclop

func (*Client) GetProviders

func (c *Client) GetProviders(ctx context.Context, params types.GetProvidersParams) (*types.Providers, error)

func (*Client) GetScan

func (c *Client) GetScan(ctx context.Context, scanID string, params types.GetScansScanIDParams) (*types.Scan, error)

func (*Client) GetScanConfig

func (c *Client) GetScanConfig(ctx context.Context, scanConfigID string, params types.GetScanConfigsScanConfigIDParams) (*types.ScanConfig, error)

func (*Client) GetScanConfigs

func (c *Client) GetScanConfigs(ctx context.Context, params types.GetScanConfigsParams) (*types.ScanConfigs, error)

func (*Client) GetScanEstimation

func (c *Client) GetScanEstimation(ctx context.Context, scanEstimationID string, params types.GetScanEstimationsScanEstimationIDParams) (*types.ScanEstimation, error)

func (*Client) GetScanEstimations

func (c *Client) GetScanEstimations(ctx context.Context, params types.GetScanEstimationsParams) (*types.ScanEstimations, error)

func (*Client) GetScans

func (c *Client) GetScans(ctx context.Context, params types.GetScansParams) (*types.Scans, error)

func (*Client) PatchAsset

func (c *Client) PatchAsset(ctx context.Context, asset types.Asset, assetID string) error

func (*Client) PatchAssetFinding added in v0.7.2

func (c *Client) PatchAssetFinding(ctx context.Context, assetFindingID types.AssetFindingID, assetFinding types.AssetFinding) error

func (*Client) PatchAssetScan

func (c *Client) PatchAssetScan(ctx context.Context, assetScan types.AssetScan, assetScanID string) error

func (*Client) PatchAssetScanEstimation

func (c *Client) PatchAssetScanEstimation(ctx context.Context, assetScanEstimation types.AssetScanEstimation, assetScanEstimationID string) error

func (*Client) PatchAssetScanStatus

func (c *Client) PatchAssetScanStatus(ctx context.Context, assetScanID string, status *types.AssetScanStatus) error

func (*Client) PatchFinding

func (c *Client) PatchFinding(ctx context.Context, findingID types.FindingID, finding types.Finding) error

func (*Client) PatchProvider

func (c *Client) PatchProvider(ctx context.Context, provider types.Provider, providerID string) error

func (*Client) PatchScan

func (c *Client) PatchScan(ctx context.Context, scanID types.ScanID, scan *types.Scan) error

func (*Client) PatchScanConfig

func (c *Client) PatchScanConfig(ctx context.Context, scanConfigID string, scanConfig *types.ScanConfig) error

func (*Client) PatchScanEstimation

func (c *Client) PatchScanEstimation(ctx context.Context, scanEstimationID types.ScanEstimationID, scanEstimation *types.ScanEstimation) error

func (*Client) PostAsset

func (c *Client) PostAsset(ctx context.Context, asset types.Asset) (*types.Asset, error)

func (*Client) PostAssetFinding added in v0.7.2

func (c *Client) PostAssetFinding(ctx context.Context, assetFinding types.AssetFinding) (*types.AssetFinding, error)

func (*Client) PostAssetScan

func (c *Client) PostAssetScan(ctx context.Context, assetScan types.AssetScan) (*types.AssetScan, error)

func (*Client) PostAssetScanEstimation

func (c *Client) PostAssetScanEstimation(ctx context.Context, assetScanEstimation types.AssetScanEstimation) (*types.AssetScanEstimation, error)

func (*Client) PostFinding

func (c *Client) PostFinding(ctx context.Context, finding types.Finding) (*types.Finding, error)

func (*Client) PostProvider

func (c *Client) PostProvider(ctx context.Context, provider types.Provider) (*types.Provider, error)

func (*Client) PostScan

func (c *Client) PostScan(ctx context.Context, scan types.Scan) (*types.Scan, error)

func (*Client) PostScanConfig

func (c *Client) PostScanConfig(ctx context.Context, scanConfig types.ScanConfig) (*types.ScanConfig, error)

type FindingConflictError

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

func (FindingConflictError) Error

func (t FindingConflictError) Error() string

type ProviderConflictError

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

func (ProviderConflictError) Error

func (t ProviderConflictError) Error() string

type ScanConfigConflictError

type ScanConfigConflictError struct {
	ConflictingScanConfig *types.ScanConfig
	Message               string
}

func (ScanConfigConflictError) Error

func (t ScanConfigConflictError) Error() string

type ScanConflictError

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

func (ScanConflictError) Error

func (t ScanConflictError) Error() string

Directories

Path Synopsis
internal
client
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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