Documentation
¶
Index ¶
- func NewClient(opts ...nodes.Option) nodes.Client
- func PathClient(oo ...nodes.Option) nodes.Client
- func PathClientAdmin(oo ...nodes.Option) nodes.Client
- func PathComposer(oo ...nodes.Option) []nodes.Option
- func UuidClient(oo ...nodes.Option) nodes.Client
- func UuidComposer(oo ...nodes.Option) []nodes.Option
- type Reverse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reverse ¶
Reverse is an extended clientImpl used mainly to filter events sent from inside to outside the application
func ReverseClient ¶
func (*Reverse) NodeIsChildOfRoot ¶
func (r *Reverse) NodeIsChildOfRoot(ctx context.Context, node *tree.Node, rootId string) (*tree.Node, bool)
NodeIsChildOfRoot compares pathes between possible parent and child
func (*Reverse) WorkspaceCanSeeNode ¶
func (r *Reverse) WorkspaceCanSeeNode(ctx context.Context, accessList *permissions.AccessList, workspace *idm.Workspace, node *tree.Node) (*tree.Node, bool)
WorkspaceCanSeeNode will check workspaces roots to see if a node in below one of them
Click to show internal directories.
Click to hide internal directories.