server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 32 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

func (*ScanServer) ToOptions

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, pathPrefix string, dbRepositories []name.Reference, opt types.RegistryOptions) Server

NewServer returns an instance of Server

func (Server) ListenAndServe

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

ListenAndServe starts Tunnel server

func (Server) NewServeMux

func (s Server) NewServeMux(ctx context.Context, serverCache cache.Cache, dbUpdateWg, requestWg *sync.WaitGroup) *http.ServeMux

Jump to

Keyboard shortcuts

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