rest

package
v2.7.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScanResultsHandler

type ScanResultsHandler interface {
	HandleScanResults(params operations.PostScanScanUUIDResultsParams) error
	HandleScanContentAnalysis(params operations.PostScanScanUUIDContentAnalysisParams) error
	HandleCISDockerBenchmarkScanResults(params operations.PostScanScanUUIDCisDockerBenchmarkResultsParams) error
}

type Server

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

func CreateRESTServer

func CreateRESTServer(port int, handler ScanResultsHandler) (*Server, error)

func (*Server) PostScanScanUUIDContentAnalysis

func (s *Server) PostScanScanUUIDContentAnalysis(params operations.PostScanScanUUIDContentAnalysisParams) middleware.Responder

func (*Server) PostScanScanUUIDResults

func (s *Server) PostScanScanUUIDResults(params operations.PostScanScanUUIDResultsParams) middleware.Responder

func (*Server) Start

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

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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