Documentation ¶
Index ¶
- Variables
- type CacheServer
- func (s *CacheServer) DeleteBlobs(_ context.Context, in *rpcCache.DeleteBlobsRequest) (*emptypb.Empty, error)
- func (s *CacheServer) MissingBlobs(_ context.Context, in *rpcCache.MissingBlobsRequest) (*rpcCache.MissingBlobsResponse, error)
- func (s *CacheServer) PutArtifact(_ context.Context, in *rpcCache.PutArtifactRequest) (*emptypb.Empty, error)
- func (s *CacheServer) PutBlob(_ context.Context, in *rpcCache.PutBlobRequest) (*emptypb.Empty, error)
- type ScanServer
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ScanSuperSet = wire.NewSet( local.SuperSet, wire.Bind(new(scanner.Driver), new(local.Scanner)), NewScanServer, )
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 ¶
func (s *CacheServer) DeleteBlobs(_ context.Context, in *rpcCache.DeleteBlobsRequest) (*emptypb.Empty, error)
DeleteBlobs removes blobs by IDs
func (*CacheServer) MissingBlobs ¶
func (s *CacheServer) MissingBlobs(_ context.Context, in *rpcCache.MissingBlobsRequest) (*rpcCache.MissingBlobsResponse, error)
MissingBlobs returns missing blobs from cache
func (*CacheServer) PutArtifact ¶
func (s *CacheServer) PutArtifact(_ context.Context, in *rpcCache.PutArtifactRequest) (*emptypb.Empty, error)
PutArtifact puts the artifacts in cache
func (*CacheServer) PutBlob ¶
func (s *CacheServer) PutBlob(_ context.Context, in *rpcCache.PutBlobRequest) (*emptypb.Empty, error)
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 ¶
func (s *ScanServer) Scan(ctx context.Context, in *rpcScanner.ScanRequest) (*rpcScanner.ScanResponse, error)
Scan scans and return response
func (*ScanServer) ToOptions ¶
func (s *ScanServer) ToOptions(in *rpcScanner.ScanOptions) types.ScanOptions
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
Click to show internal directories.
Click to hide internal directories.