fs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Implementation to handle events from FS

func NewHandler

func NewHandler(textileClient tc.Client, bucketRoot *tc.TextileBucketRoot) *Handler

Creates a New File System Handler // TODO define what is needed as options like push notifications, etc

func (*Handler) OnCreate

func (h *Handler) OnCreate(ctx context.Context, path string, fileInfo os.FileInfo)

func (*Handler) OnMove

func (h *Handler) OnMove(ctx context.Context, path string, fileInfo os.FileInfo, oldPath string)

func (*Handler) OnRemove

func (h *Handler) OnRemove(ctx context.Context, path string, fileInfo os.FileInfo)

func (*Handler) OnRename

func (h *Handler) OnRename(ctx context.Context, path string, fileInfo os.FileInfo, oldPath string)

func (*Handler) OnWrite

func (h *Handler) OnWrite(ctx context.Context, path string, fileInfo os.FileInfo)

OnWrite is invoked when a new file is created or files content is updated

Jump to

Keyboard shortcuts

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