mocks

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	mock.Mock
}

Peer is an autogenerated mock type for the Peer type

func NewPeer

func NewPeer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Peer

NewPeer creates a new instance of Peer. 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 (*Peer) Done

func (_m *Peer) Done(c context.Context, id string, state rpc.State) error

Done provides a mock function with given fields: c, id, state

func (*Peer) Extend

func (_m *Peer) Extend(c context.Context, id string) error

Extend provides a mock function with given fields: c, id

func (*Peer) Init

func (_m *Peer) Init(c context.Context, id string, state rpc.State) error

Init provides a mock function with given fields: c, id, state

func (*Peer) Log

func (_m *Peer) Log(c context.Context, logEntry *rpc.LogEntry) error

Log provides a mock function with given fields: c, logEntry

func (*Peer) Next

func (_m *Peer) Next(c context.Context, f rpc.Filter) (*rpc.Workflow, error)

Next provides a mock function with given fields: c, f

func (*Peer) RegisterAgent

func (_m *Peer) RegisterAgent(ctx context.Context, platform string, backend string, version string, capacity int) (int64, error)

RegisterAgent provides a mock function with given fields: ctx, platform, backend, version, capacity

func (*Peer) ReportHealth

func (_m *Peer) ReportHealth(c context.Context) error

ReportHealth provides a mock function with given fields: c

func (*Peer) UnregisterAgent

func (_m *Peer) UnregisterAgent(ctx context.Context) error

UnregisterAgent provides a mock function with given fields: ctx

func (*Peer) Update

func (_m *Peer) Update(c context.Context, id string, state rpc.State) error

Update provides a mock function with given fields: c, id, state

func (*Peer) Version

func (_m *Peer) Version(c context.Context) (*rpc.Version, error)

Version provides a mock function with given fields: c

func (*Peer) Wait

func (_m *Peer) Wait(c context.Context, id string) error

Wait provides a mock function with given fields: c, id

Jump to

Keyboard shortcuts

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