depsscannerclient

package
v0.0.0-...-fcf6678 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package depsscannerclient implements the cppdependencyscanner.DepsScanner with gRPC

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepsScannerClient

type DepsScannerClient struct {
	// contains filtered or unexported fields
}

DepsScannerClient wraps the dependency scanner gRPC client.

func New

func New(ctx context.Context, executor executor, cacheDir string, cacheFileMaxMb int, useDepsCache bool, logDir string, depsScannerAddress, proxyServerAddress string, connTimeout time.Duration, connect connectFn) (client *DepsScannerClient, err error)

New creates new DepsScannerClient.

func (*DepsScannerClient) Capabilities

func (ds *DepsScannerClient) Capabilities() *pb.CapabilitiesResponse

Capabilities implements DepsScanner.Capabilities.

func (*DepsScannerClient) Close

func (ds *DepsScannerClient) Close()

Close implements DepsScanner.Close. It cleanly disconnects from the remote service and releases resource associated with DepsScannerClient.

func (*DepsScannerClient) ProcessInputs

func (ds *DepsScannerClient) ProcessInputs(ctx context.Context, execID string, compileCommand []string, filename, directory string, cmdEnv []string) (dependencies []string, usedCache bool, err error)

ProcessInputs implements DepsScanner.ProcessInputs by sending a ProcessInputs gRPC to the connected server and returns the result. Returns list of dependencies, boolean indicating whether deps cache was used, and error if there was one.

Jump to

Keyboard shortcuts

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