services

package
v0.0.0-testrgm3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 20 Imported by: 283

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IoHelper         models.IoUtil = IoUtilImp{}
	HttpClient       http.Client
	GrafanaVersion   string
	ErrNotFoundError = errors.New("404 not found error")
	Logger           *logger.CLILogger
)

Functions

func GetLocalPlugin

func GetLocalPlugin(pluginDir, pluginID string) (plugins.FoundPlugin, error)

func GetLocalPlugins

func GetLocalPlugins(pluginDir string) []*plugins.FoundBundle

func GetPluginInfoFromRepo

func GetPluginInfoFromRepo(pluginId, repoUrl string) (models.Plugin, error)

func Init

func Init(version string, skipTLSVerify bool, debugMode bool)

func ListAllPlugins

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

func PluginVersionInstalled

func PluginVersionInstalled(pluginID, version, pluginDir string) bool

Types

type BadRequestError

type BadRequestError struct {
	Message string
	Status  string
}

func (*BadRequestError) Error

func (e *BadRequestError) Error() string

type IoUtilImp

type IoUtilImp struct {
}

func (IoUtilImp) ReadDir

func (i IoUtilImp) ReadDir(path string) ([]fs.DirEntry, 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