filesystem

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	// contains filtered or unexported fields
}

func FSCode

func FSCode(items ...*Migration) *Code

func (*Code) Open

func (a *Code) Open(name string) (file_ fs.File, err_ error)

func (*Code) ReadDir

func (a *Code) ReadDir(name string) ([]fs.DirEntry, error)

func (*Code) ReadFile

func (a *Code) ReadFile(name string) (data_ []byte, err_ error)

type FS

type FS interface {
	fs.ReadDirFS
	fs.ReadFileFS
}

func FSPath

func FSPath(path string) FS

type Join

type Join struct {
	// contains filtered or unexported fields
}

func FSJoin

func FSJoin(items ...FS) *Join

func (*Join) Add

func (a *Join) Add(fs FS) *Join

func (*Join) Open

func (a *Join) Open(name string) (file_ fs.File, err_ error)

func (*Join) ReadDir

func (a *Join) ReadDir(name string) ([]fs.DirEntry, error)

func (*Join) ReadFile

func (a *Join) ReadFile(name string) (data_ []byte, err_ error)

type Migration

type Migration struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewMigration

func NewMigration(
	name string,
	reader io.Reader,
) *Migration

func (*Migration) Close

func (a *Migration) Close() error

func (*Migration) Info

func (a *Migration) Info() (fs.FileInfo, error)

func (*Migration) IsDir

func (a *Migration) IsDir() bool

func (*Migration) ModTime

func (a *Migration) ModTime() time.Time

func (*Migration) Mode

func (a *Migration) Mode() fs.FileMode

func (*Migration) Name

func (a *Migration) Name() string

func (*Migration) Size

func (a *Migration) Size() int64

func (*Migration) Stat

func (a *Migration) Stat() (fs.FileInfo, error)

func (*Migration) Sys

func (a *Migration) Sys() any

func (*Migration) Type

func (a *Migration) Type() fs.FileMode

Jump to

Keyboard shortcuts

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