Documentation ¶
Index ¶
- Variables
- type CacheServer
- func (s *CacheServer) MissingBlobs(_ context.Context, in *rpcCache.MissingBlobsRequest) (*rpcCache.MissingBlobsResponse, error)
- func (s *CacheServer) PutArtifact(_ context.Context, in *rpcCache.PutArtifactRequest) (*google_protobuf.Empty, error)
- func (s *CacheServer) PutBlob(_ context.Context, in *rpcCache.PutBlobRequest) (*google_protobuf.Empty, error)
- type ScanServer
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var DBWorkerSuperSet = wire.NewSet( dbFile.SuperSet, newDBWorker, )
DBWorkerSuperSet binds the dependencies for Trivy DB worker
View Source
var ScanSuperSet = wire.NewSet( local.SuperSet, wire.Bind(new(scanner.Driver), new(local.Scanner)), vulnerability.SuperSet, NewScanServer, )
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
func (s *CacheServer) MissingBlobs(_ context.Context, in *rpcCache.MissingBlobsRequest) (*rpcCache.MissingBlobsResponse, error)
MissingBlobs returns missing blobs from cache
func (*CacheServer) PutArtifact ¶ added in v0.9.0
func (s *CacheServer) PutArtifact(_ context.Context, in *rpcCache.PutArtifactRequest) (*google_protobuf.Empty, error)
PutArtifact puts the artifacts in cache
func (*CacheServer) PutBlob ¶ added in v0.9.0
func (s *CacheServer) PutBlob(_ context.Context, in *rpcCache.PutBlobRequest) (*google_protobuf.Empty, error)
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
func (s *ScanServer) Scan(_ context.Context, in *rpcScanner.ScanRequest) (*rpcScanner.ScanResponse, error)
Scan scans and return response
Click to show internal directories.
Click to hide internal directories.