mock_gcp_storage

package
v0.16.0-rc.14 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 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 (*MockBucketHandle) SignedURL added in v0.14.0

func (s *MockBucketHandle) SignedURL(object string, opts *storage.SignedURLOptions) (string, error)

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 (*MockObjectHandle) NewWriter

type MockStorageClient

type MockStorageClient struct {
	ifaces_gcloud_storage.StorageClient
	// contains filtered or unexported fields
}

func (*MockStorageClient) Bucket

func (*MockStorageClient) Buckets

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