Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type ExtensionConfig ¶
type ExtensionConfig struct {
// PluginFactories are factories that create translator plugins for extending MCPServer translation behavior.
// These factories are called after the manager is created, allowing plugins to access the client and scheme.
PluginFactories []PluginFactory
// RegisterSchemes is an optional function to register additional API types to the runtime scheme.
// This is called before the manager is created, allowing extensions to add their own CRDs.
RegisterSchemes func(*runtime.Scheme) error
}
type GetExtensionConfig ¶
type GetExtensionConfig func() (*ExtensionConfig, error)
type PluginFactory ¶
type PluginFactory func(client.Client, *runtime.Scheme) transportadapter.TranslatorPlugin
PluginFactory creates a TranslatorPlugin when provided with the client and scheme. This allows plugins to be initialized after the manager is created, giving them access to the Kubernetes client and scheme. Plugins should create their own logger.
Click to show internal directories.
Click to hide internal directories.