plugin

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func PluginNewClient

func PluginNewClient(baseURL string, authorization string, workspace_id string) *Client

func (*Client) PluginChangePermission

func (c *Client) PluginChangePermission(ctx context.Context, installPermission, debugPermission string) (*any, error)

PluginChangePermission 修改插件权限

func (*Client) PluginDebuggingKey

func (c *Client) PluginDebuggingKey(ctx context.Context) (*any, error)

PluginDebuggingKey 获取插件调试 key

func (*Client) PluginDeleteAllInstallTaskItems

func (c *Client) PluginDeleteAllInstallTaskItems(ctx context.Context) (*any, error)

PluginDeleteAllInstallTaskItems 删除所有插件安装任务项

func (*Client) PluginDeleteInstallTask

func (c *Client) PluginDeleteInstallTask(ctx context.Context, taskID string) (*any, error)

PluginDeleteInstallTask 删除插件安装任务

func (*Client) PluginDeleteInstallTaskItem

func (c *Client) PluginDeleteInstallTaskItem(ctx context.Context, taskID, identifier string) (*any, error)

PluginDeleteInstallTaskItem 删除指定插件安装任务项

func (*Client) PluginFetchDynamicSelectOptions

func (c *Client) PluginFetchDynamicSelectOptions(ctx context.Context, pluginID, provider, action, parameter, providerType string) (*any, error)

PluginFetchDynamicSelectOptions 获取插件动态参数选项

func (*Client) PluginFetchInstallTask

func (c *Client) PluginFetchInstallTask(ctx context.Context, taskID string) (*any, error)

PluginFetchInstallTask 获取单个插件安装任务

func (*Client) PluginFetchInstallTasks

func (c *Client) PluginFetchInstallTasks(ctx context.Context, page, pageSize int) (*any, error)

PluginFetchInstallTasks 获取插件安装任务列表 PluginFetchInstallTasks 获取插件安装任务列表

func (*Client) PluginFetchMarketplacePkg

func (c *Client) PluginFetchMarketplacePkg(ctx context.Context, pluginUniqueIdentifier string) (*any, error)

PluginFetchMarketplacePkg 获取市场插件包信息

func (*Client) PluginGetIcon

func (c *Client) PluginGetIcon(ctx context.Context, tenantID, filename string) ([]byte, string, error)

PluginGetIcon 获取插件图标 返回二进制数据和mimetype

func (*Client) PluginGetManifest

func (c *Client) PluginGetManifest(ctx context.Context, pluginUniqueIdentifier string) (*any, error)

PluginGetManifest 获取插件manifest

func (*Client) PluginGetPermission

func (c *Client) PluginGetPermission(ctx context.Context) (*any, error)

PluginGetPermission 获取插件权限

func (*Client) PluginInstallFromGithub

func (c *Client) PluginInstallFromGithub(ctx context.Context, pluginUniqueIdentifier, repo, version, pkg string) (*any, error)

PluginInstallFromGithub 从 Github 安装插件

func (*Client) PluginInstallFromMarketplace

func (c *Client) PluginInstallFromMarketplace(ctx context.Context, pluginUniqueIdentifiers []string) (*any, error)

PluginInstallFromMarketplace 从市场安装插件

func (*Client) PluginInstallFromPkg

func (c *Client) PluginInstallFromPkg(ctx context.Context, pkgPath string) (*models.PluginInstallResponse, error)

PluginInstallFromPkg 安装插件(本地包)

func (*Client) PluginList

func (c *Client) PluginList(ctx context.Context, page, pageSize int) (*models.PluginListResponse, error)

PluginList 获取插件列表

func (*Client) PluginListInstallationsFromIds

func (c *Client) PluginListInstallationsFromIds(ctx context.Context, pluginIDs []string) (*any, error)

PluginListInstallationsFromIds 批量获取插件安装信息

func (*Client) PluginListLatestVersions

func (c *Client) PluginListLatestVersions(ctx context.Context, pluginIDs []string) (*any, error)

PluginListLatestVersions 获取插件最新版本信息

func (*Client) PluginUninstall

func (c *Client) PluginUninstall(ctx context.Context, pluginInstallationID string) (*any, error)

PluginUninstall 卸载插件

func (*Client) PluginUpgradeFromGithub

func (c *Client) PluginUpgradeFromGithub(ctx context.Context, originalPluginUniqueIdentifier, newPluginUniqueIdentifier, repo, version, pkg string) (*any, error)

PluginUpgradeFromGithub 从 Github 升级插件

func (*Client) PluginUpgradeFromMarketplace

func (c *Client) PluginUpgradeFromMarketplace(ctx context.Context, originalPluginUniqueIdentifier, newPluginUniqueIdentifier string) (*any, error)

PluginUpgradeFromMarketplace 从市场升级插件

func (*Client) PluginUploadFromBundle

func (c *Client) PluginUploadFromBundle(ctx context.Context, fileName string, fileData []byte) (*any, error)

PluginUploadFromBundle 上传插件 bundle

func (*Client) PluginUploadFromGithub

func (c *Client) PluginUploadFromGithub(ctx context.Context, repo, version, pkg string) (*any, error)

PluginUploadFromGithub 从 Github 上传插件

func (*Client) PluginUploadPkg

func (c *Client) PluginUploadPkg(ctx context.Context, filename string, fileData []byte) (string, error)

PluginUploadPkg 上传插件包(pkg文件)

Jump to

Keyboard shortcuts

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