ifaces_gcloud_storage

package
v0.0.0-...-5cd5cfe Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 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
	Attrs(ctx context.Context) (*storage.ObjectAttrs, error)
}

type ObjectIterator

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