ifaces_gcloud_storage

package
v0.14.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 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
	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 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