Documentation
¶
Overview ¶
Package deps provides the deps rule data ingest engine
Index ¶
Constants ¶
View Source
const (
// DepsRuleDataIngestType is the type of the deps rule data ingest engine
DepsRuleDataIngestType = "deps"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Branch string `json:"branch" yaml:"branch" mapstructure:"branch"`
}
Config is the set of parameters to the deps rule data ingest engine
type Deps ¶
type Deps struct {
// contains filtered or unexported fields
}
Deps is the engine for a rule type that uses deps data ingest
func NewDepsIngester ¶
NewDepsIngester creates a new deps rule data ingest engine
func (*Deps) GetConfig ¶
func (gi *Deps) GetConfig() protoreflect.ProtoMessage
GetConfig returns the config for the git rule data ingest engine
func (*Deps) Ingest ¶
func (gi *Deps) Ingest(ctx context.Context, ent protoreflect.ProtoMessage, params map[string]any) (*interfaces.Result, error)
Ingest does the actual data ingestion for a rule type by cloning a git repo, and scanning it for dependencies with a dependency extractor
Click to show internal directories.
Click to hide internal directories.