configurepackage

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Overview

Package configurepackage implements the ConfigurePackage plugin.

Package configurepackage implements the ConfigurePackage plugin. configurepackage_deps contains platform dependencies that should be able to be stubbed out in tests

Package configurepackage implements the ConfigurePackage plugin.

Index

Constants

View Source
const (
	// InstallAction represents the json command to install package
	InstallAction = "Install"
	// UninstallAction represents the json command to uninstall package
	UninstallAction = "Uninstall"
	// InstallationType specifies whether the
	InstallationTypeLegacy  = "Uninstall and reinstall"
	InstallationTypeInPlace = "In-place update"
)

Variables

This section is empty.

Functions

func Name

func Name() string

Name returns the name of the plugin.

Types

type ConfigurePackagePluginInput

type ConfigurePackagePluginInput struct {
	contracts.PluginInput
	Name             string `json:"name"`
	Version          string `json:"version"`
	Action           string `json:"action"`
	InstallationType string `json:"installationType"`
	// TODO: Replace "additionalArguments" from string type to map[string]inteface{} type once Runcommand supports string maps
	AdditionalArguments string `json:"additionalArguments"`
	Source              string `json:"source"`
	Repository          string `json:"repository"`
}

ConfigurePackagePluginInput represents one set of commands executed by the ConfigurePackage plugin.

type Plugin

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

Plugin is the type for the configurepackage plugin.

func NewPlugin

func NewPlugin(context context.T) (*Plugin, error)

NewPlugin returns a new instance of the plugin.

func (*Plugin) Execute

func (p *Plugin) Execute(config contracts.Configuration, cancelFlag task.CancelFlag, output iohandler.IOHandler)

Execute runs the plugin operation and returns output

Directories

Path Synopsis
archive
package archive holds the resources for the archive
package archive holds the resources for the archive
birdwatcherarchive
Package birdwatcherarchive contains the struct that is called when the package information is stored in birdwatcher
Package birdwatcherarchive contains the struct that is called when the package information is stored in birdwatcher
documentarchive
Package documentarchive contains the struct that is called when the package information is stored in birdwatcher
Package documentarchive contains the struct that is called when the package information is stored in birdwatcher
facade
This package returns the means of creating an object of type facade
This package returns the means of creating an object of type facade
facade/mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
facade/retryer
Package retryer overrides the default ssm retryer delay logic to suit GetManifest, DescribeDocument and GetDocument
Package retryer overrides the default ssm retryer delay logic to suit GetManifest, DescribeDocument and GetDocument
Package installer implements interfaces for installing and uninstalling packages
Package installer implements interfaces for installing and uninstalling packages
mock
Package installer_mock implements the mock for the installer package
Package installer_mock implements the mock for the installer package
Package localpackages implements the local storage for packages managed by the ConfigurePackage plugin.
Package localpackages implements the local storage for packages managed by the ConfigurePackage plugin.
mock
Package repository_mock implements the mock for Repository.
Package repository_mock implements the mock for Repository.
mocks
mock
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package ssminstaller implements the installer for ssm packages that use documents or scripts to install and uninstall.
Package ssminstaller implements the installer for ssm packages that use documents or scripts to install and uninstall.

Jump to

Keyboard shortcuts

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