server

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBWorkerSuperSet = wire.NewSet(
	dbFile.SuperSet,
	newDBWorker,
)

DBWorkerSuperSet binds the dependencies for Trivy DB worker

ScanSuperSet binds the dependencies for server

Functions

func ListenAndServe

func ListenAndServe(c config.Config, serverCache cache.Cache) error

ListenAndServe starts Trivy server

Types

type CacheServer added in v0.5.0

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

CacheServer implements the cache

func NewCacheServer added in v0.5.0

func NewCacheServer(c cache.Cache) *CacheServer

NewCacheServer is the facotry method for cacheServer

func (*CacheServer) MissingBlobs added in v0.9.0

MissingBlobs returns missing blobs from cache

func (*CacheServer) PutArtifact added in v0.9.0

PutArtifact puts the artifacts in cache

func (*CacheServer) PutBlob added in v0.9.0

PutBlob puts the blobs in cache

type ScanServer added in v0.5.0

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

ScanServer implements the scanner

func NewScanServer added in v0.5.0

func NewScanServer(s scanner.Driver, vulnClient vulnerability.Operation) *ScanServer

NewScanServer is the factory method for scanner

func (*ScanServer) Scan added in v0.5.0

Scan scans and return response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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