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

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