filesystem

package
v0.0.0-...-57b459a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem interface {
	ReadFile(filepath string) ([]byte, error)
}

FileSystem enables API consumers to persist a consecutive piece of data on the block storage.

type Local

type Local struct {
}

Local saves and reads files from local disk.

func NewLocal

func NewLocal() Local

NewLocal creates Local file system.

func (Local) ReadFile

func (l Local) ReadFile(filepath string) ([]byte, error)

ReadFile reads the content of the given file from local disk.

Jump to

Keyboard shortcuts

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