Documentation
¶
Index ¶
- type GitHubRepoInfo
- type Handler
- func (h *Handler) DeleteUnauthorizedMCPServerInstancesForCatalog(req router.Request, _ router.Response) error
- func (h *Handler) DeleteUnauthorizedMCPServerInstancesForWorkspace(req router.Request, _ router.Response) error
- func (h *Handler) DeleteUnauthorizedMCPServersForCatalog(req router.Request, _ router.Response) error
- func (h *Handler) DeleteUnauthorizedMCPServersForWorkspace(req router.Request, _ router.Response) error
- func (h *Handler) HandleUserGroupChange(req router.Request, _ router.Response) error
- func (h *Handler) SetUpDefaultMCPCatalog(ctx context.Context, c client.Client) error
- func (h *Handler) Sync(req router.Request, resp router.Response) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubRepoInfo ¶
type GitHubRepoInfo struct {
Size int `json:"size"` // Size in KB
}
GitHubRepoInfo represents the repository information from GitHub API
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) DeleteUnauthorizedMCPServerInstancesForCatalog ¶ added in v0.12.0
func (h *Handler) DeleteUnauthorizedMCPServerInstancesForCatalog(req router.Request, _ router.Response) error
DeleteUnauthorizedMCPServerInstancesForCatalog is a handler that deletes MCPServerInstances that point to multi-user MCPServers created by the admin, where the user who owns the MCPServerInstance is no longer authorized to use the MCPServer. This can happen whenever AccessControlRules change.
func (*Handler) DeleteUnauthorizedMCPServerInstancesForWorkspace ¶ added in v0.12.0
func (h *Handler) DeleteUnauthorizedMCPServerInstancesForWorkspace(req router.Request, _ router.Response) error
DeleteUnauthorizedMCPServerInstancesForWorkspace is a handler that deletes MCPServerInstances that point to multi-user MCPServers created by the admin, where the user who owns the MCPServerInstance is no longer authorized to use the MCPServer. This can happen whenever AccessControlRules change.
func (*Handler) DeleteUnauthorizedMCPServersForCatalog ¶ added in v0.12.0
func (h *Handler) DeleteUnauthorizedMCPServersForCatalog(req router.Request, _ router.Response) error
DeleteUnauthorizedMCPServersForCatalog is a handler that deletes MCP servers that are no longer authorized to exist for the given catalog. This can happen whenever AccessControlRules change. It does not delete MCPServerInstances, since those have a delete ref to their MCPServer, and will be deleted automatically.
func (*Handler) DeleteUnauthorizedMCPServersForWorkspace ¶ added in v0.12.0
func (h *Handler) DeleteUnauthorizedMCPServersForWorkspace(req router.Request, _ router.Response) error
DeleteUnauthorizedMCPServersForWorkspace is a handler that deletes MCP servers that are no longer authorized to exist for the given workspace. This can happen whenever AccessControlRules change. It does not delete MCPServerInstances, since those have a delete ref to their MCPServer, and will be deleted automatically.
func (*Handler) HandleUserGroupChange ¶ added in v0.15.0
HandleUserGroupChange is triggered when a user loses one or more group memberships. It checks all of the user's MCPServers and MCPServerInstances to ensure they are still authorized. Any servers or instances that are no longer authorized (because the user lost group access) are deleted.