mocks

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader added in v0.48.0

type Downloader struct {
	mock.Mock
}

Downloader is an autogenerated mock type for the Downloader type

func (*Downloader) Download added in v0.48.0

func (_m *Downloader) Download(name string, version string) (string, error)

Download provides a mock function with given fields: name, version

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func (*Logger) Crit

func (_m *Logger) Crit(msg string, ctx ...interface{})

Crit provides a mock function with given fields: msg, ctx

func (*Logger) Debug

func (_m *Logger) Debug(msg string, ctx ...interface{})

Debug provides a mock function with given fields: msg, ctx

func (*Logger) Error

func (_m *Logger) Error(msg string, ctx ...interface{})

Error provides a mock function with given fields: msg, ctx

func (*Logger) FD

func (_m *Logger) FD() io.WriteCloser

FD provides a mock function with given fields:

func (*Logger) Info

func (_m *Logger) Info(msg string, ctx ...interface{})

Info provides a mock function with given fields: msg, ctx

func (*Logger) New

func (_m *Logger) New(ctx ...interface{}) logger.Logger

New provides a mock function with given fields: ctx

func (*Logger) Warn

func (_m *Logger) Warn(msg string, ctx ...interface{})

Warn provides a mock function with given fields: msg, ctx

type Modem added in v0.58.0

type Modem struct {
	mock.Mock
}

Modem is an autogenerated mock type for the Modem type

func (*Modem) AddService added in v0.58.0

func (_m *Modem) AddService(name string, runner service.Service) error

AddService provides a mock function with given fields: name, runner

func (*Modem) Call added in v0.58.0

func (_m *Modem) Call(ctx context.Context, _a1 string, endpoint string, arguments map[string]interface{}, fd string) ([]byte, error)

Call provides a mock function with given fields: ctx, _a1, endpoint, arguments, fd

func (*Modem) Destroy added in v0.58.0

func (_m *Modem) Destroy() error

Destroy provides a mock function with given fields:

func (*Modem) Init added in v0.58.0

func (_m *Modem) Init() error

Init provides a mock function with given fields:

type Service added in v0.63.0

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) Call added in v0.63.0

func (_m *Service) Call(_a0 context.Context, req *v1.CallRequest) (*v1.CallResponse, error)

Call provides a mock function with given fields: _a0, req

func (*Service) Kill added in v0.63.0

func (_m *Service) Kill() error

Kill provides a mock function with given fields:

func (*Service) Run added in v0.63.0

func (_m *Service) Run() error

Run provides a mock function with given fields:

func (*Service) Schemas added in v0.63.0

func (_m *Service) Schemas() map[string]string

Schemas provides a mock function with given fields:

type ServiceClient

type ServiceClient struct {
	mock.Mock
}

ServiceClient is an autogenerated mock type for the ServiceClient type

func (*ServiceClient) Call

func (_m *ServiceClient) Call(ctx context.Context, in *v1.CallRequest, opts ...grpc.CallOption) (*v1.CallResponse, error)

Call provides a mock function with given fields: ctx, in, opts

func (*ServiceClient) Init

func (_m *ServiceClient) Init(ctx context.Context, in *v1.InitRequest, opts ...grpc.CallOption) (*v1.InitResponse, error)

Init provides a mock function with given fields: ctx, in, opts

type ServiceServer

type ServiceServer struct {
	mock.Mock
}

ServiceServer is an autogenerated mock type for the ServiceServer type

func (*ServiceServer) Call

func (_m *ServiceServer) Call(_a0 context.Context, _a1 *v1.CallRequest) (*v1.CallResponse, error)

Call provides a mock function with given fields: _a0, _a1

func (*ServiceServer) Init

func (_m *ServiceServer) Init(_a0 context.Context, _a1 *v1.InitRequest) (*v1.InitResponse, error)

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

Jump to

Keyboard shortcuts

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