mocks

package
v0.0.0-...-6dbca55 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthorizer

type MockAuthorizer struct {
	mock.Mock
}

MockAuthorizer is a mock implementation of the Authorizer interface.

func (*MockAuthorizer) Authorize

func (ma *MockAuthorizer) Authorize(r *http.Request) bool

Authorize is a mock implementation of the Authorizer's Authorize method.

type MockClient

type MockClient struct {
	MockReadDeleter
}

MockClient is a mock implementation of the Client interface.

func (*MockClient) Put

func (mc *MockClient) Put(key string, source io.Reader) error

Put is a mock implementation of the Client's Put method.

type MockReadDeleter

type MockReadDeleter struct {
	mock.Mock
}

MockReadDeleter is a mock implementation of the ReadDeleter interface.

func (*MockReadDeleter) Delete

func (mrd *MockReadDeleter) Delete(key string) error

Delete is a mock implementation of the ReadDeleter's Delete method.

func (*MockReadDeleter) Get

func (mrd *MockReadDeleter) Get(key string) (io.ReadCloser, error)

Get is a mock implementation of the ReadDeleter's Get method.

type MockStorage

type MockStorage struct {
	MockReadDeleter
}

MockStorage is a mock implementation of the Storage interface.

func (*MockStorage) Put

func (ms *MockStorage) Put(key string) (io.WriteCloser, error)

Put is a mock implementation of the Storage's Put method.

Jump to

Keyboard shortcuts

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