rest

package
v0.0.0-...-03c3031 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeScan

type RuntimeScan struct {
	State
	// contains filtered or unexported fields
}

type Server

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

func CreateRESTServer

func CreateRESTServer(port int, dbHandler *database.Handler, scanner orchestrator.VulnerabilitiesScanner,
	clientset kubernetes.Interface) (*Server, error)

func (*Server) CreateApplication

func (s *Server) CreateApplication(params operations.PostApplicationsParams) middleware.Responder

func (*Server) DeleteApplication

func (s *Server) DeleteApplication(id string) middleware.Responder

func (*Server) GetApplication

func (s *Server) GetApplication(id string) middleware.Responder

func (*Server) GetApplicationResource

func (s *Server) GetApplicationResource(id string) middleware.Responder

func (*Server) GetApplicationResources

func (s *Server) GetApplicationResources(params operations.GetApplicationResourcesParams) middleware.Responder

func (*Server) GetApplications

func (s *Server) GetApplications(params operations.GetApplicationsParams) middleware.Responder

func (*Server) GetDashboardCounters

func (*Server) GetDashboardTrendsVulnerabilities

func (s *Server) GetDashboardTrendsVulnerabilities(params operations.GetDashboardTrendsVulnerabilitiesParams) middleware.Responder

func (*Server) GetNamespaceList

func (s *Server) GetNamespaceList() ([]string, error)

func (*Server) GetNamespaces

func (*Server) GetPackage

func (s *Server) GetPackage(id string) middleware.Responder

func (*Server) GetPackageApplicationResources

func (s *Server) GetPackageApplicationResources(params operations.GetPackagesIDApplicationResourcesParams) middleware.Responder

func (*Server) GetPackages

func (s *Server) GetPackages(params operations.GetPackagesParams) middleware.Responder

func (*Server) GetRuntimeQuickScanConfig

func (s *Server) GetRuntimeQuickScanConfig(_ operations.GetRuntimeQuickscanConfigParams) middleware.Responder

func (*Server) GetRuntimeScanProgress

func (s *Server) GetRuntimeScanProgress(_ operations.GetRuntimeScanProgressParams) middleware.Responder

func (*Server) GetRuntimeScanResults

func (s *Server) GetRuntimeScanResults(params operations.GetRuntimeScanResultsParams) middleware.Responder

func (*Server) GetState

func (s *Server) GetState() *State

func (*Server) GetVulnerabilities

func (s *Server) GetVulnerabilities(params operations.GetVulnerabilitiesParams) middleware.Responder

func (*Server) GetVulnerabilitiesVulIDPkgID

func (s *Server) GetVulnerabilitiesVulIDPkgID(vulID, pkgID string) middleware.Responder

func (*Server) PostApplicationsContentAnalysis

func (s *Server) PostApplicationsContentAnalysis(params operations.PostApplicationsContentAnalysisIDParams) middleware.Responder

func (*Server) PostApplicationsVulnerabilityScan

func (s *Server) PostApplicationsVulnerabilityScan(params operations.PostApplicationsVulnerabilityScanIDParams) middleware.Responder

func (*Server) PutRuntimeQuickScanConfig

func (s *Server) PutRuntimeQuickScanConfig(params operations.PutRuntimeQuickscanConfigParams) middleware.Responder

func (*Server) PutRuntimeScanStart

func (s *Server) PutRuntimeScanStart(params operations.PutRuntimeScanStartParams) middleware.Responder

func (*Server) PutRuntimeScanStop

func (*Server) SetState

func (s *Server) SetState(state *State)

func (*Server) Start

func (s *Server) Start(errChan chan struct{})

func (*Server) Stop

func (s *Server) Stop()

func (*Server) UpdateApplication

func (s *Server) UpdateApplication(params operations.PutApplicationsIDParams) middleware.Responder

type State

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

Jump to

Keyboard shortcuts

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