2020-08-08 02:05:35 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-03-17 00:33:59 +00:00
|
|
|
"github.com/stashapp/stash/internal/manager"
|
2022-04-25 05:55:05 +00:00
|
|
|
"github.com/stashapp/stash/pkg/plugin"
|
2020-08-08 02:05:35 +00:00
|
|
|
)
|
|
|
|
|
2022-04-25 05:55:05 +00:00
|
|
|
func (r *queryResolver) Plugins(ctx context.Context) ([]*plugin.Plugin, error) {
|
2020-08-08 02:05:35 +00:00
|
|
|
return manager.GetInstance().PluginCache.ListPlugins(), nil
|
|
|
|
}
|
|
|
|
|
2022-04-25 05:55:05 +00:00
|
|
|
func (r *queryResolver) PluginTasks(ctx context.Context) ([]*plugin.PluginTask, error) {
|
2020-08-08 02:05:35 +00:00
|
|
|
return manager.GetInstance().PluginCache.ListPluginTasks(), nil
|
|
|
|
}
|