Documentation ¶
Index ¶
- Constants
- type Controller
- func (c *Controller) AutoImportDotEnv(ctx context.Context) error
- func (c *Controller) ConfirmBrowserOpen(spinnerMsg string, url string) error
- func (c *Controller) CreateEnvironment(ctx context.Context, req *entity.CreateEnvironmentRequest) (*entity.Environment, error)
- func (c *Controller) CreateEphemeralEnvironment(ctx context.Context, req *entity.CreateEphemeralEnvironmentRequest) (*entity.Environment, error)
- func (c *Controller) CreatePlugin(ctx context.Context, req *entity.CreatePluginRequest) (*entity.Plugin, error)
- func (c *Controller) CreateProject(ctx context.Context, req *entity.CreateProjectRequest) (*entity.Project, error)
- func (c *Controller) CreateProjectFromTemplate(ctx context.Context, req *entity.CreateProjectFromTemplateRequest) (*entity.CreateProjectFromTemplateResult, error)
- func (c *Controller) DeleteEnvironment(ctx context.Context, req *entity.DeleteEnvironmentRequest) error
- func (c *Controller) DeleteEnvs(ctx context.Context, names []string, serviceName *string) error
- func (c *Controller) DeleteProject(ctx context.Context, projectID string) error
- func (c *Controller) DeployEnvironmentTriggers(ctx context.Context, serviceID *string) error
- func (c *Controller) Down(ctx context.Context, req *entity.DownRequest) error
- func (c *Controller) GetActiveBuildLogs(ctx context.Context, numLines int32) error
- func (c *Controller) GetActiveDeployment(ctx context.Context) (*entity.Deployment, error)
- func (c *Controller) GetActiveDeploymentLogs(ctx context.Context, numLines int32) error
- func (c *Controller) GetAvailablePlugins(ctx context.Context, projectId string) ([]string, error)
- func (c *Controller) GetCurrentEnvironment(ctx context.Context) (*entity.Environment, error)
- func (c *Controller) GetCurrentProject(ctx context.Context) (*entity.Project, error)
- func (c *Controller) GetDeployments(ctx context.Context) ([]*entity.Deployment, error)
- func (c *Controller) GetEnvironmentByName(ctx context.Context, environmentName string) (*entity.Environment, error)
- func (c *Controller) GetEnvs(ctx context.Context, environment *entity.Environment, serviceName *string) (*entity.Envs, error)
- func (c *Controller) GetEnvsForCurrentEnvironment(ctx context.Context, serviceName *string) (*entity.Envs, error)
- func (c *Controller) GetFullUrlFromStaticUrl(staticUrl string) string
- func (c *Controller) GetLatestDeploymentForEnvironment(ctx context.Context, projectID string, environmentID string) (*entity.Deployment, error)
- func (c *Controller) GetLatestVersion() (string, error)
- func (c *Controller) GetProject(ctx context.Context, projectId string) (*entity.Project, error)
- func (c *Controller) GetProjectByName(ctx context.Context, projectName string) (*entity.Project, error)
- func (c *Controller) GetProjectConfigs(ctx context.Context) (*entity.ProjectConfig, error)
- func (c *Controller) GetProjectDeploymentsURL(ctx context.Context, projectID string) string
- func (c *Controller) GetProjects(ctx context.Context) ([]*entity.Project, error)
- func (c *Controller) GetServiceDeploymentsURL(ctx context.Context, projectID string, serviceID string, deploymentID string) string
- func (c *Controller) GetServiceIdByName(ctx context.Context, serviceName *string) (*string, error)
- func (c *Controller) GetStarters(ctx context.Context) ([]*entity.Starter, error)
- func (c *Controller) GetUser(ctx context.Context) (*entity.User, error)
- func (c *Controller) GetWorkflowStatus(ctx context.Context, workflowID string) (entity.WorkflowStatus, error)
- func (c *Controller) GetWritableGithubScopes(ctx context.Context) ([]string, error)
- func (c *Controller) IsLoggedIn(ctx context.Context) (bool, error)
- func (c *Controller) Login(ctx context.Context, isBrowserless bool) (*entity.User, error)
- func (c *Controller) Logout(ctx context.Context) error
- func (c *Controller) OpenProjectDeploymentsInBrowser(ctx context.Context, projectID string) error
- func (c *Controller) OpenProjectInBrowser(ctx context.Context, projectID string, environmentID string) error
- func (c *Controller) OpenProjectPathInBrowser(ctx context.Context, projectID string, environmentID string, path string) error
- func (c *Controller) OpenStaticUrlInBrowser(staticUrl string) error
- func (c *Controller) PromptIfProtectedEnvironment(ctx context.Context) error
- func (c *Controller) SaveEnvsToFile(ctx context.Context) error
- func (c *Controller) SendPanic(ctx context.Context, panicErr string, stacktrace string, command string) (bool, error)
- func (c *Controller) UpdateEnvs(ctx context.Context, envs *entity.Envs, serviceName *string, replace bool) error
- func (c *Controller) UpdateProject(ctx context.Context, req *entity.UpdateProjectRequest) (*entity.Project, error)
- func (c *Controller) Upload(ctx context.Context, req *entity.UploadRequest) (*entity.UpResponse, error)
- type LoginResponse
Constants ¶
const (
GQL_SOFT_ERROR = "error fetching build logs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Controller
func (*Controller) AutoImportDotEnv ¶
func (c *Controller) AutoImportDotEnv(ctx context.Context) error
func (*Controller) ConfirmBrowserOpen ¶
func (c *Controller) ConfirmBrowserOpen(spinnerMsg string, url string) error
func (*Controller) CreateEnvironment ¶
func (c *Controller) CreateEnvironment(ctx context.Context, req *entity.CreateEnvironmentRequest) (*entity.Environment, error)
func (*Controller) CreateEphemeralEnvironment ¶
func (c *Controller) CreateEphemeralEnvironment(ctx context.Context, req *entity.CreateEphemeralEnvironmentRequest) (*entity.Environment, error)
func (*Controller) CreatePlugin ¶
func (c *Controller) CreatePlugin(ctx context.Context, req *entity.CreatePluginRequest) (*entity.Plugin, error)
func (*Controller) CreateProject ¶
func (c *Controller) CreateProject(ctx context.Context, req *entity.CreateProjectRequest) (*entity.Project, error)
CreateProject creates a project specified by the project request, error otherwise
func (*Controller) CreateProjectFromTemplate ¶
func (c *Controller) CreateProjectFromTemplate(ctx context.Context, req *entity.CreateProjectFromTemplateRequest) (*entity.CreateProjectFromTemplateResult, error)
CreateProjectFromTemplate creates a project from template specified by the project request, error otherwise
func (*Controller) DeleteEnvironment ¶
func (c *Controller) DeleteEnvironment(ctx context.Context, req *entity.DeleteEnvironmentRequest) error
func (*Controller) DeleteEnvs ¶
func (*Controller) DeleteProject ¶
func (c *Controller) DeleteProject(ctx context.Context, projectID string) error
func (*Controller) DeployEnvironmentTriggers ¶
func (c *Controller) DeployEnvironmentTriggers(ctx context.Context, serviceID *string) error
func (*Controller) Down ¶
func (c *Controller) Down(ctx context.Context, req *entity.DownRequest) error
func (*Controller) GetActiveBuildLogs ¶
func (c *Controller) GetActiveBuildLogs(ctx context.Context, numLines int32) error
func (*Controller) GetActiveDeployment ¶
func (c *Controller) GetActiveDeployment(ctx context.Context) (*entity.Deployment, error)
func (*Controller) GetActiveDeploymentLogs ¶
func (c *Controller) GetActiveDeploymentLogs(ctx context.Context, numLines int32) error
func (*Controller) GetAvailablePlugins ¶
func (*Controller) GetCurrentEnvironment ¶
func (c *Controller) GetCurrentEnvironment(ctx context.Context) (*entity.Environment, error)
GetCurrentEnvironment returns the currently active environment for the Railway project
func (*Controller) GetCurrentProject ¶
GetCurrentProject returns the currently active project
func (*Controller) GetDeployments ¶
func (c *Controller) GetDeployments(ctx context.Context) ([]*entity.Deployment, error)
func (*Controller) GetEnvironmentByName ¶
func (c *Controller) GetEnvironmentByName(ctx context.Context, environmentName string) (*entity.Environment, error)
func (*Controller) GetEnvs ¶
func (c *Controller) GetEnvs(ctx context.Context, environment *entity.Environment, serviceName *string) (*entity.Envs, error)
func (*Controller) GetEnvsForCurrentEnvironment ¶
func (*Controller) GetFullUrlFromStaticUrl ¶
func (c *Controller) GetFullUrlFromStaticUrl(staticUrl string) string
func (*Controller) GetLatestDeploymentForEnvironment ¶
func (c *Controller) GetLatestDeploymentForEnvironment(ctx context.Context, projectID string, environmentID string) (*entity.Deployment, error)
GetLatestDeploymentForEnvironment returns the URL to access project deployment in browser
func (*Controller) GetLatestVersion ¶
func (c *Controller) GetLatestVersion() (string, error)
func (*Controller) GetProject ¶
GetProject returns a project of id projectId, error otherwise
func (*Controller) GetProjectByName ¶
func (c *Controller) GetProjectByName(ctx context.Context, projectName string) (*entity.Project, error)
GetProjectByName returns a project for the user of name projectName, error otherwise
func (*Controller) GetProjectConfigs ¶
func (c *Controller) GetProjectConfigs(ctx context.Context) (*entity.ProjectConfig, error)
func (*Controller) GetProjectDeploymentsURL ¶
func (c *Controller) GetProjectDeploymentsURL(ctx context.Context, projectID string) string
GetProjectDeploymentsURL returns the URL to access project deployment in browser
func (*Controller) GetProjects ¶
GetProjects returns all projects associated with the user, error otherwise
func (*Controller) GetServiceDeploymentsURL ¶
func (c *Controller) GetServiceDeploymentsURL(ctx context.Context, projectID string, serviceID string, deploymentID string) string
GetServiceDeploymentsURL returns the URL to access service deployments in the browser
func (*Controller) GetServiceIdByName ¶
func (*Controller) GetStarters ¶
GetStarters returns all available starters
func (*Controller) GetWorkflowStatus ¶
func (c *Controller) GetWorkflowStatus(ctx context.Context, workflowID string) (entity.WorkflowStatus, error)
GetWorkflowStatus fetches the status of a workflow based on request, error otherwise
func (*Controller) GetWritableGithubScopes ¶
func (c *Controller) GetWritableGithubScopes(ctx context.Context) ([]string, error)
GetWritableGithubScopes creates a project specified by the project request, error otherwise
func (*Controller) IsLoggedIn ¶
func (c *Controller) IsLoggedIn(ctx context.Context) (bool, error)
func (*Controller) OpenProjectDeploymentsInBrowser ¶
func (c *Controller) OpenProjectDeploymentsInBrowser(ctx context.Context, projectID string) error
OpenProjectDeploymentsInBrowser opens the provided projectId's depolyments in the browser
func (*Controller) OpenProjectInBrowser ¶
func (c *Controller) OpenProjectInBrowser(ctx context.Context, projectID string, environmentID string) error
OpenProjectInBrowser opens the provided projectId in the browser
func (*Controller) OpenProjectPathInBrowser ¶
func (c *Controller) OpenProjectPathInBrowser(ctx context.Context, projectID string, environmentID string, path string) error
OpenProjectPathInBrowser opens the provided projectId with the provided path in the browser
func (*Controller) OpenStaticUrlInBrowser ¶
func (c *Controller) OpenStaticUrlInBrowser(staticUrl string) error
func (*Controller) PromptIfProtectedEnvironment ¶
func (c *Controller) PromptIfProtectedEnvironment(ctx context.Context) error
func (*Controller) SaveEnvsToFile ¶
func (c *Controller) SaveEnvsToFile(ctx context.Context) error
func (*Controller) UpdateEnvs ¶
func (*Controller) UpdateProject ¶
func (c *Controller) UpdateProject(ctx context.Context, req *entity.UpdateProjectRequest) (*entity.Project, error)
UpdateProject updates a project specified by the project request, error otherwise
func (*Controller) Upload ¶
func (c *Controller) Upload( ctx context.Context, req *entity.UploadRequest, ) (*entity.UpResponse, error)