Documentation
¶
Overview ¶
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) error
- func (h *SharesHandler) DeleteShareLink(req *restful.Request, rsp *restful.Response) error
- func (h *SharesHandler) Filter() func(string) string
- func (h *SharesHandler) GetCell(req *restful.Request, rsp *restful.Response) error
- func (h *SharesHandler) GetShareClient() *share.Client
- func (h *SharesHandler) GetShareLink(req *restful.Request, rsp *restful.Response) error
- func (h *SharesHandler) IdmUserFromClaims(ctx context.Context) (*idm.User, error)
- func (h *SharesHandler) ListSharedResources(req *restful.Request, rsp *restful.Response) error
- func (h *SharesHandler) PutCell(req *restful.Request, rsp *restful.Response) error
- func (h *SharesHandler) PutOrUpdateShareLink(ctx context.Context, link *rest.ShareLink, linkOptions share.LinkOptioner) (*rest.ShareLink, error)
- func (h *SharesHandler) PutShareLink(req *restful.Request, rsp *restful.Response) error
- func (h *SharesHandler) SwaggerTags() []string
- func (h *SharesHandler) UpdateSharePolicies(req *restful.Request, rsp *restful.Response) error
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() *SharesHandler
NewSharesHandler simply creates a new SharesHandler.
func (*SharesHandler) DeleteCell ¶
DeleteCell loads the workspace and its root nodes and eventually removes room root totally.
func (*SharesHandler) DeleteShareLink ¶
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) GetShareClient ¶
func (h *SharesHandler) GetShareClient() *share.Client
func (*SharesHandler) GetShareLink ¶
GetShareLink loads link information.
func (*SharesHandler) IdmUserFromClaims ¶
func (*SharesHandler) ListSharedResources ¶
ListSharedResources implements the corresponding Rest API operation
func (*SharesHandler) PutCell ¶
PutCell creates or updates a shared room (a.k.a a Cell) via REST API.
func (*SharesHandler) PutOrUpdateShareLink ¶
func (h *SharesHandler) PutOrUpdateShareLink(ctx context.Context, link *rest.ShareLink, linkOptions share.LinkOptioner) (*rest.ShareLink, error)
func (*SharesHandler) PutShareLink ¶
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 ¶
UpdateSharePolicies updates policies associated to the underlying workspace