internal

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError

func FormatError(verbose bool, cause error, format string, a ...interface{}) error

FormatError formats error according to its verbosity

Types

type ActivateManager

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

ActivateManager is an extension manater to manage tag activation process

func NewActivateManager

func NewActivateManager(manifester model.Manifester, verbose bool) (*ActivateManager, error)

NewActivateManager initializes activate manager

func (*ActivateManager) Activate

func (a *ActivateManager) Activate(commandName, tagName string) error

Activate activates the tag for an extension specified by the command name

type InstallManager

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

InstallManager is an extension manager to manage installation process

func NewInstallManager

func NewInstallManager(
	manifester model.Manifester,
	assetOperator model.AssetOperator,
	verbose bool,
	reservedCommandNames ...string,
) (*InstallManager, error)

NewInstallManager initializes install manager

func (*InstallManager) Install

func (i *InstallManager) Install(ctx context.Context, remotePath, commandName string) error

Install installs extension

type RenameManager

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

RenameManager is an extension manater to manage command rename process

func NewRenameManager

func NewRenameManager(
	manifester model.Manifester,
	verbose bool,
	reservedCommandNames ...string,
) (*RenameManager, error)

NewRenameManager initializes rename manager

func (*RenameManager) Rename

func (r *RenameManager) Rename(sourceCommandName, targetCommandName string) error

Rename renames an existing command name into a targeted command name

type RunManager

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

RunManager is an extension manager to manage run operation

func NewRunManager

func NewRunManager(
	manifester model.Manifester,
	assetOperator model.AssetOperator,
	verbose bool,
) (*RunManager, error)

NewRunManager initializes run manager

func (*RunManager) Run

func (r *RunManager) Run(commandName string, args ...string) error

Run executes an installed extension

type UninstallManager

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

UninstallManager is an extension manager to manage uninstallation process

func NewUninstallManager

func NewUninstallManager(
	manifester model.Manifester,
	assetOperator model.AssetOperator,
	verbose bool,
) (*UninstallManager, error)

NewUninstallManager initializes uninstall manager

func (*UninstallManager) Uninstall

func (u *UninstallManager) Uninstall(commandName, tagName string) error

Uninstall uninstalls extension based on the command name and the tag

type UpgradeManager

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

UpgradeManager is an extension manager to manage upgrade process

func NewUpgradeManager

func NewUpgradeManager(
	manifester model.Manifester,
	assetOperator model.AssetOperator,
	verbose bool,
) (*UpgradeManager, error)

NewUpgradeManager initializes upgrade manager

func (*UpgradeManager) Upgrade

func (u *UpgradeManager) Upgrade(ctx context.Context, commandName string) error

Upgrade upgrades extension specified by the command name

Jump to

Keyboard shortcuts

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