deps

package
v0.0.77 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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

func NewDepsIngester(cfg *pb.DepsType, gitprov provifv1.Git) (*Deps, error)

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) GetType

func (*Deps) GetType() string

GetType returns the type of 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

Jump to

Keyboard shortcuts

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