objectranger

package
v1.85.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new object ranger.

Types

type ObjectRanger

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

ObjectRanger holds all the data needed to make object downloadable.

func (*ObjectRanger) Range

func (ranger *ObjectRanger) Range(ctx context.Context, offset, length int64) (_ io.ReadCloser, err error)

Range returns object read/close interface.

func (*ObjectRanger) Size

func (ranger *ObjectRanger) Size() int64

Size returns object size.

Jump to

Keyboard shortcuts

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