posinfo

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 2 Imported by: 32

README

go-ipfs-posinfo

standard-readme compliant GoDoc Build Status

Posinfo wraps offset information for ipfs filestore nodes

❗ This repo is no longer maintained.

👉 We highly recommend switching to the maintained version at https://github.com/ipfs/boxo/tree/main/filestore/posinfo. 🏎️ Good news! There is tooling and documentation to expedite a switch in your repo.

⚠️ If you continue using this repo, please note that security fixes will not be provided (unless someone steps in to maintain it).

📚 Learn more, including how to take the maintainership mantle or ask questions, here.

Table of Contents

Install

go get github.com/ipfs/go-ipfs-posinfo

Usage

See the GoDoc documentation

License

MIT © Protocol Labs, Inc.

Documentation

Overview

Package posinfo wraps offset information used by ipfs filestore nodes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilestoreNode deprecated

type FilestoreNode struct {
	ipld.Node
	PosInfo *PosInfo
}

FilestoreNode is an ipld.Node which arries PosInfo with it allowing to map it directly to a filesystem object.

Deprecated: use github.com/ipfs/boxo/filestore/posinfo.FilestoreNode

type PosInfo deprecated

type PosInfo struct {
	Offset   uint64
	FullPath string
	Stat     os.FileInfo // can be nil
}

PosInfo stores information about the file offset, its path and stat.

Deprecated: use github.com/ipfs/boxo/filestore/posinfo.PosInfo

Jump to

Keyboard shortcuts

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