Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelPluginConvToAPIPlugin ¶
func ModelPluginConvToAPIPlugin(plugin model.Plugin) *pluginv1alpha1.Plugin
Types ¶
type OpenAPIApp ¶
type OpenAPIApp struct { domain.OpenAPICacheInterface domain.Plugin domain.PluginMetadata // contains filtered or unexported fields }
func (*OpenAPIApp) GetOpenAPIData ¶
func (o *OpenAPIApp) GetOpenAPIData(ctx context.Context, apiURL string) (io.ReadCloser, error)
func (*OpenAPIApp) GetOpenAPIFilePath ¶
func (o *OpenAPIApp) GetOpenAPIFilePath(apiURL string) (string, error)
GetOpenAPIFilePath return local cache openapi json file path.
type OpenAPIAppInterface ¶
type OpenAPIAppInterface interface { // GetOpenAPIFilePath return local cache openapi json file path GetOpenAPIFilePath(apiURL string) (string, error) // GetOpenAPIData return openapi json data GetOpenAPIData(ctx context.Context, apiURL string) (io.ReadCloser, error) }
func NewOpenAPIApp ¶
func NewOpenAPIApp(dir, fileName string, mysqlConf *config.MysqlOptions) OpenAPIAppInterface
type PluginApp ¶
type PluginApp struct { domain.Plugin domain.PluginMetadata }
func (*PluginApp) CreatePlugin ¶
func (p *PluginApp) CreatePlugin(ctx context.Context, req *pluginv1alpha1.CreatePluginRequest) error
func (*PluginApp) ListPlugins ¶
func (p *PluginApp) ListPlugins(ctx context.Context, req *pluginv1alpha1.ListPluginRequest) (*pluginv1alpha1.ListPluginResponse, error)
type PluginAppInterface ¶
type PluginAppInterface interface { ListPlugins(ctx context.Context, req *pluginv1alpha1.ListPluginRequest) (*pluginv1alpha1.ListPluginResponse, error) CreatePlugin(ctx context.Context, req *pluginv1alpha1.CreatePluginRequest) error }
func NewPluginApp ¶
func NewPluginApp(cfg config.Config) PluginAppInterface
type PluginScoreApp ¶
type PluginScoreApp struct { PluginScore *domain.PluginScore Plugin *domain.Plugin }
func (*PluginScoreApp) CreatePluginScore ¶
func (p *PluginScoreApp) CreatePluginScore(ctx context.Context, req *pluginv1alpha1.CreatePluginScoreRequest) error
type PluginScoreAppInterface ¶
type PluginScoreAppInterface interface {
CreatePluginScore(ctx context.Context, req *pluginv1alpha1.CreatePluginScoreRequest) error
}
func NewPluginScoreAppInterface ¶
func NewPluginScoreAppInterface(cfg config.Config) PluginScoreAppInterface
Click to show internal directories.
Click to hide internal directories.