Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { UserHomeDir() (string, error) Create(name string) (commonInterfaces.FileLike, error) }
FileSystem is an interface for a client that interacts with the local file system
func NewClient ¶
func NewClient( userHomeDirFunc UserHomeDirFunc, createFunc CreateFunc, ) Client
NewClient injects the behavioral functions and returns a new FileSystem client configured with them
type ClientGetter ¶
type ClientGetter struct{}
func (*ClientGetter) GetClient ¶
func (clientGetter *ClientGetter) GetClient() Client
type CreateFunc ¶
type CreateFunc func(name string) (commonInterfaces.FileLike, error)
CreateFunc is a function that creates a new file with the given name
Click to show internal directories.
Click to hide internal directories.