mocks

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.10.10

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) DefaultHTTPTimeout added in v0.10.11

func (_m *Config) DefaultHTTPTimeout() models.Duration

DefaultHTTPTimeout provides a mock function with given fields:

func (*Config) Dev added in v0.10.11

func (_m *Config) Dev() bool

Dev provides a mock function with given fields:

func (*Config) FeatureOffchainReporting added in v0.10.11

func (_m *Config) FeatureOffchainReporting() bool

FeatureOffchainReporting provides a mock function with given fields:

func (*Config) LogSQL added in v1.1.0

func (_m *Config) LogSQL() bool

LogSQL provides a mock function with given fields:

func (*Config) OCRBlockchainTimeout added in v0.10.11

func (_m *Config) OCRBlockchainTimeout() time.Duration

OCRBlockchainTimeout provides a mock function with given fields:

func (*Config) OCRContractConfirmations added in v0.10.11

func (_m *Config) OCRContractConfirmations() uint16

OCRContractConfirmations provides a mock function with given fields:

func (*Config) OCRContractPollInterval added in v0.10.11

func (_m *Config) OCRContractPollInterval() time.Duration

OCRContractPollInterval provides a mock function with given fields:

func (*Config) OCRContractSubscribeInterval added in v0.10.11

func (_m *Config) OCRContractSubscribeInterval() time.Duration

OCRContractSubscribeInterval provides a mock function with given fields:

func (*Config) OCRContractTransmitterTransmitTimeout added in v0.10.11

func (_m *Config) OCRContractTransmitterTransmitTimeout() time.Duration

OCRContractTransmitterTransmitTimeout provides a mock function with given fields:

func (*Config) OCRDatabaseTimeout added in v0.10.11

func (_m *Config) OCRDatabaseTimeout() time.Duration

OCRDatabaseTimeout provides a mock function with given fields:

func (*Config) OCRObservationGracePeriod added in v0.10.11

func (_m *Config) OCRObservationGracePeriod() time.Duration

OCRObservationGracePeriod provides a mock function with given fields:

func (*Config) OCRObservationTimeout added in v0.10.11

func (_m *Config) OCRObservationTimeout() time.Duration

OCRObservationTimeout provides a mock function with given fields:

type ConnectionsManager added in v1.0.0

type ConnectionsManager struct {
	mock.Mock
}

ConnectionsManager is an autogenerated mock type for the ConnectionsManager type

func (*ConnectionsManager) Close added in v1.0.0

func (_m *ConnectionsManager) Close()

Close provides a mock function with given fields:

func (*ConnectionsManager) Connect added in v1.0.0

func (_m *ConnectionsManager) Connect(opts feeds.ConnectOpts)

Connect provides a mock function with given fields: opts

func (*ConnectionsManager) Disconnect added in v1.0.0

func (_m *ConnectionsManager) Disconnect(id int64) error

Disconnect provides a mock function with given fields: id

func (*ConnectionsManager) GetClient added in v1.0.0

func (_m *ConnectionsManager) GetClient(id int64) (proto.FeedsManagerClient, error)

GetClient provides a mock function with given fields: id

func (*ConnectionsManager) IsConnected added in v1.0.0

func (_m *ConnectionsManager) IsConnected(id int64) bool

IsConnected provides a mock function with given fields: id

type FeedsManagerClient added in v0.10.10

type FeedsManagerClient struct {
	mock.Mock
}

FeedsManagerClient is an autogenerated mock type for the FeedsManagerClient type

func (*FeedsManagerClient) ApprovedJob added in v0.10.10

ApprovedJob provides a mock function with given fields: ctx, in

func (*FeedsManagerClient) CancelledJob added in v1.1.0

CancelledJob provides a mock function with given fields: ctx, in

func (*FeedsManagerClient) RejectedJob added in v0.10.10

RejectedJob provides a mock function with given fields: ctx, in

func (*FeedsManagerClient) UpdateNode added in v0.10.10

UpdateNode provides a mock function with given fields: ctx, in

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func (*ORM) ApproveSpec added in v1.2.0

func (_m *ORM) ApproveSpec(id int64, externalJobID uuid.UUID, qopts ...pg.QOpt) error

ApproveSpec provides a mock function with given fields: id, externalJobID, qopts

func (*ORM) CancelSpec added in v1.2.0

func (_m *ORM) CancelSpec(id int64, qopts ...pg.QOpt) error

CancelSpec provides a mock function with given fields: id, qopts

