Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorageClient ¶
func NewStorageClient(buckets []string, storage *map[string]map[string][]byte) ifaces_gcloud_storage.StorageClient
Types ¶
type MockBucketHandle ¶
type MockBucketHandle struct { ifaces_gcloud_storage.BucketHandle // contains filtered or unexported fields }
func (*MockBucketHandle) Object ¶
func (s *MockBucketHandle) Object(name string) ifaces_gcloud_storage.ObjectHandle
type MockBucketIterator ¶
type MockBucketIterator struct { ifaces_gcloud_storage.BucketIterator // contains filtered or unexported fields }
func (*MockBucketIterator) Next ¶
func (s *MockBucketIterator) Next() (*storage.BucketAttrs, error)
type MockObjectHandle ¶
type MockObjectHandle struct {
// contains filtered or unexported fields
}
func (*MockObjectHandle) NewReader ¶
func (s *MockObjectHandle) NewReader(ctx context.Context) (ifaces_gcloud_storage.Reader, error)
func (*MockObjectHandle) NewWriter ¶
func (s *MockObjectHandle) NewWriter(ctx context.Context) ifaces_gcloud_storage.Writer
type MockStorageClient ¶
type MockStorageClient struct { ifaces_gcloud_storage.StorageClient // contains filtered or unexported fields }
func (*MockStorageClient) Bucket ¶
func (s *MockStorageClient) Bucket(name string) ifaces_gcloud_storage.BucketHandle
func (*MockStorageClient) Buckets ¶
func (s *MockStorageClient) Buckets(ctx context.Context, projectID string) ifaces_gcloud_storage.BucketIterator
type MockWriter ¶
type MockWriter struct {
// contains filtered or unexported fields
}
func (*MockWriter) Close ¶
func (s *MockWriter) Close() error
Click to show internal directories.
Click to hide internal directories.