bucket

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBucketLocation added in v1.12.0

func GetBucketLocation(ctx context.Context, project *uplink.Project, bucketName string) (_ string, err error)

GetBucketLocation returns bucket location.

Types

type Bucket

type Bucket metaclient.Bucket

Bucket contains information about the bucket.

type Iterator

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

Iterator is an iterator over a collection of buckets.

func ListBucketsWithAttribution

func ListBucketsWithAttribution(ctx context.Context, project *uplink.Project, options *ListBucketsOptions) *Iterator

ListBucketsWithAttribution returns an iterator over the buckets.

func (*Iterator) Err

func (buckets *Iterator) Err() error

Err returns error, if one happened during iteration.

func (*Iterator) Item

func (buckets *Iterator) Item() *Bucket

Item returns the current bucket in the iterator.

func (*Iterator) Next

func (buckets *Iterator) Next() bool

Next prepares next Bucket for reading. It returns false if the end of the iteration is reached and there are no more buckets, or if there is an error.

type ListBucketsOptions

type ListBucketsOptions struct {
	// Cursor sets the starting position of the iterator. The first item listed will be the one after the cursor.
	Cursor string
}

ListBucketsOptions defines bucket listing options.

Jump to

Keyboard shortcuts

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