integrations

package
v0.69.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package integrations contains packaging logic for python integrations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveCompiledFiles

func RemoveCompiledFiles(installPath string) error

RemoveCompiledFiles removes compiled Python files (.pyc, .pyo) and __pycache__ directories

func RemoveCustomIntegrations

func RemoveCustomIntegrations(ctx context.Context, installPath string) (err error)

RemoveCustomIntegrations removes custom integrations that are not installed by the package

Since 6.18.0, a file containing all integrations files which have been installed by the package is available. We use it to remove only the datadog-related check files which have *NOT* been installed by the package (eg: installed using the `integration` command).

func RestoreCustomIntegrations

func RestoreCustomIntegrations(ctx context.Context, installPath string) (err error)

RestoreCustomIntegrations restores custom integrations from the previous installation Today it calls post.py to persist the custom integrations; though we should probably port this to Go in the future.

Note: in the OCI installation this fails as the file where integrations are saved is hardcoded to be in the same directory as the agent. This will be fixed in a future PR.

func SaveCustomIntegrations

func SaveCustomIntegrations(ctx context.Context, installPath string) (err error)

SaveCustomIntegrations saves custom integrations from the previous installation Today it calls pre.py to persist the custom integrations; though we should probably port this to Go in the future.

Note: in the OCI installation this fails as the file where integrations are saved is hardcoded to be in the same directory as the agent. This will be fixed in a future PR.

Types

This section is empty.

Jump to

Keyboard shortcuts

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