restv2

package
v5.0.0-...-2679821 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	SearchHandler    *searcher.Handler
	TreeHandler      *treeer.Handler
	TemplatesHandler *tpl.Handler
	SharesHandler    *shares.SharesHandler
	UserMetaHandler  *umeta.UserMetaHandler
}

func NewHandler

func NewHandler() *Handler

func (*Handler) BackgroundActionInfo

func (h *Handler) BackgroundActionInfo(req *restful.Request, resp *restful.Response) error

BackgroundActionInfo answers to GET /node/action/{Name}/{JobUuid}

func (*Handler) BatchUpdateMeta

func (h *Handler) BatchUpdateMeta(req *restful.Request, resp *restful.Response) error

BatchUpdateMeta PATCH /node/meta/batch Input rest.BatchUpdateMetaList, Output rest.BatchUpdateMetaList

func (*Handler) ContextWorkspace

func (h *Handler) ContextWorkspace(ws *rest.ContextWorkspace, k, v string) *rest.ContextWorkspace

ContextWorkspace feeds a rest.ContextWorkspace struct with incoming metadata

func (*Handler) ControlBackgroundAction

func (h *Handler) ControlBackgroundAction(req *restful.Request, resp *restful.Response) error

ControlBackgroundAction answers to PATCH /node/action/{Name}/{JobUuid}

func (*Handler) Create

func (h *Handler) Create(req *restful.Request, resp *restful.Response) error

Create creates folders or files - Files are empty or hydrated from a template Api Endpoint: POST /node/create

func (h *Handler) CreatePublicLink(req *restful.Request, resp *restful.Response) error

CreatePublicLink responds to POST /node/link/{Uuid}/link InputBody rest.PublicLinkRequest | Output rest.ShareLink

func (*Handler) CreateSelection

func (h *Handler) CreateSelection(req *restful.Request, resp *restful.Response) error

CreateSelection forwards to userspace.PersistSelection

func (h *Handler) DeletePublicLink(req *restful.Request, resp *restful.Response) error

DeletePublicLink responds to DELETE /node/link/{Uuid} Output rest.PublicLinkDeleteSuccess

func (*Handler) Filter

func (h *Handler) Filter() func(string) string

Filter returns a function to filter the swagger path

func (*Handler) GetByUuid

func (h *Handler) GetByUuid(req *restful.Request, resp *restful.Response) error

GetByUuid is a simple call on a node

func (h *Handler) GetPublicLink(req *restful.Request, resp *restful.Response) error

GetPublicLink responds to GET /node/link/{LinkUuid} Output rest.ShareLink

func (*Handler) ImageMeta

func (h *Handler) ImageMeta(m *rest.ImageMeta, k, v string) *rest.ImageMeta

ImageMeta feeds a rest.ImageMeta struct with incoming metadata

func (*Handler) ListNamespaceValues

func (h *Handler) ListNamespaceValues(req *restful.Request, resp *restful.Response) error

ListNamespaceValues GET /node/meta/namespace/{Namespace} Input based on path parameter, output rest.NamespaceValuesResponse

func (*Handler) ListNamespaces

func (h *Handler) ListNamespaces(req *restful.Request, resp *restful.Response) error

ListNamespaces GET /node/meta/namespace Empty Input - Returns rest.UserMetaNamespaceCollection

func (*Handler) ListVersions

func (h *Handler) ListVersions(req *restful.Request, resp *restful.Response) error

ListVersions lists all versions of a node

func (*Handler) Lookup

func (h *Handler) Lookup(req *restful.Request, resp *restful.Response) error

Lookup Combines LS and FIND in one endpoint

func (*Handler) PatchNode

func (h *Handler) PatchNode(req *restful.Request, resp *restful.Response) error

PatchNode PATCH /node/u/{Uuid}

func (*Handler) PerformAction

func (h *Handler) PerformAction(req *restful.Request, resp *restful.Response) error

PerformAction answers to POST /node/action/{Name}

func (*Handler) SearchMeta

func (h *Handler) SearchMeta(req *restful.Request, resp *restful.Response) error

SearchMeta POST /node/meta Input idm.SearchUserMetaRequest / Output rest.UserMetaList

func (*Handler) SwaggerTags

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

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

func (*Handler) Templates

func (h *Handler) Templates(req *restful.Request, resp *restful.Response) error

Templates forwards call to TemplatesHandler (same i/o format)

func (*Handler) Thumbnails

func (h *Handler) Thumbnails(bucket, nodeId, jsonThumbs string) (ff []*rest.FilePreview)

Thumbnails feeds a rest.FilePreview struct with incoming metadata

func (*Handler) TreeNodeToNode

func (h *Handler) TreeNodeToNode(n *tree.Node) *rest.Node

TreeNodeToNode converts a tree.Node to rest.Node

func (*Handler) TreeNodesToNodes

func (h *Handler) TreeNodesToNodes(nn []*tree.Node) (out []*rest.Node)

TreeNodesToNodes applies TreeNodeToNode to all incoming nodes

func (*Handler) UpdateNamespaceValues

func (h *Handler) UpdateNamespaceValues(req *restful.Request, resp *restful.Response) error

UpdateNamespaceValues PATCH /node/meta/namespace/{Namespace} Input rest.NamespaceValuesRequest, output rest.NamespaceValuesResponse

func (h *Handler) UpdatePublicLink(req *restful.Request, resp *restful.Response) error

UpdatePublicLink responds to PATCH /node/link/{LinkUuid} Input rest.PublicLinkRequest | Output rest.ShareLink, Path Parameters {Uuid}

func (*Handler) UserBookmarks

func (h *Handler) UserBookmarks(req *restful.Request, resp *restful.Response) error

UserBookmarks GET /node/bookmarks Empty input - returns NodeCollection

func (*Handler) UuidClient

func (h *Handler) UuidClient(external bool) nodes.Handler

UuidClient returns a properly initialized handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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