fn

package
Version: v0.0.0-...-725082c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: BSD-2-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FNode

type FNode struct {
	Base     string
	Fs       fs.FS
	Path     string
	Revision string
	Type     string
	Parts    []string
	N        int
	Data     *ogdl.Graph
	Document *document.Document
	Content  []byte
	Params   map[string]string
}

func New

func New(root string) *FNode

func NewFS

func NewFS(fs fs.FS) *FNode

func (*FNode) Get

func (fn *FNode) Get(path string) error

Get

Revision rules - 1 rev per path - @ at the end means log() - @rev means a specific revision (at any point in the path that has revisions)

func (*FNode) GetRaw

func (fn *FNode) GetRaw(path string) error

func (*FNode) Put

func (fn *FNode) Put(path string, content []byte) error

func (*FNode) ReadDir

func (fn *FNode) ReadDir(path string) ([]fs.DirEntry, error)

func (*FNode) ReadFile

func (fn *FNode) ReadFile(path string) ([]byte, error)

func (*FNode) Stat

func (fn *FNode) Stat(path string) (fs.FileInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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