mock_gcp_storage

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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

type MockObjectHandle

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

func (*MockObjectHandle) Delete

func (s *MockObjectHandle) Delete(ctx context.Context) error

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

func (*MockWriter) Write

func (s *MockWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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