mocks

package
v0.0.0-...-2c4dd60 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 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 AuthPeerConn

type AuthPeerConn struct {
	mock.Mock
}

AuthPeerConn is an autogenerated mock type for the AuthPeerConn type

func NewAuthPeerConn

func NewAuthPeerConn(t mockConstructorTestingTNewAuthPeerConn) *AuthPeerConn

NewAuthPeerConn creates a new instance of AuthPeerConn. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AuthPeerConn) AddStateURI

func (_m *AuthPeerConn) AddStateURI(stateURI string)

AddStateURI provides a mock function with given fields: stateURI

func (*AuthPeerConn) Addresses

func (_m *AuthPeerConn) Addresses() types.Set[types.Address]

Addresses provides a mock function with given fields:

func (*AuthPeerConn) ChallengeIdentity

func (_m *AuthPeerConn) ChallengeIdentity(challengeMsg protoauth.ChallengeMsg) error

ChallengeIdentity provides a mock function with given fields: challengeMsg

func (*AuthPeerConn) Close

func (_m *AuthPeerConn) Close() error

Close provides a mock function with given fields:

func (*AuthPeerConn) DeviceUniqueID

func (_m *AuthPeerConn) DeviceUniqueID() string

DeviceUniqueID provides a mock function with given fields:

func (*AuthPeerConn) DialInfo

func (_m *AuthPeerConn) DialInfo() swarm.PeerDialInfo

DialInfo provides a mock function with given fields:

func (*AuthPeerConn) Dialable

func (_m *AuthPeerConn) Dialable() bool

Dialable provides a mock function with given fields:

func (*AuthPeerConn) Endpoint

func (_m *AuthPeerConn) Endpoint(dialInfo swarm.PeerDialInfo) (swarm.PeerEndpoint, bool)

Endpoint provides a mock function with given fields: dialInfo

func (*AuthPeerConn) Endpoints

func (_m *AuthPeerConn) Endpoints() map[swarm.PeerDialInfo]swarm.PeerEndpoint

Endpoints provides a mock function with given fields:

func (*AuthPeerConn) EnsureConnected

func (_m *AuthPeerConn) EnsureConnected(ctx context.Context) error

EnsureConnected provides a mock function with given fields: ctx

func (*AuthPeerConn) Failures

func (_m *AuthPeerConn) Failures() uint64

Failures provides a mock function with given fields:

func (*AuthPeerConn) LastContact

func (_m *AuthPeerConn) LastContact() time.Time

LastContact provides a mock function with given fields:

func (*AuthPeerConn) LastFailure

func (_m *AuthPeerConn) LastFailure() time.Time

LastFailure provides a mock function with given fields:

func (*AuthPeerConn) PublicKeys

PublicKeys provides a mock function with given fields: addr

func (*AuthPeerConn) Ready

func (_m *AuthPeerConn) Ready() bool

Ready provides a mock function with given fields:

func (*AuthPeerConn) ReceiveChallengeIdentityResponse

func (_m *AuthPeerConn) ReceiveChallengeIdentityResponse() ([]protoauth.ChallengeIdentityResponse, error)

ReceiveChallengeIdentityResponse provides a mock function with given fields:

func (*AuthPeerConn) RemainingBackoff

func (_m *AuthPeerConn) RemainingBackoff() time.Duration

RemainingBackoff provides a mock function with given fields:

func (*AuthPeerConn) RemoveStateURI

func (_m *AuthPeerConn) RemoveStateURI(stateURI string)

RemoveStateURI provides a mock function with given fields: stateURI

func (*AuthPeerConn) RespondChallengeIdentity

func (_m *AuthPeerConn) RespondChallengeIdentity(verifyAddressResponse []protoauth.ChallengeIdentityResponse) error

RespondChallengeIdentity provides a mock function with given fields: verifyAddressResponse

func (*AuthPeerConn) SetDeviceUniqueID

func (_m *AuthPeerConn) SetDeviceUniqueID(id string)

SetDeviceUniqueID provides a mock function with given fields: id

func (*AuthPeerConn) StateURIs

func (_m *AuthPeerConn) StateURIs() types.Set[string]

StateURIs provides a mock function with given fields:

func (*AuthPeerConn) Transport

func (_m *AuthPeerConn) Transport() swarm.Transport

Transport provides a mock function with given fields:

func (*AuthPeerConn) UpdateConnStats

func (_m *AuthPeerConn) UpdateConnStats(success bool)

UpdateConnStats provides a mock function with given fields: success

type AuthProtocol

type AuthProtocol struct {
	mock.Mock
}

AuthProtocol is an autogenerated mock type for the AuthProtocol type

func NewAuthProtocol

