local

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalBackend

type LocalBackend struct {
	BasePath string
}

func NewLocalBackend

func NewLocalBackend(basePath string) (LocalBackend, error)

func (LocalBackend) DeleteDir

func (c LocalBackend) DeleteDir(path string) error

func (LocalBackend) DeleteFile

func (c LocalBackend) DeleteFile(path string) error

func (LocalBackend) Exist

func (c LocalBackend) Exist(path string) (bool, error)

func (LocalBackend) ListDir

func (c LocalBackend) ListDir(path string) ([]string, error)

func (LocalBackend) ReadFile

func (c LocalBackend) ReadFile(path string) ([]byte, error)

func (LocalBackend) WriteFile

func (c LocalBackend) WriteFile(path string, value []byte) error

Jump to

Keyboard shortcuts

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