index

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager

func NewManager(indexPath string, metaStore metaiface.Store) (index.Manager, error)

NewManager creates a new Manage.

Types

type Manage

type Manage struct {
	// contains filtered or unexported fields
}

Manage implements the Manager interface using the local filesystem.

func (*Manage) Close

func (m *Manage) Close() error

Close closes the file manager.

func (*Manage) CreateNode

func (m *Manage) CreateNode(node *index.Node) error

CreateNode creates a new node in the index.

func (*Manage) DeleteNode

func (m *Manage) DeleteNode(nodeID string) error

DeleteNode removes a node from the index.

func (*Manage) GetNode

func (m *Manage) GetNode(nodeID string) (*index.Node, error)

GetNode retrieves a node by its unique ID.

func (*Manage) GetNodeByPath

func (m *Manage) GetNodeByPath(path string) (*index.Node, error)

GetNodeByPath retrieves a node by its full path.

func (*Manage) ListChildren

func (m *Manage) ListChildren(parentID string) ([]*index.Node, error)

ListChildren retrieves all immediate children of a directory node.

func (*Manage) MoveNode

func (m *Manage) MoveNode(nodeID string, newParentID string, newName string) error

MoveNode moves a node to a new parent directory and/or new name.

func (*Manage) UpdateNode

func (m *Manage) UpdateNode(node *index.Node) error

UpdateNode updates an existing node's data.

Jump to

Keyboard shortcuts

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