backend

package
v0.0.0-...-5f6b411 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Empty struct{}

Functions

func Run

func Run()

Types

type Server

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

func CreateRESTServer

func CreateRESTServer(port int, dbHandler *database.Handler) (*Server, error)

func (*Server) GetSbomDBResourceHash

func (s *Server) GetSbomDBResourceHash(params operations.GetSbomDBResourceHashParams) middleware.Responder

GetSbomDBResourceHash Get SBOM from DB by resource hash.

func (*Server) PutSbomDBResourceHash

func (s *Server) PutSbomDBResourceHash(params operations.PutSbomDBResourceHashParams) middleware.Responder

PutSbomDBResourceHash Put SBOM in DB by resource hash. If resource hash already exists, replace the old SBOM with the new one.

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