Documentation
¶
Index ¶
- type ArchMeta
- type Dependencies
- type ErrVersionNotFound
- type ErrVersionUnsupported
- type InstalledPlugin
- type Installer
- func (i *Installer) DownloadFile(pluginID string, tmpFile *os.File, url string, checksum string) (err error)
- func (i *Installer) GetUpdateInfo(ctx context.Context, pluginID, version, pluginRepoURL string) (plugins.UpdateInfo, error)
- func (i *Installer) Install(ctx context.Context, ...) error
- func (i *Installer) Uninstall(ctx context.Context, pluginDir string) error
- type Logger
- type Plugin
- type PluginDependency
- type PluginInfo
- type PluginRepo
- type Response4xxError
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct {
GrafanaVersion string `json:"grafanaVersion"`
Plugins []PluginDependency `json:"plugins"`
}
type ErrVersionNotFound ¶
func (ErrVersionNotFound) Error ¶
func (e ErrVersionNotFound) Error() string
type ErrVersionUnsupported ¶
func (ErrVersionUnsupported) Error ¶
func (e ErrVersionUnsupported) Error() string
type InstalledPlugin ¶
type InstalledPlugin struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Info PluginInfo `json:"info"`
Dependencies Dependencies `json:"dependencies"`
}
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func (*Installer) DownloadFile ¶
func (*Installer) GetUpdateInfo ¶
type Logger ¶
type Logger interface {
Successf(format string, args ...interface{})
Failuref(format string, args ...interface{})
Info(args ...interface{})
Infof(format string, args ...interface{})
Debug(args ...interface{})
Debugf(format string, args ...interface{})
Warn(args ...interface{})
Warnf(format string, args ...interface{})
Error(args ...interface{})
Errorf(format string, args ...interface{})
}
type PluginDependency ¶
type PluginInfo ¶
type PluginRepo ¶
type Response4xxError ¶
func (Response4xxError) Error ¶
func (e Response4xxError) Error() string
Click to show internal directories.
Click to hide internal directories.