Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnimplemented = errors.New("unimplemented")
ErrUnimplemented is returned when an extension is not implemented.
View Source
var Unknown = "unknown"
Unknown is returned when an extension is not found.
Functions ¶
Types ¶
type Extension ¶
type Extension interface {
// Name is the name of the extension
Name() string
// Path is the path to the extension
Path() string
// Owner is the owner of the extension
Owner() string
// Cmd is the command for the extension
Cmd() *cobra.Command
}
Extension represents a single extension.
type Manager ¶
type Manager interface {
// Scan is scanning for extensions
Scan(path string) error
// ListExtensions lists all installed extensions
ListExtensions() []Extension
// EnableDryRunMode enables dry run mode
EnableDryRunMode()
}
Manager manages a collection of extensions.
type UnimplementedExtension ¶
type UnimplementedExtension struct{}
func (*UnimplementedExtension) Cmd ¶
func (e *UnimplementedExtension) Cmd() *cobra.Command
Cmd implements Extension.Cmd.
func (*UnimplementedExtension) Name ¶
func (e *UnimplementedExtension) Name() string
Name implements Extension.Name.
func (*UnimplementedExtension) Owner ¶
func (e *UnimplementedExtension) Owner() string
Owner implements Extension.Owner.
func (*UnimplementedExtension) Path ¶
func (e *UnimplementedExtension) Path() string
Path implements Extension.Path.
Click to show internal directories.
Click to hide internal directories.