func (*ORM) CountJobProposals added in v0.10.9

func (_m *ORM) CountJobProposals() (int64, error)

CountJobProposals provides a mock function with given fields:

func (*ORM) CountManagers

func (_m *ORM) CountManagers() (int64, error)

CountManagers provides a mock function with given fields:

func (*ORM) CreateJobProposal added in v0.10.9

func (_m *ORM) CreateJobProposal(jp *feeds.JobProposal) (int64, error)

CreateJobProposal provides a mock function with given fields: jp

func (*ORM) CreateManager

func (_m *ORM) CreateManager(ms *feeds.FeedsManager) (int64, error)

CreateManager provides a mock function with given fields: ms

func (*ORM) CreateSpec added in v1.2.0

func (_m *ORM) CreateSpec(spec feeds.JobProposalSpec, qopts ...pg.QOpt) (int64, error)

CreateSpec provides a mock function with given fields: spec, qopts

func (*ORM) ExistsSpecByJobProposalIDAndVersion added in v1.2.0

func (_m *ORM) ExistsSpecByJobProposalIDAndVersion(jpID int64, version int32, qopts ...pg.QOpt) (bool, error)

ExistsSpecByJobProposalIDAndVersion provides a mock function with given fields: jpID, version, qopts

func (*ORM) GetJobProposal added in v0.10.9

func (_m *ORM) GetJobProposal(id int64, qopts ...pg.QOpt) (*feeds.JobProposal, error)

GetJobProposal provides a mock function with given fields: id, qopts

func (*ORM) GetJobProposalByRemoteUUID added in v1.0.0

func (_m *ORM) GetJobProposalByRemoteUUID(_a0 uuid.UUID) (*feeds.JobProposal, error)

GetJobProposalByRemoteUUID provides a mock function with given fields: _a0

func (*ORM) GetManager

func (_m *ORM) GetManager(id int64) (*feeds.FeedsManager, error)

GetManager provides a mock function with given fields: id

func (*ORM) GetSpec added in v1.2.0

func (_m *ORM) GetSpec(id int64, qopts ...pg.QOpt) (*feeds.JobProposalSpec, error)

GetSpec provides a mock function with given fields: id, qopts

func (*ORM) IsJobManaged added in v1.1.0

func (_m *ORM) IsJobManaged(jobID int64, qopts ...pg.QOpt) (bool, error)

IsJobManaged provides a mock function with given fields: jobID, qopts

func (*ORM) ListJobProposals added in v0.10.9

func (_m *ORM) ListJobProposals() ([]feeds.JobProposal, error)

ListJobProposals provides a mock function with given fields:

func (*ORM) ListJobProposalsByManagersIDs added in v1.2.0

func (_m *ORM) ListJobProposalsByManagersIDs(ids []int64, qopts ...pg.QOpt) ([]feeds.JobProposal, error)

ListJobProposalsByManagersIDs provides a mock function with given fields: ids, qopts

func (*ORM) ListManagers

func (_m *ORM) ListManagers() ([]feeds.FeedsManager, error)

ListManagers provides a mock function with given fields:

func (*ORM) ListManagersByIDs added in v1.2.0

func (_m *ORM) ListManagersByIDs(ids []int64) ([]feeds.FeedsManager, error)

ListManagersByIDs provides a mock function with given fields: ids

func (*ORM) ListSpecsByJobProposalIDs added in v1.2.0

func (_m *ORM) ListSpecsByJobProposalIDs(ids []int64, qopts ...pg.QOpt) ([]feeds.JobProposalSpec, error)

ListSpecsByJobProposalIDs provides a mock function with given fields: ids, qopts

func (*ORM) RejectSpec added in v1.2.0

func (_m *ORM) RejectSpec(id int64, qopts ...pg.QOpt) error

RejectSpec provides a mock function with given fields: id, qopts

func (*ORM) UpdateJobProposalStatus added in v0.10.11

func (_m *ORM) UpdateJobProposalStatus(id int64, status feeds.JobProposalStatus, qopts ...pg.QOpt) error

UpdateJobProposalStatus provides a mock function with given fields: id, status, qopts

func (*ORM) UpdateManager added in v1.0.0

func (_m *ORM) UpdateManager(mgr feeds.FeedsManager, qopts ...pg.QOpt) error

UpdateManager provides a mock function with given fields: mgr, qopts

func (*ORM) UpdateSpecDefinition added in v1.2.0

func (_m *ORM) UpdateSpecDefinition(id int64, spec string, qopts ...pg.QOpt) error

