inode

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package inode provides service for uniquely pinning and addressing an inode for path.

Index

Constants

This section is empty.

Variables

View Source
var Module = shaft.Stack(stackInodeManager)

Module is the DI module of the inode manager.

The module requires a context, an errgroup and a trace manager, and injects an inode pin manager.

Functions

This section is empty.

Types

type Inode

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

Inode is the actually pinned inode.

func (*Inode) Inode

func (inode *Inode) Inode() uint64

Inode returns the address of the pinned inode.

func (*Inode) Unpin

func (inode *Inode) Unpin()

Unpin removes the strong reference held by caller.

type Manager

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

Manager for performing and managing inode pins.

func (*Manager) PinDir

func (m *Manager) PinDir(name string) (*Inode, error)

PinDir is the request for pinning single dir.

func (*Manager) PinFile

func (m *Manager) PinFile(name string) (*Inode, error)

PinFile is the request for pinning single file.

Jump to

Keyboard shortcuts

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