server

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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 factory method for cacheServer

func (*CacheServer) DeleteBlobs added in v0.25.0

DeleteBlobs removes blobs by IDs

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) *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 {

	// For OCI registries
	types.RegistryOptions
	// contains filtered or unexported fields
}

Server represents Trivy server

func NewServer added in v0.17.0

func NewServer(appVersion, addr, cacheDir, token, tokenHeader string, dbRepository name.Reference, opt types.RegistryOptions) Server

NewServer returns an instance of Server

func (Server) ListenAndServe added in v0.17.0

func (s Server) ListenAndServe(ctx context.Context, serverCache cache.Cache, skipDBUpdate bool) error

ListenAndServe starts Trivy server

Jump to

Keyboard shortcuts

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