walk

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: BSD-3-Clause Imports: 4 Imported by: 6

Documentation

Overview

package walk provides methods for iterating (walking) over files in a bucket.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkBucket

func WalkBucket(ctx context.Context, bucket *blob.Bucket, cb WalkBucketCallback) error

WalkBucket will crawl 'bucket' and invoke 'cb' for each file (each `blob.ListObject`) it encounters.

Types

type WalkBucketCallback

type WalkBucketCallback func(context.Context, *blob.ListObject) error

WalkBucketCallback is a custom function for processing a `blob.ListObject` instance, used by the `WalkBucket` method.

Jump to

Keyboard shortcuts

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