rest

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package rest provides a gateway to the underlying grpc service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstRun

func FirstRun(ctx context.Context) error

FirstRun detects datasources created during install and create workspaces on them

Types

type WorkspaceHandler

type WorkspaceHandler struct {
	resources.ResourceProviderHandler
	// contains filtered or unexported fields
}

WorkspaceHandler defines the specific handler struc for workspace management.

func NewWorkspaceHandler

func NewWorkspaceHandler(ctx context.Context) *WorkspaceHandler

NewWorkspaceHandler simply creates and configures a handler.

func (*WorkspaceHandler) DeleteWorkspace

func (h *WorkspaceHandler) DeleteWorkspace(req *restful.Request, rsp *restful.Response) error

func (*WorkspaceHandler) Filter

func (h *WorkspaceHandler) Filter() func(string) string

Filter returns a function to filter the swagger path.

func (*WorkspaceHandler) PutWorkspace

func (h *WorkspaceHandler) PutWorkspace(req *restful.Request, rsp *restful.Response) error

func (*WorkspaceHandler) SearchWorkspaces

func (h *WorkspaceHandler) SearchWorkspaces(req *restful.Request, rsp *restful.Response) error

func (*WorkspaceHandler) SwaggerTags

func (h *WorkspaceHandler) SwaggerTags() []string

SwaggerTags lists the names of the service tags declared in the swagger json implemented by this service.

Directories

Path Synopsis
Package service provides a REST gateway to the workspaces
Package service provides a REST gateway to the workspaces

Jump to

Keyboard shortcuts

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