virtual

package
v4.4.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBrowser

func WithBrowser() nodes.Option

func WithResolver

func WithResolver() nodes.Option

Types

type BrowserHandler

type BrowserHandler struct {
	abstract.Handler
}

BrowserHandler is used by admin mode to list virtual nodes instead of their resolved values.

func NewVirtualNodesBrowser

func NewVirtualNodesBrowser() *BrowserHandler

func (*BrowserHandler) Adapt

func (*BrowserHandler) ListNodes

ListNodes Append virtual nodes to the datasources list if admin is listing the root of the tree

func (*BrowserHandler) ReadNode

ReadNode creates a fake node if admin is reading info about a virtual node

type ResolverHandler

type ResolverHandler struct {
	abstract.BranchFilter
}

ResolverHandler dynamically resolves virtual nodes to their runtime value.

func NewVirtualNodesHandler

func NewVirtualNodesHandler() *ResolverHandler

func (*ResolverHandler) Adapt

Jump to

Keyboard shortcuts

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