application

package
v0.0.0-...-e1cdcfb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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

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

type PluginScoreAppInterface

type PluginScoreAppInterface interface {
	CreatePluginScore(ctx context.Context, req *pluginv1alpha1.CreatePluginScoreRequest) error
}

func NewPluginScoreAppInterface

func NewPluginScoreAppInterface(cfg config.Config) PluginScoreAppInterface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL