Documentation ¶
Index ¶
- type AuthPeerConn
- func (_m *AuthPeerConn) AddStateURI(stateURI string)
- func (_m *AuthPeerConn) Addresses() types.Set[types.Address]
- func (_m *AuthPeerConn) ChallengeIdentity(challengeMsg protoauth.ChallengeMsg) error
- func (_m *AuthPeerConn) Close() error
- func (_m *AuthPeerConn) DeviceUniqueID() string
- func (_m *AuthPeerConn) DialInfo() swarm.PeerDialInfo
- func (_m *AuthPeerConn) Dialable() bool
- func (_m *AuthPeerConn) Endpoint(dialInfo swarm.PeerDialInfo) (swarm.PeerEndpoint, bool)
- func (_m *AuthPeerConn) Endpoints() map[swarm.PeerDialInfo]swarm.PeerEndpoint
- func (_m *AuthPeerConn) EnsureConnected(ctx context.Context) error
- func (_m *AuthPeerConn) Failures() uint64
- func (_m *AuthPeerConn) LastContact() time.Time
- func (_m *AuthPeerConn) LastFailure() time.Time
- func (_m *AuthPeerConn) PublicKeys(addr types.Address) (*crypto.SigningPublicKey, *crypto.AsymEncPubkey)
- func (_m *AuthPeerConn) Ready() bool
- func (_m *AuthPeerConn) ReceiveChallengeIdentityResponse() ([]protoauth.ChallengeIdentityResponse, error)
- func (_m *AuthPeerConn) RemainingBackoff() time.Duration
- func (_m *AuthPeerConn) RemoveStateURI(stateURI string)
- func (_m *AuthPeerConn) RespondChallengeIdentity(verifyAddressResponse []protoauth.ChallengeIdentityResponse) error
- func (_m *AuthPeerConn) SetDeviceUniqueID(id string)
- func (_m *AuthPeerConn) StateURIs() types.Set[string]
- func (_m *AuthPeerConn) Transport() swarm.Transport
- func (_m *AuthPeerConn) UpdateConnStats(success bool)
- type AuthProtocol
- func (_m *AuthProtocol) Autoclose()
- func (_m *AuthProtocol) AutocloseWithCleanup(closeFn func())
- func (_m *AuthProtocol) ChallengePeerIdentity(ctx context.Context, peerConn protoauth.AuthPeerConn) error
- func (_m *AuthProtocol) Close() error
- func (_m *AuthProtocol) Ctx() context.Context
- func (_m *AuthProtocol) Done() <-chan struct{}
- func (_m *AuthProtocol) Go(ctx context.Context, name string, fn func(context.Context)) <-chan struct{}
- func (_m *AuthProtocol) Name() string
- func (_m *AuthProtocol) NewChild(ctx context.Context, name string) *process.Process
- func (_m *AuthProtocol) ProcessTree() map[string]interface{}
- func (_m *AuthProtocol) SpawnChild(ctx context.Context, child process.Spawnable) error
- func (_m *AuthProtocol) Start() error
- func (_m *AuthProtocol) State() process.State
- type AuthTransport
- func (_m *AuthTransport) Autoclose()
- func (_m *AuthTransport) AutocloseWithCleanup(closeFn func())
- func (_m *AuthTransport) Close() error
- func (_m *AuthTransport) Ctx() context.Context
- func (_m *AuthTransport) Done() <-chan struct{}
- func (_m *AuthTransport) Go(ctx context.Context, name string, fn func(context.Context)) <-chan struct{}
- func (_m *AuthTransport) Name() string
- func (_m *AuthTransport) NewChild(ctx context.Context, name string) *process.Process
- func (_m *AuthTransport) NewPeerConn(ctx context.Context, dialAddr string) (swarm.PeerConn, error)
- func (_m *AuthTransport) OnChallengeIdentity(handler protoauth.ChallengeIdentityCallback)
- func (_m *AuthTransport) ProcessTree() map[string]interface{}
- func (_m *AuthTransport) SpawnChild(ctx context.Context, child process.Spawnable) error
- func (_m *AuthTransport) Start() error
- func (_m *AuthTransport) State() process.State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthPeerConn ¶
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 ¶
func (_m *AuthPeerConn) PublicKeys(addr types.Address) (*crypto.SigningPublicKey, *crypto.AsymEncPubkey)
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 ¶
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) ProcessTree ¶
func (_m *AuthProtocol) ProcessTree() map[string]interface{}
ProcessTree provides a mock function with given fields:
func (*AuthProtocol) SpawnChild ¶
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 ¶
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) NewPeerConn ¶
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 ¶
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: