Documentation ¶
Overview ¶
Package pkg provides helpful base interfaces and struct definitions
Index ¶
- type Base
- func (base Base) Environment() (result []string, err error)
- func (base Base) Info() (result map[string]string)
- func (base Base) Install() error
- func (base Base) Link() error
- func (base Base) ListRemote() (result []string, err error)
- func (base Base) PostInstall() error
- func (base Base) PreDownload() error
- func (base Base) PreInstall() error
- func (base Base) Rollback() error
- func (base Base) Switch() error
- type Pkg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
Base struct from which every plugin should inherit
func (Base) Environment ¶
Environment returns list of the all needed envionment variables
func (Base) ListRemote ¶
ListRemote returns list of the all available remote versions
type Pkg ¶
type Pkg interface { PreDownload() error PreInstall() error Install() error PostInstall() error Switch() error Link() error Rollback() error Events() *emission.Emitter Environment() ([]string, error) ListRemote() ([]string, error) Info() map[string]string Bins() []string Dots() []string }
Pkg plugin interface
Click to show internal directories.
Click to hide internal directories.