Documentation ¶
Index ¶
- type Controller
- func (c *Controller) ConfirmBrowserOpen(spinnerMsg string, url string) 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) GetAvailablePlugins(ctx context.Context, projectId string) ([]string, error)
- func (c *Controller) GetEnvs(ctx context.Context) (*entity.Envs, error)
- func (c *Controller) GetLatestVersion() (string, error)
- func (c *Controller) GetProject(ctx context.Context, projectId string) (*entity.Project, error)
- func (c *Controller) GetProjects(ctx context.Context) ([]*entity.Project, error)
- func (c *Controller) GetUser(ctx context.Context) (*entity.User, 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) OpenProjectInBrowser(ctx context.Context, projectID string, environmentID string)
- 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) Up(ctx context.Context) (string, error)
- func (c *Controller) UpdateProject(ctx context.Context, req *entity.UpdateProjectRequest) (*entity.Project, error)
- type LoginResponse
Constants ¶
This section is empty.
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) ConfirmBrowserOpen ¶
func (c *Controller) ConfirmBrowserOpen(spinnerMsg string, url string) 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) GetAvailablePlugins ¶
func (*Controller) GetLatestVersion ¶
func (c *Controller) GetLatestVersion() (string, error)
func (*Controller) GetProject ¶
GetProject returns a project of id projectId, error otherwise
func (*Controller) GetProjects ¶
GetProjects returns all projects associated with the user, error otherwise
func (*Controller) IsLoggedIn ¶
func (c *Controller) IsLoggedIn(ctx context.Context) (bool, error)
func (*Controller) OpenProjectInBrowser ¶
func (c *Controller) OpenProjectInBrowser(ctx context.Context, projectID string, environmentID string)
OpenProjectInBrowser opens the provided projectId in the browser
func (*Controller) SaveEnvsToFile ¶
func (c *Controller) SaveEnvsToFile(ctx context.Context) error
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
type LoginResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.