routes

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	logger *zap.Logger,
	viewRepo db.Repository,
	codebaseUserRepo db_codebase.CodebaseUserRepository,
	analyticsClient analytics.Client,
	workspaceReader db_workspace.WorkspaceReader,
	snapshotter snapshotter.Snapshotter,
	snapshotRepo db_snapshots.Repository,
	workspaceWriter db_workspace.WorkspaceWriter,
	executorProvider executor.Provider,
	eventSender events.EventSender,
) func(c *gin.Context)

func Get

func Get(repo db.Repository, workspaceReader db_workspace.WorkspaceReader, userRepo db_user.Repository, logger *zap.Logger) func(c *gin.Context)

func Ignores

func Ignores(logger *zap.Logger, executorProvider executor.Provider, viewRepo db_view.Repository) func(*gin.Context)

Types

type CreateRequest

type CreateRequest struct {
	CodebaseID    string `json:"codebase_id" binding:"required"`
	WorkspaceID   string `json:"workspace_id" binding:"required"`
	Name          string `json:"name"`
	MountPath     string `json:"mount_path"`
	MountHostname string `json:"mount_hostname"`
}

Jump to

Keyboard shortcuts

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