integrations

package
v1.4.4 Latest Latest
Warning

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

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

Documentation

Overview

Package integrations handles `ginger add <integration>` by generating platform integration files and updating go.mod dependencies.

Index

Constants

This section is empty.

Variables

View Source
var ErrIntegrationExists = errors.New("integration already exists")

ErrIntegrationExists is returned when the target integration file already exists.

Functions

func Add

func Add(name string) error

Add generates the integration file and runs go get for the required package.

func NeedsPostApply added in v1.4.0

func NeedsPostApply(name string, p *plan.Plan) bool

NeedsPostApply reports whether the plan created or replaced the integration implementation and therefore needs dependency installation.

func Plan added in v1.4.0

func Plan(name string, prj *project.Project, overwrite bool) (*plan.Plan, error)

Plan builds a root-aware plan for adding an integration. Existing user files are modified only when owned by the manifest or through a managed region.

func PostApply added in v1.4.0

func PostApply(name, projectRoot string) error

PostApply installs a declared Go dependency. File changes, including compose changes, are always handled by the plan itself.

Types

This section is empty.

Jump to

Keyboard shortcuts

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