rest

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func CreateRESTServer

func CreateRESTServer(port int, dbHandler databaseTypes.Database) (*Server, error)

func (*Server) Start

func (s *Server) Start(ctx context.Context, errChan chan struct{})

func (*Server) Stop

func (s *Server) Stop(ctx context.Context)

type ServerImpl

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

func (*ServerImpl) DeleteAssetScanEstimationsAssetScanEstimationID

func (s *ServerImpl) DeleteAssetScanEstimationsAssetScanEstimationID(ctx echo.Context, assetScanEstimationID models.AssetScanEstimationID) error

func (*ServerImpl) DeleteAssetsAssetID

func (s *ServerImpl) DeleteAssetsAssetID(ctx echo.Context, assetID models.AssetID) error

func (*ServerImpl) DeleteFindingsFindingID

func (s *ServerImpl) DeleteFindingsFindingID(ctx echo.Context, findingID models.FindingID) error

func (*ServerImpl) DeleteProvidersProviderID

func (s *ServerImpl) DeleteProvidersProviderID(ctx echo.Context, providerID models.ProviderID) error

func (*ServerImpl) DeleteScanConfigsScanConfigID

func (s *ServerImpl) DeleteScanConfigsScanConfigID(ctx echo.Context, scanConfigID models.ScanConfigID) error

func (*ServerImpl) DeleteScanEstimationsScanEstimationID

func (s *ServerImpl) DeleteScanEstimationsScanEstimationID(ctx echo.Context, scanEstimationID models.ScanEstimationID) error

func (*ServerImpl) DeleteScansScanID

func (s *ServerImpl) DeleteScansScanID(ctx echo.Context, scanID models.ScanID) error

func (*ServerImpl) GetAssetScanEstimations

func (s *ServerImpl) GetAssetScanEstimations(ctx echo.Context, params models.GetAssetScanEstimationsParams) error

func (*ServerImpl) GetAssetScanEstimationsAssetScanEstimationID

func (s *ServerImpl) GetAssetScanEstimationsAssetScanEstimationID(ctx echo.Context, assetScanEstimationID models.AssetScanEstimationID, params models.GetAssetScanEstimationsAssetScanEstimationIDParams) error

func (*ServerImpl) GetAssetScans

func (s *ServerImpl) GetAssetScans(ctx echo.Context, params models.GetAssetScansParams) error

func (*ServerImpl) GetAssetScansAssetScanID

func (s *ServerImpl) GetAssetScansAssetScanID(ctx echo.Context, assetScanID models.AssetScanID, params models.GetAssetScansAssetScanIDParams) error

func (*ServerImpl) GetAssets

func (s *ServerImpl) GetAssets(ctx echo.Context, params models.GetAssetsParams) error

func (*ServerImpl) GetAssetsAssetID

func (s *ServerImpl) GetAssetsAssetID(ctx echo.Context, assetID models.AssetID, params models.GetAssetsAssetIDParams) error

func (*ServerImpl) GetFindings

func (s *ServerImpl) GetFindings(ctx echo.Context, params models.GetFindingsParams) error

func (*ServerImpl) GetFindingsFindingID

func (s *ServerImpl) GetFindingsFindingID(ctx echo.Context, findingID models.FindingID, params models.GetFindingsFindingIDParams) error

func (*ServerImpl) GetOpenAPISpec

func (s *ServerImpl) GetOpenAPISpec(ctx echo.Context) error

func (*ServerImpl) GetProviders

func (s *ServerImpl) GetProviders(ctx echo.Context, params models.GetProvidersParams) error

func (*ServerImpl) GetProvidersProviderID

func (s *ServerImpl) GetProvidersProviderID(ctx echo.Context, providerID models.ProviderID, params models.GetProvidersProviderIDParams) error

func (*ServerImpl) GetScanConfigs

func (s *ServerImpl) GetScanConfigs(ctx echo.Context, params models.GetScanConfigsParams) error

func (*ServerImpl) GetScanConfigsScanConfigID

func (s *ServerImpl) GetScanConfigsScanConfigID(ctx echo.Context, scanConfigID models.ScanConfigID, params models.GetScanConfigsScanConfigIDParams) error

func (*ServerImpl) GetScanEstimations

func (s *ServerImpl) GetScanEstimations(ctx echo.Context, params models.GetScanEstimationsParams) error

func (*ServerImpl) GetScanEstimationsScanEstimationID

func (s *ServerImpl) GetScanEstimationsScanEstimationID(ctx echo.Context, scanEstimationID models.ScanEstimationID, params models.GetScanEstimationsScanEstimationIDParams) error

func (*ServerImpl) GetScans

func (s *ServerImpl) GetScans(ctx echo.Context, params models.GetScansParams) error

func (*ServerImpl) GetScansScanID

func (s *ServerImpl) GetScansScanID(ctx echo.Context, scanID models.ScanID, params models.GetScansScanIDParams) error

