diff

package
v0.0.0-...-e551ea9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiffer

func NewDiffer(preRs *git.RepoSpec, postRs *git.RepoSpec, epds []entrypoint.EntrypointFactory, opts ...DifferOption) *repoDiffer

NewDiffer creates a new Differ instance with the given repository specifications and entrypoint factories. Optional functional options can be provided to configure the Differ's behavior, such as adding tracing support.

Types

type DifferOption

type DifferOption func(*repoDiffer)

DifferOption is a functional option for configuring a Differ.

func WithOtelTracer

func WithOtelTracer(tracer trace.Tracer) DifferOption

WithOtelTracer configures the Differ to use the provided OpenTelemetry tracer for instrumentation.

func WithTracer

func WithTracer(tracer *tracing.Tracer) DifferOption

WithTracer configures the Differ to use the provided tracer for instrumentation.

type EntrypointDiff

type EntrypointDiff struct {
	Entrypoint entrypoint.Entrypoint   `json:"entrypoint"`
	Error      error                   `json:"error"`
	Diff       []resource.ResourceDiff `json:"diff"`
	All        []resource.Resource     `json:"all"`
}

Jump to

Keyboard shortcuts

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