Documentation ¶
Index ¶
- func LoadPluginByName(pluginsDir, pluginName string) (index.Plugin, error)
- func LoadPluginListFromFS(indexDir string) ([]index.Plugin, error)
- func ReadPlugin(f io.ReadCloser) (index.Plugin, error)
- func ReadPluginFromFile(path string) (index.Plugin, error)
- func ReadReceiptFromFile(path string) (index.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPluginByName ¶
LoadPluginByName loads a plugins index file by its name. When plugin file not found, it returns an error that can be checked with os.IsNotExist.
func LoadPluginListFromFS ¶
LoadPluginListFromFS will parse and retrieve all plugin files.
func ReadPlugin ¶
func ReadPlugin(f io.ReadCloser) (index.Plugin, error)
func ReadPluginFromFile ¶
ReadPluginFromFile loads a file from the FS. When plugin file not found, it returns an error that can be checked with os.IsNotExist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.