func (*ServerImpl) PatchAssetScanEstimationsAssetScanEstimationID

func (s *ServerImpl) PatchAssetScanEstimationsAssetScanEstimationID(ctx echo.Context, assetScanEstimationID models.AssetScanEstimationID, params models.PatchAssetScanEstimationsAssetScanEstimationIDParams) error

nolint:cyclop

func (*ServerImpl) PatchAssetScansAssetScanID

func (s *ServerImpl) PatchAssetScansAssetScanID(ctx echo.Context, assetScanID models.AssetScanID, params models.PatchAssetScansAssetScanIDParams) error

nolint:cyclop

func (*ServerImpl) PatchAssetsAssetID

func (s *ServerImpl) PatchAssetsAssetID(ctx echo.Context, assetID models.AssetID, params models.PatchAssetsAssetIDParams) error

func (*ServerImpl) PatchFindingsFindingID

func (s *ServerImpl) PatchFindingsFindingID(ctx echo.Context, findingID models.FindingID) error

func (*ServerImpl) PatchProvidersProviderID

func (s *ServerImpl) PatchProvidersProviderID(ctx echo.Context, providerID models.ProviderID, params models.PatchProvidersProviderIDParams) error

func (*ServerImpl) PatchScanConfigsScanConfigID

func (s *ServerImpl) PatchScanConfigsScanConfigID(ctx echo.Context, scanConfigID models.ScanConfigID, params models.PatchScanConfigsScanConfigIDParams) error

func (*ServerImpl) PatchScanEstimationsScanEstimationID

func (s *ServerImpl) PatchScanEstimationsScanEstimationID(ctx echo.Context, scanEstimationID models.ScanEstimationID, params models.PatchScanEstimationsScanEstimationIDParams) error

func (*ServerImpl) PatchScansScanID

func (s *ServerImpl) PatchScansScanID(ctx echo.Context, scanID models.ScanID, params models.PatchScansScanIDParams) error

func (*ServerImpl) PostAssetScanEstimations

func (s *ServerImpl) PostAssetScanEstimations(ctx echo.Context) error

func (*ServerImpl) PostAssetScans

func (s *ServerImpl) PostAssetScans(ctx echo.Context) error

func (*ServerImpl) PostAssets

func (s *ServerImpl) PostAssets(ctx echo.Context) error

nolint:cyclop

func (*ServerImpl) PostFindings

func (s *ServerImpl) PostFindings(ctx echo.Context) error

func (*ServerImpl) PostProviders

func (s *ServerImpl) PostProviders(ctx echo.Context) error

nolint:cyclop

func (*ServerImpl) PostScanConfigs

func (s *ServerImpl) PostScanConfigs(ctx echo.Context) error

func (*ServerImpl) PostScanEstimations

func (s *ServerImpl) PostScanEstimations(ctx echo.Context) error

func (*ServerImpl) PostScans

func (s *ServerImpl) PostScans(ctx echo.Context) error

func (*ServerImpl) PutAssetScanEstimationsAssetScanEstimationID

func (s *ServerImpl) PutAssetScanEstimationsAssetScanEstimationID(ctx echo.Context, assetScanEstimationID models.AssetScanEstimationID, params models.PutAssetScanEstimationsAssetScanEstimationIDParams) error

nolint:cyclop

func (*ServerImpl) PutAssetScansAssetScanID

func (s *ServerImpl) PutAssetScansAssetScanID(ctx echo.Context, assetScanID models.AssetScanID, params models.PutAssetScansAssetScanIDParams) error

nolint:cyclop

func (*ServerImpl) PutAssetsAssetID

func (s *ServerImpl) PutAssetsAssetID(ctx echo.Context, assetID models.AssetID, params models.PutAssetsAssetIDParams) error

func (*ServerImpl) PutFindingsFindingID

func (s *ServerImpl) PutFindingsFindingID(ctx echo.Context, findingID models.FindingID) error

func (*ServerImpl) PutProvidersProviderID

func (s *ServerImpl) PutProvidersProviderID(ctx echo.Context, providerID models.ProviderID, params models.PutProvidersProviderIDParams) error

func (*ServerImpl) PutScanConfigsScanConfigID

func (s *ServerImpl) PutScanConfigsScanConfigID(ctx echo.Context, scanConfigID models.ScanConfigID, params models.PutScanConfigsScanConfigIDParams) error

func (*ServerImpl) PutScanEstimationsScanEstimationID

func (s *ServerImpl) PutScanEstimationsScanEstimationID(ctx echo.Context, scanEstimationID models.ScanEstimationID, params models.PutScanEstimationsScanEstimationIDParams) error

func (*ServerImpl) PutScansScanID

func (s *ServerImpl) PutScansScanID(ctx echo.Context, scanID models.ScanID, params models.PutScansScanIDParams) error

Jump to

Keyboard shortcuts

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