mocks

package
v0.0.0-...-5db00e0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given fields:

func (*Client) CreateEvent

func (_m *Client) CreateEvent(ctx context.Context, in *events.Event, opts ...grpc.CallOption) (*events.CreateEventResponse, error)

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

func (*Client) GetNode

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

func (*Client) ListNodes

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

func (*Client) PutNode

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

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func (*Database) DeleteNode

func (_m *Database) DeleteNode(_a0 context.Context, _a1 *scheduler.Node) error

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

func (*Database) ListNodes

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

func (*Database) PutNode

func (_m *Database) PutNode(_a0 context.Context, _a1 *scheduler.Node) (*scheduler.PutNodeResponse, error)

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

func (*Database) QueueTask

func (_m *Database) QueueTask(_a0 *tes.Task) error

QueueTask provides a mock function with given fields: _a0

func (*Database) ReadQueue

func (_m *Database) ReadQueue(_a0 int) []*tes.Task

ReadQueue provides a mock function with given fields: _a0

func (*Database) WriteContext

func (_m *Database) WriteContext(_a0 context.Context, _a1 *events.Event) error

WriteContext 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