Documentation ¶
Index ¶
- Constants
- func CategoriedPlugins(plugins map[string]pluginmanager.Plugin) map[string]map[string][]PluginStatus
- func Run(ctx context.Context, options *Options, cachedir string) error
- func SortPluginStatusByName(list []PluginStatus)
- type ClientOptions
- type Options
- type PluginStatus
- type PluginsAPI
- func (o *PluginsAPI) EnablePlugin(req *restful.Request, resp *restful.Response)
- func (o *PluginsAPI) GetPlugin(req *restful.Request, resp *restful.Response)
- func (o *PluginsAPI) ListPlugins(req *restful.Request, resp *restful.Response)
- func (o *PluginsAPI) RegisterRoute(rg *route.Group)
- func (o *PluginsAPI) RemovePlugin(req *restful.Request, resp *restful.Response)
- func (o *PluginsAPI) RepoAdd(req *restful.Request, resp *restful.Response)
- func (o *PluginsAPI) RepoGet(req *restful.Request, resp *restful.Response)
- func (o *PluginsAPI) RepoList(req *restful.Request, resp *restful.Response)
- func (o *PluginsAPI) RepoRemove(req *restful.Request, resp *restful.Response)
- func (o *PluginsAPI) RepoUpdate(req *restful.Request, resp *restful.Response)
- type PluginsClient
- func (c *PluginsClient) CheckUpdate(ctx context.Context) (map[string]pluginmanager.Plugin, error)
- func (c *PluginsClient) GetPluginVersion(ctx context.Context, name, version string, withSchema bool, ...) (*pluginmanager.PluginVersion, error)
- func (c *PluginsClient) Install(ctx context.Context, name string, version string, values map[string]any) error
- func (c *PluginsClient) ListPlugins(ctx context.Context) (map[string]pluginmanager.Plugin, error)
- func (c *PluginsClient) UnInstall(ctx context.Context, name string) error
Constants ¶
View Source
const PluginRepositoriesName = "plugin-repositories"
Variables ¶
This section is empty.
Functions ¶
func CategoriedPlugins ¶
func CategoriedPlugins(plugins map[string]pluginmanager.Plugin) map[string]map[string][]PluginStatus
func SortPluginStatusByName ¶
func SortPluginStatusByName(list []PluginStatus)
Types ¶
type ClientOptions ¶ added in v1.23.2
type ClientOptions struct {
Addr string `json:"addr,omitempty"`
}
func NewDefaultClientOptions ¶ added in v1.23.2
func NewDefaultClientOptions() *ClientOptions
type Options ¶
type Options struct { Listen string `json:"listen,omitempty"` Namespace string `json:"namespace,omitempty"` }
func DefaultOptions ¶
func DefaultOptions() *Options
type PluginStatus ¶
type PluginStatus struct { Name string `json:"name"` Namespace string `json:"namespace"` Description string `json:"description"` InstalledVersion string `json:"installedVersion"` UpgradeableVersion string `json:"upgradeableVersion"` AvailableVersions []string `json:"availableVersions"` Required bool `json:"required"` Enabled bool `json:"enabled"` Healthy bool `json:"healthy"` Message string `json:"message"` Values map[string]any `json:"values"` // current installed version values // contains filtered or unexported fields }
func ToViewPlugin ¶
func ToViewPlugin(plugin pluginmanager.Plugin) PluginStatus
type PluginsAPI ¶
type PluginsAPI struct {
PM *pluginmanager.PluginManager
}
func NewPluginsAPI ¶
func NewPluginsAPI(pm *pluginmanager.PluginManager) *PluginsAPI
func (*PluginsAPI) EnablePlugin ¶
func (o *PluginsAPI) EnablePlugin(req *restful.Request, resp *restful.Response)
func (*PluginsAPI) GetPlugin ¶
func (o *PluginsAPI) GetPlugin(req *restful.Request, resp *restful.Response)
func (*PluginsAPI) ListPlugins ¶
func (o *PluginsAPI) ListPlugins(req *restful.Request, resp *restful.Response)
func (*PluginsAPI) RegisterRoute ¶
func (o *PluginsAPI) RegisterRoute(rg *route.Group)
func (*PluginsAPI) RemovePlugin ¶
func (o *PluginsAPI) RemovePlugin(req *restful.Request, resp *restful.Response)
func (*PluginsAPI) RepoAdd ¶
func (o *PluginsAPI) RepoAdd(req *restful.Request, resp *restful.Response)
func (*PluginsAPI) RepoGet ¶
func (o *PluginsAPI) RepoGet(req *restful.Request, resp *restful.Response)
func (*PluginsAPI) RepoList ¶
func (o *PluginsAPI) RepoList(req *restful.Request, resp *restful.Response)
func (*PluginsAPI) RepoRemove ¶
func (o *PluginsAPI) RepoRemove(req *restful.Request, resp *restful.Response)
func (*PluginsAPI) RepoUpdate ¶
func (o *PluginsAPI) RepoUpdate(req *restful.Request, resp *restful.Response)
type PluginsClient ¶ added in v1.23.2
type PluginsClient struct {
clientutil.BaseClient
}
func NewPluginsClient ¶ added in v1.23.2
func NewPluginsClient(server string) (*PluginsClient, error)
func (*PluginsClient) CheckUpdate ¶ added in v1.23.2
func (c *PluginsClient) CheckUpdate(ctx context.Context) (map[string]pluginmanager.Plugin, error)
func (*PluginsClient) GetPluginVersion ¶ added in v1.23.2
func (c *PluginsClient) GetPluginVersion(ctx context.Context, name, version string, withSchema bool, withDpendeciesCheck bool, ) (*pluginmanager.PluginVersion, error)
func (*PluginsClient) ListPlugins ¶ added in v1.23.2
func (c *PluginsClient) ListPlugins(ctx context.Context) (map[string]pluginmanager.Plugin, error)
Click to show internal directories.
Click to hide internal directories.