Help us shape the future of Go! Take the 2026 Go Developer Survey

installer

package
v0.84.6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package installer contains a wrapper around the datadog-installer commands for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

Installer is a cross-platform wrapper around the datadog-installer commands for use in tests.

func New

func New(t func() *testing.T, host *environments.Host) *Installer

New creates a new instance of Installer.

func (*Installer) Install

func (i *Installer) Install(packageURL string) (string, error)

Install installs a package from the given URL.

func (*Installer) InstallExtension

func (i *Installer) InstallExtension(packageURL, extensionName string) (string, error)

InstallExtension installs an extension from a package.

func (*Installer) MustInstallExtension

func (i *Installer) MustInstallExtension(packageURL, extensionName string)

MustInstallExtension installs an extension from a package and fails the test if it returns an error.

func (*Installer) MustRemoveExtension

func (i *Installer) MustRemoveExtension(packageName, extensionName string)

MustRemoveExtension removes an extension from a package and fails the test if it returns an error.

func (*Installer) Remove

func (i *Installer) Remove(packageName string) (string, error)

Remove removes a package by name.

func (*Installer) RemoveExtension

func (i *Installer) RemoveExtension(packageName, extensionName string) (string, error)

RemoveExtension removes an extension from a package.

func (*Installer) RestoreExtensions

func (i *Installer) RestoreExtensions(packageURL, path string) (string, error)

RestoreExtensions restores extensions from a directory. packageURL is the URL to the package (e.g., "file:///path/to/package"). path is the directory containing the saved extensions.

func (*Installer) Run

func (i *Installer) Run(args ...string) (string, error)

Run executes a datadog-installer command with the given arguments. Example: Run("install", "file:///path/to/package")

func (*Installer) SaveExtensions

func (i *Installer) SaveExtensions(packageName, path string) (string, error)

SaveExtensions saves extensions to a directory. packageName is the name of the package (e.g., "simple"). path is the directory where extensions will be saved.

Jump to

Keyboard shortcuts

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