Documentation
¶
Overview ¶
Package integrations contains packaging logic for python integrations
Index ¶
- func RemoveCompiledFiles(installPath string) error
- func RemoveCustomIntegrations(ctx context.Context, installPath string) (err error)
- func RestoreCustomIntegrations(ctx context.Context, installPath string) (err error)
- func SaveCustomIntegrations(ctx context.Context, installPath string, storagePath string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveCompiledFiles ¶
RemoveCompiledFiles removes compiled Python files (.pyc, .pyo) and __pycache__ directories
func RemoveCustomIntegrations ¶
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 ¶
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.
func SaveCustomIntegrations ¶
func SaveCustomIntegrations(ctx context.Context, installPath string, storagePath 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.
Types ¶
This section is empty.