package erisfs
import "codeberg.org/eris/eris-go/erisfs"
Index ¶
- Constants
- func Encode(store eris.Store, secret *eris.Secret, index *Index) (indexSize int, cap eris.ReadCapability, err error)
- func Load(store eris.Store, cap eris.ReadCapability, cb LoadFunc) (err error)
- type Entry
- type ErisFS
- type FileEntry
- type Index
- type LinkEntry
- type LinkMode
- type LoadFunc
- type Node
- type TreeEntry
Constants ¶
const ( CBORTag = 1701996916 // This package only supports version 1 of ERIS-FS. Version = 1 FileKind = 0 ExecKind = 1 LinkKind = 2 TreeKind = 3 )
Functions ¶
func Encode ¶
func Encode(store eris.Store, secret *eris.Secret, index *Index) (indexSize int, cap eris.ReadCapability, err error)
func Load ¶
Types ¶
type Entry ¶
type Entry struct { Cap eris.ReadCapability Path, Target string Kind uint8 }
type ErisFS ¶
func LoadFS ¶
type FileEntry ¶
type FileEntry struct { // Kind must be 0 or 1! Kind uint8 Cap eris.ReadCapability // contains filtered or unexported fields }
type Index ¶
type Index struct { // Set Version to 1! Version uint8 // Paths mapped to entries. Entries map[string]interface{} // contains filtered or unexported fields }
The type of version 1 of ERIS-FS format.
func CreateIndex ¶
func CreateIndex(store eris.Store, secret *eris.Secret, linkMode LinkMode, sourcePaths []string) (index *Index, err error)
type LinkEntry ¶
type LinkEntry struct { // Kind must be 2! Kind uint8 Target string // contains filtered or unexported fields }
type LinkMode ¶
type LinkMode int
type LoadFunc ¶
type Node ¶
Node represent a file, link or directory in an ERIS-FS tree.
type TreeEntry ¶
type TreeEntry struct { // Kind must be 3! Kind uint8 Cap eris.ReadCapability // contains filtered or unexported fields }
Source Files ¶
erisfs.go load.go mkfs.go
- Version
- v0.0.0-20250117134628-64f8be33f6fe (latest)
- Published
- Jan 17, 2025
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 1 day ago –
Tools for package owners.