ifaceS3

package
v8.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Move

func Move(f io.ReadSeeker, sess *session.Session, fromTime, toTime, key, bucket string, fullpathFn, pathFn func(t time.Time) string) error

Types

type ReaderUncompress

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

func NewReaderUncompress

func NewReaderUncompress(sess *session.Session, bucket string) *ReaderUncompress

func (*ReaderUncompress) Close

func (r *ReaderUncompress) Close()

func (*ReaderUncompress) Get

func (r *ReaderUncompress) Get(key string) ([]byte, error)

func (*ReaderUncompress) Read

func (r *ReaderUncompress) Read(b []byte) (int, error)

func (*ReaderUncompress) WriteAt

func (r *ReaderUncompress) WriteAt(b []byte, offset int64) (int, error)

type WriteCompress

type WriteCompress struct {
	RecDone int
	// contains filtered or unexported fields
}

WriteCompress is an structure to create gz files with limits of lines and size

func NewWriteCompress

func NewWriteCompress(path string, fn func(name string, f *os.File) error) (*WriteCompress, error)

NewWriteCompress create a pointer and start the temp file and the gz interface

func (*WriteCompress) Close

func (s *WriteCompress) Close() (err error)

Close the temp file and the gz interface. The gz will be returned to the pool

func (*WriteCompress) WriteFile

func (s *WriteCompress) WriteFile(f *os.FileInfo) (err error)

Write a file in tar

Jump to

Keyboard shortcuts

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