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.
Click to show internal directories.
Click to hide internal directories.