path

package
v4.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: AGPL-3.0 Imports: 18 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 added in v4.3.2

func WithPermanentPrefix() 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 added in v4.3.2

type PermanentPrefix struct {
	abstract.BranchFilter
	Prefix string
}

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

func NewPermanentPrefix added in v4.3.2

func NewPermanentPrefix(p string) *PermanentPrefix

func (*PermanentPrefix) Adapt added in v4.3.2

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