Documentation ¶
Overview ¶
Package rest exposes a REST API to manage shared rooms.
Package rest implements all the share logic for Cells and Links.
It is a high-level service using many other services for crud-ing shares through the REST API.
Index ¶
- type SharesHandler
- func (h *SharesHandler) DeleteCell(req *restful.Request, rsp *restful.Response)
- func (h *SharesHandler) DeleteShareLink(req *restful.Request, rsp *restful.Response)
- func (h *SharesHandler) Filter() func(string) string
- func (h *SharesHandler) GetCell(req *restful.Request, rsp *restful.Response)
- func (h *SharesHandler) GetShareLink(req *restful.Request, rsp *restful.Response)
- func (h *SharesHandler) IdmUserFromClaims(ctx context.Context) (*idm.User, error)
- func (h *SharesHandler) ListSharedResources(req *restful.Request, rsp *restful.Response)
- func (h *SharesHandler) PutCell(req *restful.Request, rsp *restful.Response)
- func (h *SharesHandler) PutShareLink(req *restful.Request, rsp *restful.Response)
- func (h *SharesHandler) SwaggerTags() []string
- func (h *SharesHandler) UpdateSharePolicies(req *restful.Request, rsp *restful.Response)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharesHandler ¶
type SharesHandler struct { // contains filtered or unexported fields }
SharesHandler implements handler methods for the share REST service.
func NewSharesHandler ¶
func NewSharesHandler(ctx context.Context) *SharesHandler
NewSharesHandler simply creates a new SharesHandler.
func (*SharesHandler) DeleteCell ¶
func (h *SharesHandler) DeleteCell(req *restful.Request, rsp *restful.Response)
DeleteCell loads the workspace and its root nodes and eventually removes room root totally.
func (*SharesHandler) DeleteShareLink ¶
func (h *SharesHandler) DeleteShareLink(req *restful.Request, rsp *restful.Response)
DeleteShareLink deletes a link information.
func (*SharesHandler) Filter ¶
func (h *SharesHandler) Filter() func(string) string
Filter returns a function to filter the swagger path.
func (*SharesHandler) GetCell ¶
func (h *SharesHandler) GetCell(req *restful.Request, rsp *restful.Response)
GetCell simply retrieves a shared room from its UUID.
func (*SharesHandler) GetShareLink ¶
func (h *SharesHandler) GetShareLink(req *restful.Request, rsp *restful.Response)
GetShareLink loads link information.
func (*SharesHandler) IdmUserFromClaims ¶
func (*SharesHandler) ListSharedResources ¶
func (h *SharesHandler) ListSharedResources(req *restful.Request, rsp *restful.Response)
ListSharedResources implements the corresponding Rest API operation
func (*SharesHandler) PutCell ¶
func (h *SharesHandler) PutCell(req *restful.Request, rsp *restful.Response)
PutCell creates or updates a shared room (a.k.a a Cell) via REST API.
func (*SharesHandler) PutShareLink ¶
func (h *SharesHandler) PutShareLink(req *restful.Request, rsp *restful.Response)
PutShareLink creates or updates a link to a shared item.
func (*SharesHandler) SwaggerTags ¶
func (h *SharesHandler) SwaggerTags() []string
SwaggerTags list the names of the service tags declared in the swagger json implemented by this service.
func (*SharesHandler) UpdateSharePolicies ¶
func (h *SharesHandler) UpdateSharePolicies(req *restful.Request, rsp *restful.Response)
UpdateSharePolicies updates policies associated to the underlying workspace