extension

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssetOperatorFS = afero.NewOsFs()

AssetOperatorFS is file system that will be used by operator. It can be changed before calling any operation. But, make sure to change it back after the operation is done to its default value to avoid unexpected behaviour.

View Source
var CleanExtensionFS = afero.NewOsFs()

CleanExtensionFS is file system that will be used when cleaning extension. It can be changed before calling the clean operation. But, make sure to change it back after the operation is done to its default value to avoid unexpected behaviour.

View Source
var ManifesterFS = afero.NewOsFs()

ManifesterFS is file system that will be used for manifester operations. It can be changed before calling any manifester operation. But, make sure to change it back after the operation is done to its default value to avoid unexpected behaviour.

Functions

func Clean

func Clean(verbose bool) error

Clean cleans all extensions from local, including its manifest

func NewDefaultAssetOperator

func NewDefaultAssetOperator(stdin io.Reader, stdout, stderr io.Writer) model.AssetOperator

NewDefaultAssetOperator initializes default asset operator

func NewDefaultManifester

func NewDefaultManifester() model.Manifester

NewDefaultManifester initializes default manifester

Types

type Manager

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

Manager defines the extension management

func NewManager

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

NewManager initializes new manager

func (*Manager) Activate

func (m *Manager) Activate(commandName, tagName string) error

Activate runs an extension activation process

func (*Manager) Install

func (m *Manager) Install(ctx context.Context, remotePath, commandName string) error

Install runs an extension installation process

func (*Manager) Rename

func (m *Manager) Rename(sourceCommandName, targetCommandName string) error

Rename runs an extension renaming process

func (*Manager) Run

func (m *Manager) Run(commandName string, args ...string) error

Run runs an extension execution process

func (*Manager) Uninstall

func (m *Manager) Uninstall(commandName, tagName string) error

Uninstall runs an extension uninstall process

func (*Manager) Upgrade

func (m *Manager) Upgrade(ctx context.Context, commandName string) error

Upgrade runs an extension upgrade process

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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