git

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package git provides the Git change detection plugin for TerraCi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin is the Git change detection plugin.

func (*Plugin) Description

func (p *Plugin) Description() string

func (*Plugin) DetectChangedLibraries

func (p *Plugin) DetectChangedLibraries(_ context.Context, appCtx *plugin.AppContext, baseRef string, libraryPaths []string) ([]string, error)

DetectChangedLibraries returns library paths changed since the given base ref.

func (*Plugin) DetectChangedModules

func (p *Plugin) DetectChangedModules(_ context.Context, appCtx *plugin.AppContext, baseRef string, moduleIndex *discovery.ModuleIndex) ([]*discovery.Module, []string, error)

DetectChangedModules returns modules changed since the given base ref.

func (*Plugin) Initialize

func (p *Plugin) Initialize(_ context.Context, appCtx *plugin.AppContext) error

Initialize verifies the git repository and caches the client at startup.

func (*Plugin) Name

func (p *Plugin) Name() string

Directories

Path Synopsis
Package git provides Git integration for detecting changed files.
Package git provides Git integration for detecting changed files.

Jump to

Keyboard shortcuts

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