compose

package
v4.4.8-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 29 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(ctx context.Context, oo ...nodes.Option) nodes.Client

func PathClientAdmin

func PathClientAdmin(ctx context.Context, oo ...nodes.Option) nodes.Client

func UuidClient

func UuidClient(ctx context.Context, oo ...nodes.Option) nodes.Client

Types

type Reverse

type Reverse struct {
	nodes.Client
	// contains filtered or unexported fields
}

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

func ReverseClient

func ReverseClient(ctx context.Context, 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 checks if a node appears inside a workspace, and if so, returns the node with its path relative to this workspace

Jump to

Keyboard shortcuts

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