Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway interface {
apiv1.DatabaseManager
StopDeployment(ctx context.Context, in *pb.StopDeploymentRequest) (*pb.StopDeploymentResponse, error)
StartDeployment(ctx context.Context, in *pb.StartDeploymentRequest) (*pb.StartDeploymentResponse, error)
DeleteDeployment(ctx context.Context, in *pb.DeleteDeploymentRequest) (*pb.DeleteDeploymentResponse, error)
ScaleDeployment(ctx context.Context, in *pb.ScaleDeploymentRequest) (*pb.ScaleDeploymentResponse, error)
DeployStub(ctx context.Context, in *pb.DeployStubRequest) (*pb.DeployStubResponse, error)
ListTasks(ctx context.Context, in *pb.ListTasksRequest) (*pb.ListTasksResponse, error)
StopTasks(ctx context.Context, in *pb.StopTasksRequest) (*pb.StopTasksResponse, error)
ActiveDeploymentByName(ctx context.Context, workspace *types.Workspace, name string) (*types.DeploymentWithRelated, error)
SetDeploymentEnv(ctx context.Context, authInfo *auth.AuthInfo, appName string, set map[string]string, unset []string) (*pb.DeployStubResponse, error)
RedeployWithConfig(ctx context.Context, authInfo *auth.AuthInfo, appName string, mutate func(*types.StubConfigV1) error) (*pb.DeployStubResponse, error)
RedeployStub(ctx context.Context, authInfo *auth.AuthInfo, deployment *types.DeploymentWithRelated, mutate func(*types.StubConfigV1) error) (*pb.DeployStubResponse, error)
SecretValue(ctx context.Context, workspace *types.Workspace, name string) (string, error)
DeploymentURL(d *types.DeploymentWithRelated) (string, error)
WorkspaceCredit(ctx context.Context, workspace *types.Workspace) *types.CreditStatus
}
Gateway provides the service operations used by MCP tools.
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func NewGroup ¶
func NewGroup(g *echo.Group, router *echo.Echo, gws Gateway, backendRepo repository.BackendRepository, workspaceRepo repository.WorkspaceRepository, eventRepo repository.EventRepository, config types.AppConfig) *Group
Click to show internal directories.
Click to hide internal directories.