services

package
v5.2.0-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IoHelper   m.IoUtil = IoUtilImp{}
	HttpClient http.Client
)

Functions

func GetLocalPlugins

func GetLocalPlugins(pluginDir string) []m.InstalledPlugin

func GetPlugin

func GetPlugin(pluginId, repoUrl string) (m.Plugin, error)

func Init

func Init(version string, skipTLSVerify bool)

func ListAllPlugins

func ListAllPlugins(repoUrl string) (m.PluginRepo, error)

func ReadPlugin

func ReadPlugin(pluginDir, pluginName string) (m.InstalledPlugin, error)

func RemoveInstalledPlugin

func RemoveInstalledPlugin(pluginPath, pluginName string) error

Types

type IoUtilImp

type IoUtilImp struct {
}

func (IoUtilImp) ReadDir

func (i IoUtilImp) ReadDir(path string) ([]os.FileInfo, error)

func (IoUtilImp) ReadFile

func (i IoUtilImp) ReadFile(filename string) ([]byte, error)

func (IoUtilImp) RemoveAll

func (i IoUtilImp) RemoveAll(path string) error

func (IoUtilImp) Stat

func (i IoUtilImp) Stat(path string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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