object

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadObjectAt added in v1.6.0

func DownloadObjectAt(ctx context.Context, project *uplink.Project, bucket, key string, writer WriterAt, opts *DownloadObjectAtOptions) (err error)

DownloadObjectAt downloads object into specified io.WriterAt.

func GetObjectIPs

func GetObjectIPs(ctx context.Context, config uplink.Config, access *uplink.Access, bucket, key string) (_ [][]byte, err error)

GetObjectIPs returns the IP-s for a given object.

TODO: delete, once we have stopped using it.

Types

type DownloadObjectAtOptions added in v1.6.0

type DownloadObjectAtOptions struct {
	Concurrency int
}

DownloadObjectAtOptions options for DownloadObjectAt.

type IPSummary added in v1.4.6

type IPSummary = metaclient.GetObjectIPsResponse

IPSummary contains information about the object IP-s.

func GetObjectIPSummary added in v1.4.6

func GetObjectIPSummary(ctx context.Context, config uplink.Config, access *uplink.Access, bucket, key string) (_ *IPSummary, err error)

GetObjectIPSummary returns the object IP summary.

type WriterAt added in v1.6.0

type WriterAt interface {
	io.WriterAt

	Truncate(int64) error
}

WriterAt interface for writing data into specific offset. Contains also method to truncate writer to final object size.

Jump to

Keyboard shortcuts

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