Documentation
¶
Index ¶
- func NewManager(indexPath string, metaStore metaiface.Store) (index.Manager, error)
- type Manage
- func (m *Manage) Close() error
- func (m *Manage) CreateNode(node *index.Node) error
- func (m *Manage) DeleteNode(nodeID string) error
- func (m *Manage) GetNode(nodeID string) (*index.Node, error)
- func (m *Manage) GetNodeByPath(path string) (*index.Node, error)
- func (m *Manage) ListChildren(parentID string) ([]*index.Node, error)
- func (m *Manage) MoveNode(nodeID string, newParentID string, newName string) error
- func (m *Manage) UpdateNode(node *index.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manage ¶
type Manage struct {
// contains filtered or unexported fields
}
Manage implements the Manager interface using the local filesystem.
func (*Manage) CreateNode ¶
CreateNode creates a new node in the index.
func (*Manage) DeleteNode ¶
DeleteNode removes a node from the index.
func (*Manage) GetNodeByPath ¶
GetNodeByPath retrieves a node by its full path.
func (*Manage) ListChildren ¶
ListChildren retrieves all immediate children of a directory node.
Click to show internal directories.
Click to hide internal directories.