server

package
v0.0.0-...-82b092a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ScanSuperSet binds the dependencies for server

Functions

This section is empty.

Types

type CacheServer

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

CacheServer implements the cache

func NewCacheServer

func NewCacheServer(c cache.Cache) *CacheServer

NewCacheServer is the factory method for cacheServer

func (*CacheServer) DeleteBlobs

DeleteBlobs removes blobs by IDs

func (*CacheServer) MissingBlobs

MissingBlobs returns missing blobs from cache

func (*CacheServer) PutArtifact

PutArtifact puts the artifacts in cache

func (*CacheServer) PutBlob

PutBlob puts the blobs in cache

type ScanServer

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

ScanServer implements the scanner

func NewScanServer

func NewScanServer(s scanner.Driver) *ScanServer

NewScanServer is the factory method for scanner

func (*ScanServer) Scan

Scan scans and return response

type Server

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

Server represents cvescan server

func NewServer

func NewServer(appVersion, addr, cacheDir, token, tokenHeader, dbRepository string) Server

NewServer returns an instance of Server

func (Server) ListenAndServe

func (s Server) ListenAndServe(serverCache cache.Cache, insecure, skipDBUpdate bool) error

ListenAndServe starts cvescan server

Jump to

Keyboard shortcuts

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