provider

package
v0.0.0-...-c693505 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutorConfig

type ExecutorConfig struct {
	Type   string
	Config map[string]any
}

ExecutorConfig 执行器配置

type Provider

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

Provider ExecutorProvider 实现

func NewProvider

func NewProvider() *Provider

NewProvider 创建新的 Provider

func (*Provider) GetExecutor

func (p *Provider) GetExecutor(ctx context.Context, name string) (executor.Executor, error)

GetExecutor 根据执行器名称创建对应的 Executor 实例

func (*Provider) RegisterExecutor

func (p *Provider) RegisterExecutor(name string, config ExecutorConfig)

RegisterExecutor 注册执行器配置

Jump to

Keyboard shortcuts

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