Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrapper ¶
Bootstrapper optionally prepares a driver before indexing starts.
type CommandDriver ¶
type CommandDriver struct {
// contains filtered or unexported fields
}
func (*CommandDriver) Bootstrap ¶
func (d *CommandDriver) Bootstrap(ctx context.Context, req Request) error
func (*CommandDriver) Language ¶
func (d *CommandDriver) Language() string
func (*CommandDriver) Name ¶
func (d *CommandDriver) Name() string
func (*CommandDriver) Supports ¶
func (d *CommandDriver) Supports(repoRoot string) bool
type Driver ¶
type Driver interface {
Name() string
Language() string
Supports(repoRoot string) bool
Index(ctx context.Context, req Request) (Result, error)
}
Driver defines the language-specific SCIP integration contract used by the graph-truth build pipeline.
func NewGoDriver ¶
func NewPythonDriver ¶
func NewTypeScriptDriver ¶
type MissingBinaryError ¶
type MissingBinaryError struct {
Driver string
Command string
RepoRoot string
InstallHint string
Cause error
}
func (*MissingBinaryError) Error ¶
func (e *MissingBinaryError) Error() string
func (*MissingBinaryError) Unwrap ¶
func (e *MissingBinaryError) Unwrap() error
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores the available language-specific SCIP drivers behind one language-agnostic lookup surface.
func DefaultRegistry ¶
func NewRegistry ¶
NewRegistry builds a registry from the supplied drivers.
type Request ¶
Request is the normalized input passed to a specific SCIP driver.
Click to show internal directories.
Click to hide internal directories.