UpdateSpecDefinition provides a mock function with given fields: id, spec, qopts

func (*ORM) UpsertJobProposal added in v1.0.0

func (_m *ORM) UpsertJobProposal(jp *feeds.JobProposal, qopts ...pg.QOpt) (int64, error)

UpsertJobProposal provides a mock function with given fields: jp, qopts

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) ApproveSpec added in v1.2.0

func (_m *Service) ApproveSpec(ctx context.Context, id int64, force bool) error

ApproveSpec provides a mock function with given fields: ctx, id, force

func (*Service) CancelSpec added in v1.2.0

func (_m *Service) CancelSpec(ctx context.Context, id int64) error

CancelSpec provides a mock function with given fields: ctx, id

func (*Service) Close added in v0.10.9

func (_m *Service) Close() error

Close provides a mock function with given fields:

func (*Service) CountManagers

func (_m *Service) CountManagers() (int64, error)

CountManagers provides a mock function with given fields:

func (*Service) GetJobProposal added in v0.10.11

func (_m *Service) GetJobProposal(id int64) (*feeds.JobProposal, error)

GetJobProposal provides a mock function with given fields: id

func (*Service) GetManager

func (_m *Service) GetManager(id int64) (*feeds.FeedsManager, error)

GetManager provides a mock function with given fields: id

func (*Service) GetSpec added in v1.2.0

func (_m *Service) GetSpec(id int64) (*feeds.JobProposalSpec, error)

GetSpec provides a mock function with given fields: id

func (*Service) IsJobManaged added in v1.1.0

func (_m *Service) IsJobManaged(ctx context.Context, jobID int64) (bool, error)

IsJobManaged provides a mock function with given fields: ctx, jobID

func (*Service) ListJobProposals added in v0.10.11

func (_m *Service) ListJobProposals() ([]feeds.JobProposal, error)

ListJobProposals provides a mock function with given fields:

func (*Service) ListJobProposalsByManagersIDs added in v1.2.0

func (_m *Service) ListJobProposalsByManagersIDs(ids []int64) ([]feeds.JobProposal, error)

ListJobProposalsByManagersIDs provides a mock function with given fields: ids

func (*Service) ListManagers

func (_m *Service) ListManagers() ([]feeds.FeedsManager, error)

ListManagers provides a mock function with given fields:

func (*Service) ListManagersByIDs added in v1.2.0

func (_m *Service) ListManagersByIDs(ids []int64) ([]feeds.FeedsManager, error)

ListManagersByIDs provides a mock function with given fields: ids

func (*Service) ListSpecsByJobProposalIDs added in v1.2.0

func (_m *Service) ListSpecsByJobProposalIDs(ids []int64) ([]feeds.JobProposalSpec, error)

ListSpecsByJobProposalIDs provides a mock function with given fields: ids

func (*Service) ProposeJob added in v1.0.0

func (_m *Service) ProposeJob(ctx context.Context, args *feeds.ProposeJobArgs) (int64, error)

ProposeJob provides a mock function with given fields: ctx, args

func (*Service) RegisterManager

func (_m *Service) RegisterManager(ms *feeds.FeedsManager) (int64, error)

RegisterManager provides a mock function with given fields: ms

func (*Service) RejectSpec added in v1.2.0

func (_m *Service) RejectSpec(ctx context.Context, id int64) error

RejectSpec provides a mock function with given fields: ctx, id

func (*Service) Start added in v0.10.9

func (_m *Service) Start() error

Start provides a mock function with given fields:

func (*Service) SyncNodeInfo added in v0.10.10

func (_m *Service) SyncNodeInfo(id int64) error

SyncNodeInfo provides a mock function with given fields: id

func (*Service) Unsafe_SetConnectionsManager added in v1.0.0

func (_m *Service) Unsafe_SetConnectionsManager(_a0 feeds.ConnectionsManager)

Unsafe_SetConnectionsManager provides a mock function with given fields: _a0

func (*Service) UpdateManager added in v1.2.0

func (_m *Service) UpdateManager(ctx context.Context, mgr feeds.FeedsManager) error

UpdateManager provides a mock function with given fields: ctx, mgr

func (*Service) UpdateSpecDefinition added in v1.2.0

func (_m *Service) UpdateSpecDefinition(ctx context.Context, id int64, spec string) error

UpdateSpecDefinition provides a mock function with given fields: ctx, id, spec

Jump to

Keyboard shortcuts

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