compose

package
v5.0.0-...-1b49765 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts ...nodes.Option) nodes.Client

func PathClient

func PathClient(oo ...nodes.Option) nodes.Client

func PathClientAdmin

func PathClientAdmin(oo ...nodes.Option) nodes.Client

func UuidClient

func UuidClient(oo ...nodes.Option) nodes.Client

Types

type Reverse

type Reverse struct {
	nodes.Client
}

Reverse is an extended clientImpl used mainly to filter events sent from inside to outside the application

func ReverseClient

func ReverseClient(oo ...nodes.Option) *Reverse

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

Jump to

Keyboard shortcuts

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