func NewAuthProtocol(t mockConstructorTestingTNewAuthProtocol) *AuthProtocol

NewAuthProtocol creates a new instance of AuthProtocol. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AuthProtocol) Autoclose

func (_m *AuthProtocol) Autoclose()

Autoclose provides a mock function with given fields:

func (*AuthProtocol) AutocloseWithCleanup

func (_m *AuthProtocol) AutocloseWithCleanup(closeFn func())

AutocloseWithCleanup provides a mock function with given fields: closeFn

func (*AuthProtocol) ChallengePeerIdentity

func (_m *AuthProtocol) ChallengePeerIdentity(ctx context.Context, peerConn protoauth.AuthPeerConn) error

ChallengePeerIdentity provides a mock function with given fields: ctx, peerConn

func (*AuthProtocol) Close

func (_m *AuthProtocol) Close() error

Close provides a mock function with given fields:

func (*AuthProtocol) Ctx

func (_m *AuthProtocol) Ctx() context.Context

Ctx provides a mock function with given fields:

func (*AuthProtocol) Done

func (_m *AuthProtocol) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*AuthProtocol) Go

func (_m *AuthProtocol) Go(ctx context.Context, name string, fn func(context.Context)) <-chan struct{}

Go provides a mock function with given fields: ctx, name, fn

func (*AuthProtocol) Name

func (_m *AuthProtocol) Name() string

Name provides a mock function with given fields:

func (*AuthProtocol) NewChild

func (_m *AuthProtocol) NewChild(ctx context.Context, name string) *process.Process

NewChild provides a mock function with given fields: ctx, name

func (*AuthProtocol) ProcessTree

func (_m *AuthProtocol) ProcessTree() map[string]interface{}

ProcessTree provides a mock function with given fields:

func (*AuthProtocol) SpawnChild

func (_m *AuthProtocol) SpawnChild(ctx context.Context, child process.Spawnable) error

SpawnChild provides a mock function with given fields: ctx, child

func (*AuthProtocol) Start

func (_m *AuthProtocol) Start() error

Start provides a mock function with given fields:

func (*AuthProtocol) State

func (_m *AuthProtocol) State() process.State

State provides a mock function with given fields:

type AuthTransport

type AuthTransport struct {
	mock.Mock
}

AuthTransport is an autogenerated mock type for the AuthTransport type

func NewAuthTransport

func NewAuthTransport(t mockConstructorTestingTNewAuthTransport) *AuthTransport

NewAuthTransport creates a new instance of AuthTransport. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AuthTransport) Autoclose

func (_m *AuthTransport) Autoclose()

Autoclose provides a mock function with given fields:

func (*AuthTransport) AutocloseWithCleanup

func (_m *AuthTransport) AutocloseWithCleanup(closeFn func())

AutocloseWithCleanup provides a mock function with given fields: closeFn

func (*AuthTransport) Close

func (_m *AuthTransport) Close() error

Close provides a mock function with given fields:

func (*AuthTransport) Ctx

func (_m *AuthTransport) Ctx() context.Context

Ctx provides a mock function with given fields:

func (*AuthTransport) Done

func (_m *AuthTransport) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*AuthTransport) Go

func (_m *AuthTransport) Go(ctx context.Context, name string, fn func(context.Context)) <-chan struct{}

Go provides a mock function with given fields: ctx, name, fn

func (*AuthTransport) Name

func (_m *AuthTransport) Name() string

Name provides a mock function with given fields:

func (*AuthTransport) NewChild

func (_m *AuthTransport) NewChild(ctx context.Context, name string) *process.Process

NewChild provides a mock function with given fields: ctx, name

func (*AuthTransport) NewPeerConn

func (_m *AuthTransport) NewPeerConn(ctx context.Context, dialAddr string) (swarm.PeerConn, error)

NewPeerConn provides a mock function with given fields: ctx, dialAddr

func (*AuthTransport) OnChallengeIdentity

func (_m *AuthTransport) OnChallengeIdentity(handler protoauth.ChallengeIdentityCallback)

OnChallengeIdentity provides a mock function with given fields: handler

func (*AuthTransport) ProcessTree

func (_m *AuthTransport) ProcessTree() map[string]interface{}

ProcessTree provides a mock function with given fields:

func (*AuthTransport) SpawnChild

func (_m *AuthTransport) SpawnChild(ctx context.Context, child process.Spawnable) error

SpawnChild provides a mock function with given fields: ctx, child

func (*AuthTransport) Start

func (_m *AuthTransport) Start() error

Start provides a mock function with given fields:

func (*AuthTransport) State

func (_m *AuthTransport) State() process.State

State provides a mock function with given fields:

Jump to

Keyboard shortcuts

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