shared

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package shared holds the language-agnostic feature implementations: features that apply to any repository regardless of its toolchain (version control, secret scanning). Each constructor takes its injected tool (if any) and returns the feature's care interface, so main fills the Ecosystem slots next to the language-specific features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBetterleaks

func NewBetterleaks(tool care.Tool, history bool) care.Secrets

NewBetterleaks scans a repo for leaked secrets via the injected betterleaks tool. history scans git history too (the default is the working tree only). It is language-agnostic: betterleaks works on any repository.

func NewVersionControl

func NewVersionControl() care.VersionControl

NewVersionControl reports the working-tree and upstream-sync state of a repo. It is language-agnostic (it shells out to git via internal/devops/git) and applies to any repository.

Types

This section is empty.

Directories

Path Synopsis
Package sync resolves file sources (local, embedded, remote) and writes them into the working tree, honoring an existing-file/force rule.
Package sync resolves file sources (local, embedded, remote) and writes them into the working tree, honoring an existing-file/force rule.
Package tools builds the language-agnostic external tools with their install coordinates and an optional version pin.
Package tools builds the language-agnostic external tools with their install coordinates and an optional version pin.

Jump to

Keyboard shortcuts

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