indexscanner

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPluginByName

func LoadPluginByName(pluginsDir, pluginName string) (index.Plugin, error)

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

func LoadPluginListFromFS(indexDir string) ([]index.Plugin, error)

LoadPluginListFromFS will parse and retrieve all plugin files.

func ReadPlugin

func ReadPlugin(f io.ReadCloser) (index.Plugin, error)

func ReadPluginFromFile

func ReadPluginFromFile(path string) (index.Plugin, error)

ReadPluginFromFile loads a file from the FS. When plugin file not found, it returns an error that can be checked with os.IsNotExist.

func ReadReceiptFromFile added in v0.4.0

func ReadReceiptFromFile(path string) (index.Receipt, error)

ReadReceiptFromFile loads a file from the FS. When receipt file not found, it returns an error that can be checked with os.IsNotExist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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