afs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CREATE_FPERM fs.FileMode = 0600
)

Variables

View Source
var (
	ErrNotStatCapable = errors.New("not stat capable")
)

Functions

This section is empty.

Types

type File

type File = billy.File

type Filesystem

type Filesystem interface {
	billy.Filesystem

	// Create creates the named file with mode 0600 (before umask), truncating
	// it if it already exists. If successful, methods on the returned File can
	// be used for I/O; the associated file descriptor has mode O_RDWR.
	Create(filename string) (File, error)

	Absolute(path string) (string, error)
}

Filesystem is the base interface implemented by all filesystems (OS, in-memory, meta, ...).

func AddAbsoluteFeature

func AddAbsoluteFeature(fls billy.Filesystem, absolute func(path string) (string, error)) Filesystem

type OsFS

type OsFS interface {
	OsFs()
}

OsFS should be implemented by Filesytem implementations that write to the OS filesystem.

type StatCapable

type StatCapable interface {
	billy.File
	Stat() (os.FileInfo, error)
}

type SyncCapable

type SyncCapable interface {
	billy.File
	Sync() error
}

Jump to

Keyboard shortcuts

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