gcszip

package
v0.0.0-...-38b2fb8 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListZipFile

func ListZipFile(ctx context.Context, client *storage.Client, bucketName, zipObjectName string, maxParallelism int, generation int64) ([]*zip.File, *storage.ObjectAttrs, error)

ListZipFile lists zip archive contents from a GCS file. The results can be used for local parallel operationers or to set up distributed processing. For distributed processing, the returned ObjectAttrs.Generation is important to retain, to ensure operations proceed only on the originally listed GCS object. client may be nil, in which case a default client will be instantiated. `generation` may be 0 if unknown.

func OpenFromZip

func OpenFromZip(ctx context.Context, client *storage.Client, oa *storage.ObjectAttrs, zf *zip.File) (io.ReadCloser, error)

func Reopen

func Reopen(ctx context.Context, client *storage.Client, bucket, zipObjectName, zipContainedFileName string, zipObjectGeneration int64) (io.ReadCloser, *zip.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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