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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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