modules

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceToPathMap = map[string]string{
	"acm":                 "autoai",
	"ngMan":               "ng/api",
	"harnessManager":      "ng/api",
	"nextgen":             "",
	"commOrch":            "lw/co/api",
	"chaos":               "chaos/manager/api",
	"loadtest":            "loadTest/manager/api",
	"code":                "code",
	"pipelines":           "pipeline",
	"dashboards":          "dashboard",
	"audit":               "audit",
	"gateway/log-service": "gateway/log-service",
	"log-service":         "log-service",
	"templates":           "template",
	"acl":                 "authz",
	"resourcegroup":       "resourcegroup",
	"ar":                  "har/api",
	"idp":                 "",
	"sei":                 "/gateway/sei/api/",
	"scs":                 "ssca-manager",
	"sto":                 "sto",
	"gitops":              "gateway/gitops/api/v1",
}

Functions

func NewModuleRegistry

func NewModuleRegistry(config *config.McpServerConfig, tsg *toolsets.ToolsetGroup) *commonModules.ModuleRegistry

NewModuleRegistry creates a new module registry with all available modules

func RegisterACM

func RegisterACM(config *config.McpServerConfig, tsg *toolsets.ToolsetGroup) error

RegisterACM registers the ACM toolset

func RegisterDefaultToolsets

func RegisterDefaultToolsets(config *config.McpServerConfig, tsg *toolsets.ToolsetGroup) error

func RegisterLogs

func RegisterLogs(config *config.McpServerConfig, tsg *toolsets.ToolsetGroup) error

RegisterLogs registers the logs toolset

Types

type ACMModule

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

ACMModule implements the Module interface for Autonomous Code Maintenance

func NewACMModule

func NewACMModule(config *config.McpServerConfig, tsg *toolsets.ToolsetGroup) *ACMModule

NewACMModule creates a new instance of ACMModule

func (*ACMModule) EnableToolsets

func (m *ACMModule) EnableToolsets(tsg *toolsets.ToolsetGroup) error

EnableToolsets enables all toolsets in this module

func (*ACMModule) ID

func (m *ACMModule) ID() string

ID returns the identifier for this module

func (*ACMModule) IsDefault

func (m *ACMModule) IsDefault() bool

IsDefault indicates if this module should be enabled by default

func (*ACMModule) Name

func (m *ACMModule) Name() string

Name returns the name of module

func (*ACMModule) RegisterToolsets

func (m *ACMModule) RegisterToolsets() error

RegisterToolsets registers all toolsets in this module

func (*ACMModule) Toolsets

func (m *ACMModule) Toolsets() []string

Toolsets returns the names of toolsets provided by this module

type ExtendedCoreModule

type ExtendedCoreModule struct {
	*commonModules.CoreModule // Embed the common CoreModule
	// contains filtered or unexported fields
}

ExtendedCoreModule extends the common CoreModule with internal-only toolsets

func NewExtendedCoreModule

func NewExtendedCoreModule(config *config.McpServerConfig, tsg *toolsets.ToolsetGroup) *ExtendedCoreModule

NewExtendedCoreModule creates a new instance of ExtendedCoreModule

func (*ExtendedCoreModule) RegisterToolsets

func (m *ExtendedCoreModule) RegisterToolsets() error

func (*ExtendedCoreModule) Toolsets

func (m *ExtendedCoreModule) Toolsets() []string

Toolsets returns all toolsets (common + internal)

type ExternalClientProvider

type ExternalClientProvider struct{}

ExternalClientProvider implements ClientProvider for external mode

func (*ExternalClientProvider) CreateClient

func (p *ExternalClientProvider) CreateClient(config *config.McpServerConfig, service string, timeout ...time.Duration) (*commonClient.Client, error)

func (*ExternalClientProvider) CreateClientWithIdentity

func (p *ExternalClientProvider) CreateClientWithIdentity(config *config.McpServerConfig, service string, serviceIdentity string, timeout ...time.Duration) (*commonClient.Client, error)

Jump to

Keyboard shortcuts

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