s3seek

package
v0.0.0-...-19f838f Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package s3seek provides a seekable io.Reader to an S3 object.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadSeekCloser

type ReadSeekCloser interface {
	io.ReadCloser
	io.Seeker
}

ReadSeekCloser implements io.Reader, io.Seeker and io.Closer.

func New

func New(c *s3.S3, path string, goi *s3.GetObjectInput) (ReadSeekCloser, error)

New returns a io.ReadSeeker. If goi is nil then just the path is used and must contain the bucket prefix and the object (key) path; any s3:// prefix is optional. If goi is non nil, path will be ignored and the goi will be used to determine the bucket and key and to set any additional options.

Jump to

Keyboard shortcuts

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