workspace

package
v0.49.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWorkspace

func CreateWorkspace(ctx *gin.Context)

CreateWorkspace godoc

@Tags			workspace
@Summary		Create a workspace
@Description	Create a workspace
@Param			workspace	body	CreateWorkspaceDTO	true	"Create workspace"
@Produce		json
@Success		200	{object}	Workspace
@Router			/workspace [post]

@id				CreateWorkspace

func GetWorkspace

func GetWorkspace(ctx *gin.Context)

GetWorkspace godoc

@Tags			workspace
@Summary		Get workspace info
@Description	Get workspace info
@Produce		json
@Param			workspaceId	path		string	true	"Workspace ID or Name"
@Param			verbose		query		bool	false	"Verbose"
@Success		200			{object}	WorkspaceDTO
@Router			/workspace/{workspaceId} [get]

@id				GetWorkspace

func ListWorkspaces

func ListWorkspaces(ctx *gin.Context)

ListWorkspaces godoc

@Tags			workspace
@Summary		List workspaces
@Description	List workspaces
@Produce		json
@Success		200	{array}	WorkspaceDTO
@Router			/workspace [get]
@Param			verbose	query	bool	false	"Verbose"

@id				ListWorkspaces

func RemoveWorkspace

func RemoveWorkspace(ctx *gin.Context)

RemoveWorkspace godoc

@Tags			workspace
@Summary		Remove workspace
@Description	Remove workspace
@Param			workspaceId	path	string	true	"Workspace ID"
@Param			force		query	bool	false	"Force"
@Success		200
@Router			/workspace/{workspaceId} [delete]

@id				RemoveWorkspace

func SetProjectState

func SetProjectState(ctx *gin.Context)

SetProjectState godoc

@Tags			workspace
@Summary		Set project state
@Description	Set project state
@Param			workspaceId	path	string			true	"Workspace ID or Name"
@Param			projectId	path	string			true	"Project ID"
@Param			setState	body	SetProjectState	true	"Set State"
@Success		200
@Router			/workspace/{workspaceId}/{projectId}/state [post]

@id				SetProjectState

func StartProject

func StartProject(ctx *gin.Context)

StartProject godoc

@Tags			workspace
@Summary		Start project
@Description	Start project
@Param			workspaceId	path	string	true	"Workspace ID or Name"
@Param			projectId	path	string	true	"Project ID"
@Success		200
@Router			/workspace/{workspaceId}/{projectId}/start [post]

@id				StartProject

func StartWorkspace

func StartWorkspace(ctx *gin.Context)

StartWorkspace godoc

@Tags			workspace
@Summary		Start workspace
@Description	Start workspace
@Param			workspaceId	path	string	true	"Workspace ID or Name"
@Success		200
@Router			/workspace/{workspaceId}/start [post]

@id				StartWorkspace

func StopProject

func StopProject(ctx *gin.Context)

StopProject godoc

@Tags			workspace
@Summary		Stop project
@Description	Stop project
@Param			workspaceId	path	string	true	"Workspace ID or Name"
@Param			projectId	path	string	true	"Project ID"
@Success		200
@Router			/workspace/{workspaceId}/{projectId}/stop [post]

@id				StopProject

func StopWorkspace

func StopWorkspace(ctx *gin.Context)

StopWorkspace godoc

@Tags			workspace
@Summary		Stop workspace
@Description	Stop workspace
@Param			workspaceId	path	string	true	"Workspace ID or Name"
@Success		200
@Router			/workspace/{workspaceId}/stop [post]

@id				StopWorkspace

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL