poefs

package
v0.0.0-...-78985d9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(p string) (fs.FS, error)

func OpenFile

func OpenFile(unipath string) (fs.File, error)

func SplitPath

func SplitPath(p string) (string, string)

Split a path into two parts on a colon. If no colon is present (or if it's part of a Windows drive prefix), return an empty string and the input.

Types

type OpenCache

type OpenCache interface {
	Open(p string) (fs.FS, error)
	OpenFile(unipath string) (fs.File, error)
}

func NewOpenCache

func NewOpenCache() OpenCache

type StatExtensions

type StatExtensions interface {
	// Get some information on the source of a file
	Provenance() string

	// Get the SHA256 signature of a file (or nil if unsupported)
	Signature() []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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