server

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 28 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

This section is empty.

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 result.Client) *ScanServer

NewScanServer is the factory method for scanner

func (*ScanServer) Scan added in v0.5.0

Scan scans and return response

type Server added in v0.17.0

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

Server represents Trivy server

func NewServer added in v0.17.0

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

NewServer returns an instance of Server

func (Server) ListenAndServe added in v0.17.0

func (s Server) ListenAndServe(serverCache cache.Cache) error

ListenAndServe starts Trivy server

Jump to

Keyboard shortcuts

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