path

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDatasource

func WithDatasource() nodes.Option

func WithMultipleRoots

func WithMultipleRoots() nodes.Option

func WithPermanentPrefix

func WithPermanentPrefix() nodes.Option

func WithRecyclePathHandler

func WithRecyclePathHandler() nodes.Option

func WithRootResolver

func WithRootResolver() nodes.Option

func WithWorkspace

func WithWorkspace() nodes.Option

Types

type DataSourceHandler

type DataSourceHandler struct {
	abstract.BranchFilter
}

DataSourceHandler is an BranchFilter adding/extracting datasource name from the path.

func (*DataSourceHandler) Adapt

type MultipleRootsHandler

type MultipleRootsHandler struct {
	abstract.BranchFilter
}

MultipleRootsHandler handle special case of multiple-roots workspaces.

func NewPathMultipleRootsHandler

func NewPathMultipleRootsHandler() *MultipleRootsHandler

func (*MultipleRootsHandler) Adapt

func (*MultipleRootsHandler) ListNodes

func (*MultipleRootsHandler) ReadNode

type PermanentPrefix

type PermanentPrefix struct {
	abstract.BranchFilter
	Prefix string
}

PermanentPrefix is an BranchFilter finding workspace root(s) based on the path.

func NewPermanentPrefix

func NewPermanentPrefix(p string) *PermanentPrefix

func (*PermanentPrefix) Adapt

type RecyclePathHandler

type RecyclePathHandler struct {
	abstract.BranchFilter
}

func (*RecyclePathHandler) Adapt

type WorkspaceHandler

type WorkspaceHandler struct {
	abstract.BranchFilter
}

WorkspaceHandler is an BranchFilter extracting workspace and managing path inside the workspace.

func (*WorkspaceHandler) Adapt

func (*WorkspaceHandler) ListNodes

func (*WorkspaceHandler) ReadNode

type WorkspaceRootResolver

type WorkspaceRootResolver struct {
	abstract.BranchFilter
}

WorkspaceRootResolver is an BranchFilter finding workspace root(s) based on the path.

func NewWorkspaceRootResolver

func NewWorkspaceRootResolver() *WorkspaceRootResolver

func (*WorkspaceRootResolver) Adapt

Jump to

Keyboard shortcuts

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