Documentation ¶
Index ¶
- type Client
- func (_m *Client) Close()
- func (_m *Client) CreateEvent(ctx context.Context, in *events.Event, opts ...grpc.CallOption) (*events.CreateEventResponse, error)
- func (_m *Client) GetNode(ctx context.Context, in *protoscheduler.GetNodeRequest, ...) (*protoscheduler.Node, error)
- func (_m *Client) ListNodes(ctx context.Context, in *protoscheduler.ListNodesRequest, ...) (*protoscheduler.ListNodesResponse, error)
- func (_m *Client) PutNode(ctx context.Context, in *protoscheduler.Node, opts ...grpc.CallOption) (*protoscheduler.PutNodeResponse, error)
- type Database
- func (_m *Database) DeleteNode(_a0 context.Context, _a1 *scheduler.Node) error
- func (_m *Database) ListNodes(_a0 context.Context, _a1 *scheduler.ListNodesRequest) (*scheduler.ListNodesResponse, error)
- func (_m *Database) PutNode(_a0 context.Context, _a1 *scheduler.Node) (*scheduler.PutNodeResponse, error)
- func (_m *Database) QueueTask(_a0 *tes.Task) error
- func (_m *Database) ReadQueue(_a0 int) []*tes.Task
- func (_m *Database) WriteContext(_a0 context.Context, _a1 *events.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
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 ¶
func (_m *Client) GetNode(ctx context.Context, in *protoscheduler.GetNodeRequest, opts ...grpc.CallOption) (*protoscheduler.Node, error)
GetNode provides a mock function with given fields: ctx, in, opts
func (*Client) ListNodes ¶
func (_m *Client) ListNodes(ctx context.Context, in *protoscheduler.ListNodesRequest, opts ...grpc.CallOption) (*protoscheduler.ListNodesResponse, error)
ListNodes provides a mock function with given fields: ctx, in, opts
func (*Client) PutNode ¶
func (_m *Client) PutNode(ctx context.Context, in *protoscheduler.Node, opts ...grpc.CallOption) (*protoscheduler.PutNodeResponse, error)
PutNode provides a mock function with given fields: ctx, in, opts
type Database ¶
Database is an autogenerated mock type for the Database type
func (*Database) DeleteNode ¶
DeleteNode provides a mock function with given fields: _a0, _a1
func (*Database) ListNodes ¶
func (_m *Database) ListNodes(_a0 context.Context, _a1 *scheduler.ListNodesRequest) (*scheduler.ListNodesResponse, error)
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
Click to show internal directories.
Click to hide internal directories.