Documentation ¶
Index ¶
- Variables
- func GetLocalPlugins(pluginDir string) []models.InstalledPlugin
- func Init(version string, skipTLSVerify bool, debugMode bool)
- func ReadPlugin(pluginDir, pluginName string) (models.InstalledPlugin, error)
- func RemoveInstalledPlugin(pluginPath, pluginName string) error
- type BadRequestError
- type GrafanaComClient
- func (client *GrafanaComClient) DownloadFile(pluginName string, tmpFile *os.File, url string, checksum string) (err error)
- func (client *GrafanaComClient) GetPlugin(pluginId, repoUrl string) (models.Plugin, error)
- func (client *GrafanaComClient) ListAllPlugins(repoUrl string) (models.PluginRepo, error)
- type IoUtilImp
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetLocalPlugins ¶
func GetLocalPlugins(pluginDir string) []models.InstalledPlugin
func ReadPlugin ¶
func ReadPlugin(pluginDir, pluginName string) (models.InstalledPlugin, error)
func RemoveInstalledPlugin ¶
Types ¶
type BadRequestError ¶
func (*BadRequestError) Error ¶
func (e *BadRequestError) Error() string
type GrafanaComClient ¶
type GrafanaComClient struct {
// contains filtered or unexported fields
}
func (*GrafanaComClient) DownloadFile ¶
func (*GrafanaComClient) GetPlugin ¶
func (client *GrafanaComClient) GetPlugin(pluginId, repoUrl string) (models.Plugin, error)
func (*GrafanaComClient) ListAllPlugins ¶
func (client *GrafanaComClient) ListAllPlugins(repoUrl string) (models.PluginRepo, error)
Click to show internal directories.
Click to hide internal directories.