mirror of
https://github.com/railwayapp/cli
synced 2026-04-21 14:07:23 +00:00
19 lines
456 B
Go
19 lines
456 B
Go
package controller
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/railwayapp/cli/entity"
|
|
)
|
|
|
|
func (c *Controller) CreatePlugin(ctx context.Context, req *entity.CreatePluginRequest) (*entity.Plugin, error) {
|
|
return c.gtwy.CreatePlugin(ctx, req)
|
|
}
|
|
|
|
func (c *Controller) GetAvailablePlugins(ctx context.Context, projectId string) ([]string, error) {
|
|
plugins, err := c.gtwy.GetAvailablePlugins(ctx, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return plugins, nil
|
|
}
|