sharedstoragemocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks

type Callbacks struct {
	mock.Mock
}

Callbacks is an autogenerated mock type for the Callbacks type

func NewCallbacks added in v1.1.2

func NewCallbacks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Callbacks

NewCallbacks creates a new instance of Callbacks. 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.

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func NewPlugin added in v1.1.2

func NewPlugin(t interface {
	mock.TestingT
	Cleanup(func())
}) *Plugin

NewPlugin creates a new instance of Plugin. 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 (*Plugin) Capabilities

func (_m *Plugin) Capabilities() *sharedstorage.Capabilities

Capabilities provides a mock function with given fields:

func (*Plugin) DownloadData

func (_m *Plugin) DownloadData(ctx context.Context, payloadRef string) (io.ReadCloser, error)

DownloadData provides a mock function with given fields: ctx, payloadRef

func (*Plugin) Init

func (_m *Plugin) Init(ctx context.Context, _a1 config.Section) error

Init provides a mock function with given fields: ctx, _a1

func (*Plugin) InitConfig added in v1.1.0

func (_m *Plugin) InitConfig(_a0 config.Section)

InitConfig provides a mock function with given fields: _a0

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

func (*Plugin) SetHandler added in v1.1.0

func (_m *Plugin) SetHandler(namespace string, handler sharedstorage.Callbacks)

SetHandler provides a mock function with given fields: namespace, handler

func (*Plugin) UploadData

func (_m *Plugin) UploadData(ctx context.Context, data io.Reader) (string, error)

UploadData provides a mock function with given fields: ctx, data

Jump to

Keyboard shortcuts

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