s3f

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package s3f provides archive interface for S3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(dir string, files []string) (err error)

func List

func List(dir string) (files []string, err error)

Types

type S3Archive

type S3Archive struct {
	common.BasicArchive
	// contains filtered or unexported fields
}

func NewArchive

func NewArchive(outDir, prefix, extension string, options ...func(*common.BasicArchive) error) (rf *S3Archive, err error)

NewArchive creates a new recorder file (for writing). The caller must call `rf.Close()` on the resulting handle to close out the file. File is uploaded to s3 after it is flushed to disk and file is closed. `*S3Archive` returned is an io.Writer

func OpenArchive

func OpenArchive(fileName string, bufferSize int) (rf *S3Archive, err error)

OpenArchive opens an archive file for reading. `*S3Archive` returned is an io.Reader

Jump to

Keyboard shortcuts

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