Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResetRequest ¶
type ResponseV2 ¶
type ResponseV2 struct { Code int `json:"code,omitempty"` Status string `json:"status,omitempty"` Result interface{} `json:"result,omitempty"` Errors []*util.ApiError `json:"errors,omitempty"` }
global response body used across api
type RestHandler ¶
type RestHandler interface {
ScanForVulnerability(w http.ResponseWriter, r *http.Request)
}
type RestHandlerImpl ¶
type RestHandlerImpl struct {
// contains filtered or unexported fields
}
func NewRestHandlerImpl ¶
func NewRestHandlerImpl(logger *zap.SugaredLogger, testPublish pubsub.TestPublish, grafeasService grafeasService.GrafeasService, userService user.UserService, imageScanService security.ImageScanService, klarService klarService.KlarService, clairService clairService.ClairService, imageScanConfig *security.ImageScanConfig) *RestHandlerImpl
func (*RestHandlerImpl) ScanForVulnerability ¶
func (impl *RestHandlerImpl) ScanForVulnerability(w http.ResponseWriter, r *http.Request)
type Router ¶
func NewRouter ¶
func NewRouter(logger *zap.SugaredLogger, restHandler RestHandler, monitoringRouter *monitoring.MonitoringRouter) *Router
Click to show internal directories.
Click to hide internal directories.