fs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package fs provides the file system access.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct{}

func (*FileSystem) Create

func (*FileSystem) Create(name string) (io.WriteCloser, error)

func (*FileSystem) MkdirAll

func (*FileSystem) MkdirAll(path string) error

func (*FileSystem) Open

func (*FileSystem) Open(name string) (io.ReadCloser, error)

func (*FileSystem) Remove

func (*FileSystem) Remove(name string) error

func (*FileSystem) Stat

func (*FileSystem) Stat(name string) (os.FileInfo, error)

type Interface

type Interface interface {
	Open(name string) (io.ReadCloser, error)
	Create(name string) (io.WriteCloser, error)
	Remove(name string) error
	Stat(name string) (os.FileInfo, error)
	MkdirAll(path string) error
}

Directories

Path Synopsis
Package mock_fs is a generated GoMock package.
Package mock_fs is a generated GoMock package.

Jump to

Keyboard shortcuts

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