Documentation
¶
Overview ¶
Package installer contains a wrapper around the datadog-installer commands for use in tests.
Index ¶
- type Installer
- func (i *Installer) Install(packageURL string) (string, error)
- func (i *Installer) InstallExtension(packageURL, extensionName string) (string, error)
- func (i *Installer) MustInstallExtension(packageURL, extensionName string)
- func (i *Installer) MustRemoveExtension(packageName, extensionName string)
- func (i *Installer) Remove(packageName string) (string, error)
- func (i *Installer) RemoveExtension(packageName, extensionName string) (string, error)
- func (i *Installer) RestoreExtensions(packageURL, path string) (string, error)
- func (i *Installer) Run(args ...string) (string, error)
- func (i *Installer) SaveExtensions(packageName, path string) (string, error)
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) InstallExtension ¶
InstallExtension installs an extension from a package.
func (*Installer) MustInstallExtension ¶
MustInstallExtension installs an extension from a package and fails the test if it returns an error.
func (*Installer) MustRemoveExtension ¶
MustRemoveExtension removes an extension from a package and fails the test if it returns an error.
func (*Installer) RemoveExtension ¶
RemoveExtension removes an extension from a package.
func (*Installer) RestoreExtensions ¶
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.