Documentation ¶
Index ¶
- type GCS
- func (_m *GCS) EXPECT() *GCS_Expecter
- func (_m *GCS) GetObjectMetadata(ctx context.Context, bName string, oName string) (map[string]string, error)
- func (_m *GCS) GetObjectReader(ctx context.Context, bName string, oName string) (io.ReadCloser, error)
- func (_m *GCS) ParseEvent() (string, string, error)
- type GCS_Expecter
- func (_e *GCS_Expecter) GetObjectMetadata(ctx interface{}, bName interface{}, oName interface{}) *GCS_GetObjectMetadata_Call
- func (_e *GCS_Expecter) GetObjectReader(ctx interface{}, bName interface{}, oName interface{}) *GCS_GetObjectReader_Call
- func (_e *GCS_Expecter) ParseEvent() *GCS_ParseEvent_Call
- type GCS_GetObjectMetadata_Call
- func (_c *GCS_GetObjectMetadata_Call) Return(_a0 map[string]string, _a1 error) *GCS_GetObjectMetadata_Call
- func (_c *GCS_GetObjectMetadata_Call) Run(run func(ctx context.Context, bName string, oName string)) *GCS_GetObjectMetadata_Call
- func (_c *GCS_GetObjectMetadata_Call) RunAndReturn(run func(context.Context, string, string) (map[string]string, error)) *GCS_GetObjectMetadata_Call
- type GCS_GetObjectReader_Call
- func (_c *GCS_GetObjectReader_Call) Return(_a0 io.ReadCloser, _a1 error) *GCS_GetObjectReader_Call
- func (_c *GCS_GetObjectReader_Call) Run(run func(ctx context.Context, bName string, oName string)) *GCS_GetObjectReader_Call
- func (_c *GCS_GetObjectReader_Call) RunAndReturn(run func(context.Context, string, string) (io.ReadCloser, error)) *GCS_GetObjectReader_Call
- type GCS_ParseEvent_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCS ¶
GCS is an autogenerated mock type for the GCS type
func NewGCS ¶
NewGCS creates a new instance of GCS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GCS) EXPECT ¶
func (_m *GCS) EXPECT() *GCS_Expecter
func (*GCS) GetObjectMetadata ¶
func (_m *GCS) GetObjectMetadata(ctx context.Context, bName string, oName string) (map[string]string, error)
GetObjectMetadata provides a mock function with given fields: ctx, bName, oName
func (*GCS) GetObjectReader ¶
func (_m *GCS) GetObjectReader(ctx context.Context, bName string, oName string) (io.ReadCloser, error)
GetObjectReader provides a mock function with given fields: ctx, bName, oName
type GCS_Expecter ¶
type GCS_Expecter struct {
// contains filtered or unexported fields
}
func (*GCS_Expecter) GetObjectMetadata ¶
func (_e *GCS_Expecter) GetObjectMetadata(ctx interface{}, bName interface{}, oName interface{}) *GCS_GetObjectMetadata_Call
GetObjectMetadata is a helper method to define mock.On call
- ctx context.Context
- bName string
- oName string
func (*GCS_Expecter) GetObjectReader ¶
func (_e *GCS_Expecter) GetObjectReader(ctx interface{}, bName interface{}, oName interface{}) *GCS_GetObjectReader_Call
GetObjectReader is a helper method to define mock.On call
- ctx context.Context
- bName string
- oName string
func (*GCS_Expecter) ParseEvent ¶
func (_e *GCS_Expecter) ParseEvent() *GCS_ParseEvent_Call
ParseEvent is a helper method to define mock.On call
type GCS_GetObjectMetadata_Call ¶
GCS_GetObjectMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetObjectMetadata'
func (*GCS_GetObjectMetadata_Call) Return ¶
func (_c *GCS_GetObjectMetadata_Call) Return(_a0 map[string]string, _a1 error) *GCS_GetObjectMetadata_Call
func (*GCS_GetObjectMetadata_Call) Run ¶
func (_c *GCS_GetObjectMetadata_Call) Run(run func(ctx context.Context, bName string, oName string)) *GCS_GetObjectMetadata_Call
func (*GCS_GetObjectMetadata_Call) RunAndReturn ¶
func (_c *GCS_GetObjectMetadata_Call) RunAndReturn(run func(context.Context, string, string) (map[string]string, error)) *GCS_GetObjectMetadata_Call
type GCS_GetObjectReader_Call ¶
GCS_GetObjectReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetObjectReader'
func (*GCS_GetObjectReader_Call) Return ¶
func (_c *GCS_GetObjectReader_Call) Return(_a0 io.ReadCloser, _a1 error) *GCS_GetObjectReader_Call
func (*GCS_GetObjectReader_Call) Run ¶
func (_c *GCS_GetObjectReader_Call) Run(run func(ctx context.Context, bName string, oName string)) *GCS_GetObjectReader_Call
func (*GCS_GetObjectReader_Call) RunAndReturn ¶
func (_c *GCS_GetObjectReader_Call) RunAndReturn(run func(context.Context, string, string) (io.ReadCloser, error)) *GCS_GetObjectReader_Call
type GCS_ParseEvent_Call ¶
GCS_ParseEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseEvent'
func (*GCS_ParseEvent_Call) Return ¶
func (_c *GCS_ParseEvent_Call) Return(_a0 string, _a1 string, _a2 error) *GCS_ParseEvent_Call
func (*GCS_ParseEvent_Call) Run ¶
func (_c *GCS_ParseEvent_Call) Run(run func()) *GCS_ParseEvent_Call
func (*GCS_ParseEvent_Call) RunAndReturn ¶
func (_c *GCS_ParseEvent_Call) RunAndReturn(run func() (string, string, error)) *GCS_ParseEvent_Call