scanner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 10 Imported by: 1

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

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