gappfs

package module
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 3 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gapp-fs

Documentation

Index

Constants

View Source
const (
	// ContainerID defines the gapp/fs package container service id base
	// string.
	ContainerID = gapp.ContainerID + ".fs"
)

Variables

View Source
var (
	// ErrNilPointer defines a nil pointer argument error
	ErrNilPointer = gapp.ErrNilPointer

	// ErrConversion defines a type conversion error
	ErrConversion = gapp.ErrConversion
)

Functions

func GetFileSystem added in v1.3.2

func GetFileSystem(c gapp.ServiceContainer) (afero.Fs, error)

GetFileSystem wii try to retrieve the registered file system adapter from the application service container.

Types

type Provider added in v1.1.0

type Provider struct{}

Provider defines the gapp/fs module service provider to be used on the application initialization to register the file system adapter service.

func (Provider) Boot added in v1.1.0

Boot (no-op).

func (Provider) Register added in v1.1.0

func (Provider) Register(c gapp.ServiceContainer) error

Register will add to the container a new file system adapter instance.

Jump to

Keyboard shortcuts

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