run

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const LanguageDetectionFeature = "LANGUAGE_DETECTION"

LanguageDetectionFeature is a feature to detect languages, and versions.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	EffxClient *effx.Client
	ScratchDir string
	AuthMethod transport.AuthMethod
}

Consumer is a stateless entity that ingests repositories from integrations.

func (*Consumer) Consume

func (c *Consumer) Consume(log *zap.Logger, repository *model.Repository) (err error)

Consume attempts to index a repository for effx.yaml files

func (*Consumer) FindEffxYAML

func (c *Consumer) FindEffxYAML(workDir string) ([]string, error)

FindEffxYAML searches the provided work directory for effx.yaml files.

func (*Consumer) Run

func (c *Consumer) Run(ctx context.Context, data chan *model.Repository) error

Run consumes repositories from the data channel until the program is shutdown.

func (*Consumer) SetupFS

func (c *Consumer) SetupFS(workDir, cloneURL string) error

SetupFS initializes the workspace with the corresponding git repository.

Jump to

Keyboard shortcuts

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