plugin

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultAPI

func GetDefaultAPI(
	invoker bridge.Invoker,
	connType models.DynamicTabler,
	scopeConfigType models.DynamicTabler,
	scopeType models.DynamicTabler,
	connHelper *api.ConnectionApiHelper,
) map[string]map[string]plugin.ApiResourceHandler

func Init

func Init(br context.BasicRes)

func NewRemotePlugin

func NewRemotePlugin(info *models.PluginInfo) (models.RemotePlugin, errors.Error)

Types

type RemotePluginTaskData

type RemotePluginTaskData struct {
	DbUrl       string                 `json:"db_url"`
	Scope       interface{}            `json:"scope"`
	Connection  interface{}            `json:"connection"`
	ScopeConfig interface{}            `json:"scope_config"`
	Options     map[string]interface{} `json:"options"`
}

type RemoteScopesOutput

type RemoteScopesOutput struct {
	Children []RemoteScopesTreeNode `json:"children"`
}

type RemoteScopesTreeNode

type RemoteScopesTreeNode struct {
	Type     string      `json:"type"`
	ParentId *string     `json:"parentId"`
	Id       string      `json:"id"`
	Name     string      `json:"name"`
	Data     interface{} `json:"data"`
}

type ScopeDatabaseHelperImpl

type ScopeDatabaseHelperImpl struct {
	api.ScopeDatabaseHelper[models.RemoteConnection, models.DynamicScopeModel, models.RemoteScopeConfig]
	// contains filtered or unexported fields
}

func NewScopeDatabaseHelperImpl

func NewScopeDatabaseHelperImpl(pa *pluginAPI, basicRes context.BasicRes, params *api.ReflectionParameters) *ScopeDatabaseHelperImpl

func (*ScopeDatabaseHelperImpl) DeleteScope

func (*ScopeDatabaseHelperImpl) GetScope

func (s *ScopeDatabaseHelperImpl) GetScope(connectionId uint64, scopeId string) (*models.DynamicScopeModel, errors.Error)

func (*ScopeDatabaseHelperImpl) GetScopeConfig

func (s *ScopeDatabaseHelperImpl) GetScopeConfig(configId uint64) (*models.RemoteScopeConfig, errors.Error)

func (*ScopeDatabaseHelperImpl) ListScopeConfigs

func (s *ScopeDatabaseHelperImpl) ListScopeConfigs(configIds []uint64) ([]*models.RemoteScopeConfig, errors.Error)

func (*ScopeDatabaseHelperImpl) ListScopes

func (s *ScopeDatabaseHelperImpl) ListScopes(input *plugin.ApiResourceInput, connectionId uint64) ([]*models.DynamicScopeModel, errors.Error)

func (*ScopeDatabaseHelperImpl) SaveScope

func (*ScopeDatabaseHelperImpl) UpdateScope

func (*ScopeDatabaseHelperImpl) VerifyConnection

func (s *ScopeDatabaseHelperImpl) VerifyConnection(connectionId uint64) errors.Error

type TestConnectionResult

type TestConnectionResult struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Status  int    `json:"status"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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