server

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 30 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 {

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

Server represents Tunnel server

func NewServer

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

NewServer returns an instance of Server

func (Server) ListenAndServe

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

ListenAndServe starts Tunnel server

Jump to

Keyboard shortcuts

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