storage

package
v0.0.0-...-15592ba Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectReader

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

ObjectReader implements io.ReadCloser and io.ReadSeeker for reading a Cloud Storage object.

func NewObjectReader

func NewObjectReader(ctx context.Context, bucket, name string) (*ObjectReader, error)

func (*ObjectReader) Close

func (or *ObjectReader) Close() error

func (*ObjectReader) LastMod

func (or *ObjectReader) LastMod() time.Time

LastMod returns the object's last-modified time.

func (*ObjectReader) Name

func (or *ObjectReader) Name() string

Name returns the object's name within its bucket.

func (*ObjectReader) Read

func (or *ObjectReader) Read(buf []byte) (int, error)

func (*ObjectReader) Seek

func (or *ObjectReader) Seek(offset int64, whence int) (int64, error)

func (*ObjectReader) Size

func (or *ObjectReader) Size() int64

Size returns the object's full size in bytes.

Jump to

Keyboard shortcuts

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