ifaces_gcloud_storage

package
v0.17.0-rc.15 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketHandle

type BucketHandle interface {
	Object(string) ObjectHandle
	Objects(context.Context, *storage.Query) ObjectIterator
	SignedURL(string, *storage.SignedURLOptions) (string, error)
}

type BucketIterator

type BucketIterator interface {
	Next() (*storage.BucketAttrs, error)
}

type ObjectHandle

type ObjectHandle interface {
	NewWriter(context.Context) Writer
	NewReader(context.Context) (Reader, error)
	Delete(ctx context.Context) error
}

type ObjectIterator added in v0.16.0

type ObjectIterator interface {
	Next() (*storage.ObjectAttrs, error)
}

type Reader

type Reader interface {
	io.ReadCloser
}

type StorageClient

type StorageClient interface {
	Bucket(string) BucketHandle
	Buckets(context.Context, string) BucketIterator
}

func AdaptStorageClient

func AdaptStorageClient(c *storage.Client) StorageClient

AdaptClientStorageClient wraps a storage.Client so that it satisfies the Client

type Writer

type Writer interface {
	io.WriteCloser
}

Jump to

Keyboard shortcuts

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