indexscanner

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePluginFile

func DecodePluginFile(r io.Reader) (index.Plugin, error)

DecodePluginFile tries to decodes a plugin manifest from r.

func LoadPluginFileFromFS

func LoadPluginFileFromFS(indexDir, pluginName string) (index.Plugin, error)

LoadPluginFileFromFS 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.PluginList, error)

LoadPluginListFromFS will parse and retrieve all plugin files.

func ReadPluginFile

func ReadPluginFile(indexFilePath string) (index.Plugin, error)

ReadPluginFile loads a file from the FS. When plugin file not found, it returns an error that can be checked with os.IsNotExist. TODO(lbb): Add object verification

Types

This section is empty.

Jump to

Keyboard shortcuts

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