files

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpaceFilesHandler

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

Wrapper around space files read and write logic. On close, it pushes changes to space.Service

func OpenSpaceFilesHandler

func OpenSpaceFilesHandler(
	service space.Service,
	localFilePath,
	remoteFilePath,
	bucketName string,
) (*SpaceFilesHandler, error)

func (*SpaceFilesHandler) Close

func (s *SpaceFilesHandler) Close(ctx context.Context) error

func (*SpaceFilesHandler) Read

func (s *SpaceFilesHandler) Read(ctx context.Context, b []byte, offset int64) (int, error)

func (*SpaceFilesHandler) Write

func (s *SpaceFilesHandler) Write(ctx context.Context, b []byte, offset int64) (int, error)

Jump to

Keyboard shortcuts

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