xbfs

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: BSD-2-Clause, CC0-1.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_BINDATA_FILE = errors.New("Bindata file.")
	ERR_BINDATA_DIR  = errors.New("Bindata dir.")
)

Functions

This section is empty.

Types

type DirInfo

type DirInfo struct {
	xbcommon.NodeDir
	// contains filtered or unexported fields
}

func NewDirInfo

func NewDirInfo(node xbcommon.NodeDir, pth string) *DirInfo

func (DirInfo) Appender

func (DirInfo) Appender() (io.WriteCloser, error)

func (*DirInfo) Data

func (b *DirInfo) Data() ([]byte, error)

func (*DirInfo) GetFileInfo added in v0.0.11

func (d *DirInfo) GetFileInfo() os.FileInfo

func (*DirInfo) Path

func (d *DirInfo) Path() string

func (*DirInfo) Reader

func (rf *DirInfo) Reader() (iocommon.ReadSeekCloser, error)

func (*DirInfo) RealPath

func (d *DirInfo) RealPath() string

func (*DirInfo) String

func (d *DirInfo) String() string

func (DirInfo) Type

func (DirInfo) Type() assetfsapi.FileType

func (DirInfo) Writer

func (DirInfo) Writer() (io.WriteCloser, error)

type FileInfo

type FileInfo struct {
	xbcommon.Asset
	// contains filtered or unexported fields
}

func NewFileInfo

func NewFileInfo(a xbcommon.Asset, path string) *FileInfo

func (FileInfo) Appender

func (FileInfo) Appender() (io.WriteCloser, error)

func (*FileInfo) GetFileInfo added in v0.0.11

func (b *FileInfo) GetFileInfo() os.FileInfo

func (*FileInfo) Path

func (b *FileInfo) Path() string

func (*FileInfo) RealPath

func (b *FileInfo) RealPath() string

func (*FileInfo) String

func (b *FileInfo) String() string

func (FileInfo) Type

func (FileInfo) Type() assetfsapi.FileType

func (FileInfo) Writer

func (FileInfo) Writer() (io.WriteCloser, error)

type FileSystem

type FileSystem struct {
	assetfsapi.AssetGetterInterface
	assetfsapi.TraversableInterface

	HttpHandler http.Handler

	local.LocalSourcesAttribute
	// contains filtered or unexported fields
}

func NewFileSystem

func NewFileSystem(assets *xbcommon.Assets) (fs *FileSystem)

func (*FileSystem) Compile

func (fs *FileSystem) Compile() error

Compile compile assetfs

func (*FileSystem) Dump

func (fs *FileSystem) Dump(cb func(info assetfsapi.FileInfo) error, ignore ...func(pth string) bool) error

func (*FileSystem) DumpFiles

func (fs *FileSystem) DumpFiles(cb func(info assetfsapi.FileInfo) error) error

func (*FileSystem) GetName

func (fs *FileSystem) GetName() string

func (*FileSystem) GetNameSpace

func (fs *FileSystem) GetNameSpace(nameSpace string) (assetfsapi.NameSpacedInterface, error)

func (*FileSystem) GetParent

func (fs *FileSystem) GetParent() assetfsapi.Interface

func (*FileSystem) GetPath

func (fs *FileSystem) GetPath() string

func (*FileSystem) NameSpace

func (fs *FileSystem) NameSpace(nameSpace string) assetfsapi.NameSpacedInterface

NameSpace return namespaced filesystem

func (*FileSystem) NameSpaces

func (fs *FileSystem) NameSpaces() (items []assetfsapi.NameSpacedInterface)

func (*FileSystem) RegisterPlugin

func (fs *FileSystem) RegisterPlugin(plugins ...assetfsapi.Plugin)

func (*FileSystem) Root

func (fs *FileSystem) Root() assetfsapi.Interface

func (*FileSystem) ServeHTTP

func (fs *FileSystem) ServeHTTP(w http.ResponseWriter, r *http.Request)

type FsLoadCallback added in v0.0.5

type FsLoadCallback interface {
	Callback(fs assetfsapi.Interface)
}

type FsLoadCallbackFunc added in v0.0.5

type FsLoadCallbackFunc func(fs assetfsapi.Interface)

func (FsLoadCallbackFunc) Callback added in v0.0.5

func (f FsLoadCallbackFunc) Callback(fs assetfsapi.Interface)

Jump to

Keyboard shortcuts

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