Documentation ¶
Index ¶
- func AsRank(np ActiveNode, count member.Index) member.Rank
- func AsSortingRank(np ActiveNode) member.SortingRank
- func AsSortingRankOfStatic(st StaticProfile, enableStartPower bool) member.SortingRank
- func EqualBriefProfiles(p BriefCandidateProfile, o BriefCandidateProfile) bool
- func EqualProfileExtensions(p CandidateProfileExtension, o CandidateProfileExtension) bool
- func EqualStaticProfiles(p StaticProfile, o StaticProfile, extIsRequired bool) bool
- func LessForActiveNodes(vN, oN ActiveNode) bool
- func LessForStaticProfiles(vN, oN StaticProfile, enableStartPower bool) bool
- func ProfileAsRank(np ActiveNode, nc int) member.Rank
- func SortActiveNodes(nodes []ActiveNode)
- func SortStaticProfiles(nodes []StaticProfile, enableStartPower bool)
- type ActiveNode
- type ActiveNodeMock
- func (mmCanIntroduceJoiner *ActiveNodeMock) CanIntroduceJoiner() (b1 bool)
- func (mmCanIntroduceJoiner *ActiveNodeMock) CanIntroduceJoinerAfterCounter() uint64
- func (mmCanIntroduceJoiner *ActiveNodeMock) CanIntroduceJoinerBeforeCounter() uint64
- func (mmGetDeclaredPower *ActiveNodeMock) GetDeclaredPower() (p1 member.Power)
- func (mmGetDeclaredPower *ActiveNodeMock) GetDeclaredPowerAfterCounter() uint64
- func (mmGetDeclaredPower *ActiveNodeMock) GetDeclaredPowerBeforeCounter() uint64
- func (mmGetIndex *ActiveNodeMock) GetIndex() (i1 member.Index)
- func (mmGetIndex *ActiveNodeMock) GetIndexAfterCounter() uint64
- func (mmGetIndex *ActiveNodeMock) GetIndexBeforeCounter() uint64
- func (mmGetNodeID *ActiveNodeMock) GetNodeID() (s1 node.ShortNodeID)
- func (mmGetNodeID *ActiveNodeMock) GetNodeIDAfterCounter() uint64
- func (mmGetNodeID *ActiveNodeMock) GetNodeIDBeforeCounter() uint64
- func (mmGetOpMode *ActiveNodeMock) GetOpMode() (o1 member.OpMode)
- func (mmGetOpMode *ActiveNodeMock) GetOpModeAfterCounter() uint64
- func (mmGetOpMode *ActiveNodeMock) GetOpModeBeforeCounter() uint64
- func (mmGetSignatureVerifier *ActiveNodeMock) GetSignatureVerifier() (s1 cryptkit.SignatureVerifier)
- func (mmGetSignatureVerifier *ActiveNodeMock) GetSignatureVerifierAfterCounter() uint64
- func (mmGetSignatureVerifier *ActiveNodeMock) GetSignatureVerifierBeforeCounter() uint64
- func (mmGetStatic *ActiveNodeMock) GetStatic() (s1 StaticProfile)
- func (mmGetStatic *ActiveNodeMock) GetStaticAfterCounter() uint64
- func (mmGetStatic *ActiveNodeMock) GetStaticBeforeCounter() uint64
- func (mmHasFullProfile *ActiveNodeMock) HasFullProfile() (b1 bool)
- func (mmHasFullProfile *ActiveNodeMock) HasFullProfileAfterCounter() uint64
- func (mmHasFullProfile *ActiveNodeMock) HasFullProfileBeforeCounter() uint64
- func (mmIsJoiner *ActiveNodeMock) IsJoiner() (b1 bool)
- func (mmIsJoiner *ActiveNodeMock) IsJoinerAfterCounter() uint64
- func (mmIsJoiner *ActiveNodeMock) IsJoinerBeforeCounter() uint64
- func (mmIsPowered *ActiveNodeMock) IsPowered() (b1 bool)
- func (mmIsPowered *ActiveNodeMock) IsPoweredAfterCounter() uint64
- func (mmIsPowered *ActiveNodeMock) IsPoweredBeforeCounter() uint64
- func (mmIsStateful *ActiveNodeMock) IsStateful() (b1 bool)
- func (mmIsStateful *ActiveNodeMock) IsStatefulAfterCounter() uint64
- func (mmIsStateful *ActiveNodeMock) IsStatefulBeforeCounter() uint64
- func (mmIsVoter *ActiveNodeMock) IsVoter() (b1 bool)
- func (mmIsVoter *ActiveNodeMock) IsVoterAfterCounter() uint64
- func (mmIsVoter *ActiveNodeMock) IsVoterBeforeCounter() uint64
- func (m *ActiveNodeMock) MinimockCanIntroduceJoinerDone() bool
- func (m *ActiveNodeMock) MinimockCanIntroduceJoinerInspect()
- func (m *ActiveNodeMock) MinimockFinish()
- func (m *ActiveNodeMock) MinimockGetDeclaredPowerDone() bool
- func (m *ActiveNodeMock) MinimockGetDeclaredPowerInspect()
- func (m *ActiveNodeMock) MinimockGetIndexDone() bool
- func (m *ActiveNodeMock) MinimockGetIndexInspect()
- func (m *ActiveNodeMock) MinimockGetNodeIDDone() bool
- func (m *ActiveNodeMock) MinimockGetNodeIDInspect()
- func (m *ActiveNodeMock) MinimockGetOpModeDone() bool
- func (m *ActiveNodeMock) MinimockGetOpModeInspect()
- func (m *ActiveNodeMock) MinimockGetSignatureVerifierDone() bool
- func (m *ActiveNodeMock) MinimockGetSignatureVerifierInspect()
- func (m *ActiveNodeMock) MinimockGetStaticDone() bool
- func (m *ActiveNodeMock) MinimockGetStaticInspect()
- func (m *ActiveNodeMock) MinimockHasFullProfileDone() bool
- func (m *ActiveNodeMock) MinimockHasFullProfileInspect()
- func (m *ActiveNodeMock) MinimockIsJoinerDone() bool
- func (m *ActiveNodeMock) MinimockIsJoinerInspect()
- func (m *ActiveNodeMock) MinimockIsPoweredDone() bool
- func (m *ActiveNodeMock) MinimockIsPoweredInspect()
- func (m *ActiveNodeMock) MinimockIsStatefulDone() bool
- func (m *ActiveNodeMock) MinimockIsStatefulInspect()
- func (m *ActiveNodeMock) MinimockIsVoterDone() bool
- func (m *ActiveNodeMock) MinimockIsVoterInspect()
- func (m *ActiveNodeMock) MinimockWait(timeout mm_time.Duration)
- type ActiveNodeMockCanIntroduceJoinerExpectation
- type ActiveNodeMockCanIntroduceJoinerResults
- type ActiveNodeMockGetDeclaredPowerExpectation
- type ActiveNodeMockGetDeclaredPowerResults
- type ActiveNodeMockGetIndexExpectation
- type ActiveNodeMockGetIndexResults
- type ActiveNodeMockGetNodeIDExpectation
- type ActiveNodeMockGetNodeIDResults
- type ActiveNodeMockGetOpModeExpectation
- type ActiveNodeMockGetOpModeResults
- type ActiveNodeMockGetSignatureVerifierExpectation
- type ActiveNodeMockGetSignatureVerifierResults
- type ActiveNodeMockGetStaticExpectation
- type ActiveNodeMockGetStaticResults
- type ActiveNodeMockHasFullProfileExpectation
- type ActiveNodeMockHasFullProfileResults
- type ActiveNodeMockIsJoinerExpectation
- type ActiveNodeMockIsJoinerResults
- type ActiveNodeMockIsPoweredExpectation
- type ActiveNodeMockIsPoweredResults
- type ActiveNodeMockIsStatefulExpectation
- type ActiveNodeMockIsStatefulResults
- type ActiveNodeMockIsVoterExpectation
- type ActiveNodeMockIsVoterResults
- type BaseNode
- type BaseNodeMock
- func (mmGetNodeID *BaseNodeMock) GetNodeID() (s1 node.ShortNodeID)
- func (mmGetNodeID *BaseNodeMock) GetNodeIDAfterCounter() uint64
- func (mmGetNodeID *BaseNodeMock) GetNodeIDBeforeCounter() uint64
- func (mmGetOpMode *BaseNodeMock) GetOpMode() (o1 member.OpMode)
- func (mmGetOpMode *BaseNodeMock) GetOpModeAfterCounter() uint64
- func (mmGetOpMode *BaseNodeMock) GetOpModeBeforeCounter() uint64
- func (mmGetSignatureVerifier *BaseNodeMock) GetSignatureVerifier() (s1 cryptkit.SignatureVerifier)
- func (mmGetSignatureVerifier *BaseNodeMock) GetSignatureVerifierAfterCounter() uint64
- func (mmGetSignatureVerifier *BaseNodeMock) GetSignatureVerifierBeforeCounter() uint64
- func (mmGetStatic *BaseNodeMock) GetStatic() (s1 StaticProfile)
- func (mmGetStatic *BaseNodeMock) GetStaticAfterCounter() uint64
- func (mmGetStatic *BaseNodeMock) GetStaticBeforeCounter() uint64
- func (m *BaseNodeMock) MinimockFinish()
- func (m *BaseNodeMock) MinimockGetNodeIDDone() bool
- func (m *BaseNodeMock) MinimockGetNodeIDInspect()
- func (m *BaseNodeMock) MinimockGetOpModeDone() bool
- func (m *BaseNodeMock) MinimockGetOpModeInspect()
- func (m *BaseNodeMock) MinimockGetSignatureVerifierDone() bool
- func (m *BaseNodeMock) MinimockGetSignatureVerifierInspect()
- func (m *BaseNodeMock) MinimockGetStaticDone() bool
- func (m *BaseNodeMock) MinimockGetStaticInspect()
- func (m *BaseNodeMock) MinimockWait(timeout mm_time.Duration)
- type BaseNodeMockGetNodeIDExpectation
- type BaseNodeMockGetNodeIDResults
- type BaseNodeMockGetOpModeExpectation
- type BaseNodeMockGetOpModeResults
- type BaseNodeMockGetSignatureVerifierExpectation
- type BaseNodeMockGetSignatureVerifierResults
- type BaseNodeMockGetStaticExpectation
- type BaseNodeMockGetStaticResults
- type BriefCandidateProfile
- type CandidateProfile
- type CandidateProfileExtension
- type CandidateProfileMock
- func (mmGetBriefIntroSignedDigest *CandidateProfileMock) GetBriefIntroSignedDigest() (s1 cryptkit.SignedDigestHolder)
- func (mmGetBriefIntroSignedDigest *CandidateProfileMock) GetBriefIntroSignedDigestAfterCounter() uint64
- func (mmGetBriefIntroSignedDigest *CandidateProfileMock) GetBriefIntroSignedDigestBeforeCounter() uint64
- func (mmGetDefaultEndpoint *CandidateProfileMock) GetDefaultEndpoint() (o1 endpoints.Outbound)
- func (mmGetDefaultEndpoint *CandidateProfileMock) GetDefaultEndpointAfterCounter() uint64
- func (mmGetDefaultEndpoint *CandidateProfileMock) GetDefaultEndpointBeforeCounter() uint64
- func (mmGetExtraEndpoints *CandidateProfileMock) GetExtraEndpoints() (oa1 []endpoints.Outbound)
- func (mmGetExtraEndpoints *CandidateProfileMock) GetExtraEndpointsAfterCounter() uint64
- func (mmGetExtraEndpoints *CandidateProfileMock) GetExtraEndpointsBeforeCounter() uint64
- func (mmGetIssuedAtPulse *CandidateProfileMock) GetIssuedAtPulse() (n1 pulse.Number)
- func (mmGetIssuedAtPulse *CandidateProfileMock) GetIssuedAtPulseAfterCounter() uint64
- func (mmGetIssuedAtPulse *CandidateProfileMock) GetIssuedAtPulseBeforeCounter() uint64
- func (mmGetIssuedAtTime *CandidateProfileMock) GetIssuedAtTime() (t1 time.Time)
- func (mmGetIssuedAtTime *CandidateProfileMock) GetIssuedAtTimeAfterCounter() uint64
- func (mmGetIssuedAtTime *CandidateProfileMock) GetIssuedAtTimeBeforeCounter() uint64
- func (mmGetIssuerID *CandidateProfileMock) GetIssuerID() (s1 node.ShortNodeID)
- func (mmGetIssuerID *CandidateProfileMock) GetIssuerIDAfterCounter() uint64
- func (mmGetIssuerID *CandidateProfileMock) GetIssuerIDBeforeCounter() uint64
- func (mmGetIssuerSignature *CandidateProfileMock) GetIssuerSignature() (s1 cryptkit.SignatureHolder)
- func (mmGetIssuerSignature *CandidateProfileMock) GetIssuerSignatureAfterCounter() uint64
- func (mmGetIssuerSignature *CandidateProfileMock) GetIssuerSignatureBeforeCounter() uint64
- func (mmGetNodePublicKey *CandidateProfileMock) GetNodePublicKey() (s1 cryptkit.SigningKeyHolder)
- func (mmGetNodePublicKey *CandidateProfileMock) GetNodePublicKeyAfterCounter() uint64
- func (mmGetNodePublicKey *CandidateProfileMock) GetNodePublicKeyBeforeCounter() uint64
- func (mmGetPowerLevels *CandidateProfileMock) GetPowerLevels() (p1 member.PowerSet)
- func (mmGetPowerLevels *CandidateProfileMock) GetPowerLevelsAfterCounter() uint64
- func (mmGetPowerLevels *CandidateProfileMock) GetPowerLevelsBeforeCounter() uint64
- func (mmGetPrimaryRole *CandidateProfileMock) GetPrimaryRole() (p1 member.PrimaryRole)
- func (mmGetPrimaryRole *CandidateProfileMock) GetPrimaryRoleAfterCounter() uint64
- func (mmGetPrimaryRole *CandidateProfileMock) GetPrimaryRoleBeforeCounter() uint64
- func (mmGetReference *CandidateProfileMock) GetReference() (g1 reference.Global)
- func (mmGetReference *CandidateProfileMock) GetReferenceAfterCounter() uint64
- func (mmGetReference *CandidateProfileMock) GetReferenceBeforeCounter() uint64
- func (mmGetSpecialRoles *CandidateProfileMock) GetSpecialRoles() (s1 member.SpecialRole)
- func (mmGetSpecialRoles *CandidateProfileMock) GetSpecialRolesAfterCounter() uint64
- func (mmGetSpecialRoles *CandidateProfileMock) GetSpecialRolesBeforeCounter() uint64
- func (mmGetStartPower *CandidateProfileMock) GetStartPower() (p1 member.Power)
- func (mmGetStartPower *CandidateProfileMock) GetStartPowerAfterCounter() uint64
- func (mmGetStartPower *CandidateProfileMock) GetStartPowerBeforeCounter() uint64
- func (mmGetStaticNodeID *CandidateProfileMock) GetStaticNodeID() (s1 node.ShortNodeID)
- func (mmGetStaticNodeID *CandidateProfileMock) GetStaticNodeIDAfterCounter() uint64
- func (mmGetStaticNodeID *CandidateProfileMock) GetStaticNodeIDBeforeCounter() uint64
- func (m *CandidateProfileMock) MinimockFinish()
- func (m *CandidateProfileMock) MinimockGetBriefIntroSignedDigestDone() bool
- func (m *CandidateProfileMock) MinimockGetBriefIntroSignedDigestInspect()
- func (m *CandidateProfileMock) MinimockGetDefaultEndpointDone() bool
- func (m *CandidateProfileMock) MinimockGetDefaultEndpointInspect()
- func (m *CandidateProfileMock) MinimockGetExtraEndpointsDone() bool
- func (m *CandidateProfileMock) MinimockGetExtraEndpointsInspect()
- func (m *CandidateProfileMock) MinimockGetIssuedAtPulseDone() bool
- func (m *CandidateProfileMock) MinimockGetIssuedAtPulseInspect()
- func (m *CandidateProfileMock) MinimockGetIssuedAtTimeDone() bool
- func (m *CandidateProfileMock) MinimockGetIssuedAtTimeInspect()
- func (m *CandidateProfileMock) MinimockGetIssuerIDDone() bool
- func (m *CandidateProfileMock) MinimockGetIssuerIDInspect()
- func (m *CandidateProfileMock) MinimockGetIssuerSignatureDone() bool
- func (m *CandidateProfileMock) MinimockGetIssuerSignatureInspect()
- func (m *CandidateProfileMock) MinimockGetNodePublicKeyDone() bool
- func (m *CandidateProfileMock) MinimockGetNodePublicKeyInspect()
- func (m *CandidateProfileMock) MinimockGetPowerLevelsDone() bool
- func (m *CandidateProfileMock) MinimockGetPowerLevelsInspect()
- func (m *CandidateProfileMock) MinimockGetPrimaryRoleDone() bool
- func (m *CandidateProfileMock) MinimockGetPrimaryRoleInspect()
- func (m *CandidateProfileMock) MinimockGetReferenceDone() bool
- func (m *CandidateProfileMock) MinimockGetReferenceInspect()
- func (m *CandidateProfileMock) MinimockGetSpecialRolesDone() bool
- func (m *CandidateProfileMock) MinimockGetSpecialRolesInspect()
- func (m *CandidateProfileMock) MinimockGetStartPowerDone() bool
- func (m *CandidateProfileMock) MinimockGetStartPowerInspect()
- func (m *CandidateProfileMock) MinimockGetStaticNodeIDDone() bool
- func (m *CandidateProfileMock) MinimockGetStaticNodeIDInspect()
- func (m *CandidateProfileMock) MinimockWait(timeout mm_time.Duration)
- type CandidateProfileMockGetBriefIntroSignedDigestExpectation
- type CandidateProfileMockGetBriefIntroSignedDigestResults
- type CandidateProfileMockGetDefaultEndpointExpectation
- type CandidateProfileMockGetDefaultEndpointResults
- type CandidateProfileMockGetExtraEndpointsExpectation
- type CandidateProfileMockGetExtraEndpointsResults
- type CandidateProfileMockGetIssuedAtPulseExpectation
- type CandidateProfileMockGetIssuedAtPulseResults
- type CandidateProfileMockGetIssuedAtTimeExpectation
- type CandidateProfileMockGetIssuedAtTimeResults
- type CandidateProfileMockGetIssuerIDExpectation
- type CandidateProfileMockGetIssuerIDResults
- type CandidateProfileMockGetIssuerSignatureExpectation
- type CandidateProfileMockGetIssuerSignatureResults
- type CandidateProfileMockGetNodePublicKeyExpectation
- type CandidateProfileMockGetNodePublicKeyResults
- type CandidateProfileMockGetPowerLevelsExpectation
- type CandidateProfileMockGetPowerLevelsResults
- type CandidateProfileMockGetPrimaryRoleExpectation
- type CandidateProfileMockGetPrimaryRoleResults
- type CandidateProfileMockGetReferenceExpectation
- type CandidateProfileMockGetReferenceResults
- type CandidateProfileMockGetSpecialRolesExpectation
- type CandidateProfileMockGetSpecialRolesResults
- type CandidateProfileMockGetStartPowerExpectation
- type CandidateProfileMockGetStartPowerResults
- type CandidateProfileMockGetStaticNodeIDExpectation
- type CandidateProfileMockGetStaticNodeIDResults
- type EvictedNode
- type Factory
- type FactoryMock
- func (mmCreateBriefIntroProfile *FactoryMock) CreateBriefIntroProfile(candidate BriefCandidateProfile) (s1 StaticProfile)
- func (mmCreateBriefIntroProfile *FactoryMock) CreateBriefIntroProfileAfterCounter() uint64
- func (mmCreateBriefIntroProfile *FactoryMock) CreateBriefIntroProfileBeforeCounter() uint64
- func (mmCreateFullIntroProfile *FactoryMock) CreateFullIntroProfile(candidate CandidateProfile) (s1 StaticProfile)
- func (mmCreateFullIntroProfile *FactoryMock) CreateFullIntroProfileAfterCounter() uint64
- func (mmCreateFullIntroProfile *FactoryMock) CreateFullIntroProfileBeforeCounter() uint64
- func (mmCreateUpgradableIntroProfile *FactoryMock) CreateUpgradableIntroProfile(candidate BriefCandidateProfile) (s1 StaticProfile)
- func (mmCreateUpgradableIntroProfile *FactoryMock) CreateUpgradableIntroProfileAfterCounter() uint64
- func (mmCreateUpgradableIntroProfile *FactoryMock) CreateUpgradableIntroProfileBeforeCounter() uint64
- func (m *FactoryMock) MinimockCreateBriefIntroProfileDone() bool
- func (m *FactoryMock) MinimockCreateBriefIntroProfileInspect()
- func (m *FactoryMock) MinimockCreateFullIntroProfileDone() bool
- func (m *FactoryMock) MinimockCreateFullIntroProfileInspect()
- func (m *FactoryMock) MinimockCreateUpgradableIntroProfileDone() bool
- func (m *FactoryMock) MinimockCreateUpgradableIntroProfileInspect()
- func (m *FactoryMock) MinimockFinish()
- func (m *FactoryMock) MinimockTryConvertUpgradableIntroProfileDone() bool
- func (m *FactoryMock) MinimockTryConvertUpgradableIntroProfileInspect()
- func (m *FactoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmTryConvertUpgradableIntroProfile *FactoryMock) TryConvertUpgradableIntroProfile(profile StaticProfile) (s1 StaticProfile, b1 bool)
- func (mmTryConvertUpgradableIntroProfile *FactoryMock) TryConvertUpgradableIntroProfileAfterCounter() uint64
- func (mmTryConvertUpgradableIntroProfile *FactoryMock) TryConvertUpgradableIntroProfileBeforeCounter() uint64
- type FactoryMockCreateBriefIntroProfileExpectation
- type FactoryMockCreateBriefIntroProfileParams
- type FactoryMockCreateBriefIntroProfileResults
- type FactoryMockCreateFullIntroProfileExpectation
- type FactoryMockCreateFullIntroProfileParams
- type FactoryMockCreateFullIntroProfileResults
- type FactoryMockCreateUpgradableIntroProfileExpectation
- type FactoryMockCreateUpgradableIntroProfileParams
- type FactoryMockCreateUpgradableIntroProfileResults
- type FactoryMockTryConvertUpgradableIntroProfileExpectation
- type FactoryMockTryConvertUpgradableIntroProfileParams
- type FactoryMockTryConvertUpgradableIntroProfileResults
- type FixedStaticProfile
- func (p *FixedStaticProfile) GetBriefIntroSignedDigest() cryptkit.SignedDigestHolder
- func (p *FixedStaticProfile) GetDefaultEndpoint() endpoints.Outbound
- func (p *FixedStaticProfile) GetExtension() StaticProfileExtension
- func (p *FixedStaticProfile) GetExtraEndpoints() []endpoints.Outbound
- func (p *FixedStaticProfile) GetIntroducedNodeID() node.ShortNodeID
- func (p *FixedStaticProfile) GetIssuedAtPulse() pulse.Number
- func (p *FixedStaticProfile) GetIssuedAtTime() time.Time
- func (p *FixedStaticProfile) GetIssuerID() node.ShortNodeID
- func (p *FixedStaticProfile) GetIssuerSignature() cryptkit.SignatureHolder
- func (p *FixedStaticProfile) GetNodePublicKey() cryptkit.SigningKeyHolder
- func (p *FixedStaticProfile) GetPowerLevels() member.PowerSet
- func (p *FixedStaticProfile) GetPrimaryRole() member.PrimaryRole
- func (p *FixedStaticProfile) GetPublicKeyStore() cryptkit.PublicKeyStore
- func (p *FixedStaticProfile) GetReference() reference.Global
- func (p *FixedStaticProfile) GetSpecialRoles() member.SpecialRole
- func (p *FixedStaticProfile) GetStartPower() member.Power
- func (p *FixedStaticProfile) GetStaticNodeID() node.ShortNodeID
- func (p *FixedStaticProfile) IsAcceptableHost(from endpoints.Inbound) bool
- type Host
- type HostMock
- func (mmGetDefaultEndpoint *HostMock) GetDefaultEndpoint() (o1 endpoints.Outbound)
- func (mmGetDefaultEndpoint *HostMock) GetDefaultEndpointAfterCounter() uint64
- func (mmGetDefaultEndpoint *HostMock) GetDefaultEndpointBeforeCounter() uint64
- func (mmGetPublicKeyStore *HostMock) GetPublicKeyStore() (p1 cryptkit.PublicKeyStore)
- func (mmGetPublicKeyStore *HostMock) GetPublicKeyStoreAfterCounter() uint64
- func (mmGetPublicKeyStore *HostMock) GetPublicKeyStoreBeforeCounter() uint64
- func (mmIsAcceptableHost *HostMock) IsAcceptableHost(from endpoints.Inbound) (b1 bool)
- func (mmIsAcceptableHost *HostMock) IsAcceptableHostAfterCounter() uint64
- func (mmIsAcceptableHost *HostMock) IsAcceptableHostBeforeCounter() uint64
- func (m *HostMock) MinimockFinish()
- func (m *HostMock) MinimockGetDefaultEndpointDone() bool
- func (m *HostMock) MinimockGetDefaultEndpointInspect()
- func (m *HostMock) MinimockGetPublicKeyStoreDone() bool
- func (m *HostMock) MinimockGetPublicKeyStoreInspect()
- func (m *HostMock) MinimockIsAcceptableHostDone() bool
- func (m *HostMock) MinimockIsAcceptableHostInspect()
- func (m *HostMock) MinimockWait(timeout mm_time.Duration)
- type HostMockGetDefaultEndpointExpectation
- type HostMockGetDefaultEndpointResults
- type HostMockGetPublicKeyStoreExpectation
- type HostMockGetPublicKeyStoreResults
- type HostMockIsAcceptableHostExpectation
- type HostMockIsAcceptableHostParams
- type HostMockIsAcceptableHostResults
- type JoinerAnnouncement
- type LocalNode
- type LocalNodeMock
- func (mmCanIntroduceJoiner *LocalNodeMock) CanIntroduceJoiner() (b1 bool)
- func (mmCanIntroduceJoiner *LocalNodeMock) CanIntroduceJoinerAfterCounter() uint64
- func (mmCanIntroduceJoiner *LocalNodeMock) CanIntroduceJoinerBeforeCounter() uint64
- func (mmGetDeclaredPower *LocalNodeMock) GetDeclaredPower() (p1 member.Power)
- func (mmGetDeclaredPower *LocalNodeMock) GetDeclaredPowerAfterCounter() uint64
- func (mmGetDeclaredPower *LocalNodeMock) GetDeclaredPowerBeforeCounter() uint64
- func (mmGetIndex *LocalNodeMock) GetIndex() (i1 member.Index)
- func (mmGetIndex *LocalNodeMock) GetIndexAfterCounter() uint64
- func (mmGetIndex *LocalNodeMock) GetIndexBeforeCounter() uint64
- func (mmGetNodeID *LocalNodeMock) GetNodeID() (s1 node.ShortNodeID)
- func (mmGetNodeID *LocalNodeMock) GetNodeIDAfterCounter() uint64
- func (mmGetNodeID *LocalNodeMock) GetNodeIDBeforeCounter() uint64
- func (mmGetOpMode *LocalNodeMock) GetOpMode() (o1 member.OpMode)
- func (mmGetOpMode *LocalNodeMock) GetOpModeAfterCounter() uint64
- func (mmGetOpMode *LocalNodeMock) GetOpModeBeforeCounter() uint64
- func (mmGetSignatureVerifier *LocalNodeMock) GetSignatureVerifier() (s1 cryptkit.SignatureVerifier)
- func (mmGetSignatureVerifier *LocalNodeMock) GetSignatureVerifierAfterCounter() uint64
- func (mmGetSignatureVerifier *LocalNodeMock) GetSignatureVerifierBeforeCounter() uint64
- func (mmGetStatic *LocalNodeMock) GetStatic() (s1 StaticProfile)
- func (mmGetStatic *LocalNodeMock) GetStaticAfterCounter() uint64
- func (mmGetStatic *LocalNodeMock) GetStaticBeforeCounter() uint64
- func (mmHasFullProfile *LocalNodeMock) HasFullProfile() (b1 bool)
- func (mmHasFullProfile *LocalNodeMock) HasFullProfileAfterCounter() uint64
- func (mmHasFullProfile *LocalNodeMock) HasFullProfileBeforeCounter() uint64
- func (mmIsJoiner *LocalNodeMock) IsJoiner() (b1 bool)
- func (mmIsJoiner *LocalNodeMock) IsJoinerAfterCounter() uint64
- func (mmIsJoiner *LocalNodeMock) IsJoinerBeforeCounter() uint64
- func (mmIsPowered *LocalNodeMock) IsPowered() (b1 bool)
- func (mmIsPowered *LocalNodeMock) IsPoweredAfterCounter() uint64
- func (mmIsPowered *LocalNodeMock) IsPoweredBeforeCounter() uint64
- func (mmIsStateful *LocalNodeMock) IsStateful() (b1 bool)
- func (mmIsStateful *LocalNodeMock) IsStatefulAfterCounter() uint64
- func (mmIsStateful *LocalNodeMock) IsStatefulBeforeCounter() uint64
- func (mmIsVoter *LocalNodeMock) IsVoter() (b1 bool)
- func (mmIsVoter *LocalNodeMock) IsVoterAfterCounter() uint64
- func (mmIsVoter *LocalNodeMock) IsVoterBeforeCounter() uint64
- func (mmLocalNodeProfile *LocalNodeMock) LocalNodeProfile()
- func (mmLocalNodeProfile *LocalNodeMock) LocalNodeProfileAfterCounter() uint64
- func (mmLocalNodeProfile *LocalNodeMock) LocalNodeProfileBeforeCounter() uint64
- func (m *LocalNodeMock) MinimockCanIntroduceJoinerDone() bool
- func (m *LocalNodeMock) MinimockCanIntroduceJoinerInspect()
- func (m *LocalNodeMock) MinimockFinish()
- func (m *LocalNodeMock) MinimockGetDeclaredPowerDone() bool
- func (m *LocalNodeMock) MinimockGetDeclaredPowerInspect()
- func (m *LocalNodeMock) MinimockGetIndexDone() bool
- func (m *LocalNodeMock) MinimockGetIndexInspect()
- func (m *LocalNodeMock) MinimockGetNodeIDDone() bool
- func (m *LocalNodeMock) MinimockGetNodeIDInspect()
- func (m *LocalNodeMock) MinimockGetOpModeDone() bool
- func (m *LocalNodeMock) MinimockGetOpModeInspect()
- func (m *LocalNodeMock) MinimockGetSignatureVerifierDone() bool
- func (m *LocalNodeMock) MinimockGetSignatureVerifierInspect()
- func (m *LocalNodeMock) MinimockGetStaticDone() bool
- func (m *LocalNodeMock) MinimockGetStaticInspect()
- func (m *LocalNodeMock) MinimockHasFullProfileDone() bool
- func (m *LocalNodeMock) MinimockHasFullProfileInspect()
- func (m *LocalNodeMock) MinimockIsJoinerDone() bool
- func (m *LocalNodeMock) MinimockIsJoinerInspect()
- func (m *LocalNodeMock) MinimockIsPoweredDone() bool
- func (m *LocalNodeMock) MinimockIsPoweredInspect()
- func (m *LocalNodeMock) MinimockIsStatefulDone() bool
- func (m *LocalNodeMock) MinimockIsStatefulInspect()
- func (m *LocalNodeMock) MinimockIsVoterDone() bool
- func (m *LocalNodeMock) MinimockIsVoterInspect()
- func (m *LocalNodeMock) MinimockLocalNodeProfileDone() bool
- func (m *LocalNodeMock) MinimockLocalNodeProfileInspect()
- func (m *LocalNodeMock) MinimockWait(timeout mm_time.Duration)
- type LocalNodeMockCanIntroduceJoinerExpectation
- type LocalNodeMockCanIntroduceJoinerResults
- type LocalNodeMockGetDeclaredPowerExpectation
- type LocalNodeMockGetDeclaredPowerResults
- type LocalNodeMockGetIndexExpectation
- type LocalNodeMockGetIndexResults
- type LocalNodeMockGetNodeIDExpectation
- type LocalNodeMockGetNodeIDResults
- type LocalNodeMockGetOpModeExpectation
- type LocalNodeMockGetOpModeResults
- type LocalNodeMockGetSignatureVerifierExpectation
- type LocalNodeMockGetSignatureVerifierResults
- type LocalNodeMockGetStaticExpectation
- type LocalNodeMockGetStaticResults
- type LocalNodeMockHasFullProfileExpectation
- type LocalNodeMockHasFullProfileResults
- type LocalNodeMockIsJoinerExpectation
- type LocalNodeMockIsJoinerResults
- type LocalNodeMockIsPoweredExpectation
- type LocalNodeMockIsPoweredResults
- type LocalNodeMockIsStatefulExpectation
- type LocalNodeMockIsStatefulResults
- type LocalNodeMockIsVoterExpectation
- type LocalNodeMockIsVoterResults
- type LocalNodeMockLocalNodeProfileExpectation
- type MemberAnnouncement
- func NewJoinerAnnouncement(brief StaticProfile, announcerID node.ShortNodeID) MemberAnnouncement
- func NewJoinerIDAnnouncement(joinerID, announcerID node.ShortNodeID) MemberAnnouncement
- func NewMemberAnnouncement(memberID node.ShortNodeID, mp MembershipProfile, announcerID node.ShortNodeID) MemberAnnouncement
- func NewMemberAnnouncementWithJoiner(memberID node.ShortNodeID, mp MembershipProfile, joiner JoinerAnnouncement, ...) MemberAnnouncement
- func NewMemberAnnouncementWithJoinerID(memberID node.ShortNodeID, mp MembershipProfile, joinerID node.ShortNodeID, ...) MemberAnnouncement
- func NewMemberAnnouncementWithLeave(memberID node.ShortNodeID, mp MembershipProfile, leaveReason uint32, ...) MemberAnnouncement
- type MembershipAnnouncement
- func NewMembershipAnnouncement(mp MembershipProfile) MembershipAnnouncement
- func NewMembershipAnnouncementWithJoinerID(mp MembershipProfile, joinerID node.ShortNodeID, ...) MembershipAnnouncement
- func NewMembershipAnnouncementWithLeave(mp MembershipProfile, leaveReason uint32) MembershipAnnouncement
- type MembershipProfile
- func (p MembershipProfile) AsRank(nc int) member.Rank
- func (p MembershipProfile) AsRankUint16(nc uint16) member.Rank
- func (p MembershipProfile) CanIntroduceJoiner() bool
- func (p MembershipProfile) Equals(o MembershipProfile) bool
- func (p MembershipProfile) IsEmpty() bool
- func (p MembershipProfile) IsJoiner() bool
- func (p MembershipProfile) String() string
- func (p MembershipProfile) StringParts() string
- type PopulationRank
- type SimpleProfileIntroFactory
- func (p *SimpleProfileIntroFactory) CreateBriefIntroProfile(candidate BriefCandidateProfile) StaticProfile
- func (p *SimpleProfileIntroFactory) CreateFullIntroProfile(candidate CandidateProfile) StaticProfile
- func (p *SimpleProfileIntroFactory) CreateUpgradableIntroProfile(candidate BriefCandidateProfile) StaticProfile
- func (p *SimpleProfileIntroFactory) TryConvertUpgradableIntroProfile(profile StaticProfile) (StaticProfile, bool)
- type StaticProfile
- func NewStaticProfileByBrief(v BriefCandidateProfile, pks cryptkit.PublicKeyStore) StaticProfile
- func NewStaticProfileByExt(v BriefCandidateProfile, ext CandidateProfileExtension, ...) StaticProfile
- func NewStaticProfileByFull(v CandidateProfile, pks cryptkit.PublicKeyStore) StaticProfile
- func NewUpgradableProfileByBrief(v BriefCandidateProfile, pks cryptkit.PublicKeyStore) StaticProfile
- type StaticProfileExtension
- type StaticProfileExtensionMock
- func (mmGetExtraEndpoints *StaticProfileExtensionMock) GetExtraEndpoints() (oa1 []endpoints.Outbound)
- func (mmGetExtraEndpoints *StaticProfileExtensionMock) GetExtraEndpointsAfterCounter() uint64
- func (mmGetExtraEndpoints *StaticProfileExtensionMock) GetExtraEndpointsBeforeCounter() uint64
- func (mmGetIntroducedNodeID *StaticProfileExtensionMock) GetIntroducedNodeID() (s1 node.ShortNodeID)
- func (mmGetIntroducedNodeID *StaticProfileExtensionMock) GetIntroducedNodeIDAfterCounter() uint64
- func (mmGetIntroducedNodeID *StaticProfileExtensionMock) GetIntroducedNodeIDBeforeCounter() uint64
- func (mmGetIssuedAtPulse *StaticProfileExtensionMock) GetIssuedAtPulse() (n1 pulse.Number)
- func (mmGetIssuedAtPulse *StaticProfileExtensionMock) GetIssuedAtPulseAfterCounter() uint64
- func (mmGetIssuedAtPulse *StaticProfileExtensionMock) GetIssuedAtPulseBeforeCounter() uint64
- func (mmGetIssuedAtTime *StaticProfileExtensionMock) GetIssuedAtTime() (t1 time.Time)
- func (mmGetIssuedAtTime *StaticProfileExtensionMock) GetIssuedAtTimeAfterCounter() uint64
- func (mmGetIssuedAtTime *StaticProfileExtensionMock) GetIssuedAtTimeBeforeCounter() uint64
- func (mmGetIssuerID *StaticProfileExtensionMock) GetIssuerID() (s1 node.ShortNodeID)
- func (mmGetIssuerID *StaticProfileExtensionMock) GetIssuerIDAfterCounter() uint64
- func (mmGetIssuerID *StaticProfileExtensionMock) GetIssuerIDBeforeCounter() uint64
- func (mmGetIssuerSignature *StaticProfileExtensionMock) GetIssuerSignature() (s1 cryptkit.SignatureHolder)
- func (mmGetIssuerSignature *StaticProfileExtensionMock) GetIssuerSignatureAfterCounter() uint64
- func (mmGetIssuerSignature *StaticProfileExtensionMock) GetIssuerSignatureBeforeCounter() uint64
- func (mmGetPowerLevels *StaticProfileExtensionMock) GetPowerLevels() (p1 member.PowerSet)
- func (mmGetPowerLevels *StaticProfileExtensionMock) GetPowerLevelsAfterCounter() uint64
- func (mmGetPowerLevels *StaticProfileExtensionMock) GetPowerLevelsBeforeCounter() uint64
- func (mmGetReference *StaticProfileExtensionMock) GetReference() (g1 reference.Global)
- func (mmGetReference *StaticProfileExtensionMock) GetReferenceAfterCounter() uint64
- func (mmGetReference *StaticProfileExtensionMock) GetReferenceBeforeCounter() uint64
- func (m *StaticProfileExtensionMock) MinimockFinish()
- func (m *StaticProfileExtensionMock) MinimockGetExtraEndpointsDone() bool
- func (m *StaticProfileExtensionMock) MinimockGetExtraEndpointsInspect()
- func (m *StaticProfileExtensionMock) MinimockGetIntroducedNodeIDDone() bool
- func (m *StaticProfileExtensionMock) MinimockGetIntroducedNodeIDInspect()
- func (m *StaticProfileExtensionMock) MinimockGetIssuedAtPulseDone() bool
- func (m *StaticProfileExtensionMock) MinimockGetIssuedAtPulseInspect()
- func (m *StaticProfileExtensionMock) MinimockGetIssuedAtTimeDone() bool
- func (m *StaticProfileExtensionMock) MinimockGetIssuedAtTimeInspect()
- func (m *StaticProfileExtensionMock) MinimockGetIssuerIDDone() bool
- func (m *StaticProfileExtensionMock) MinimockGetIssuerIDInspect()
- func (m *StaticProfileExtensionMock) MinimockGetIssuerSignatureDone() bool
- func (m *StaticProfileExtensionMock) MinimockGetIssuerSignatureInspect()
- func (m *StaticProfileExtensionMock) MinimockGetPowerLevelsDone() bool
- func (m *StaticProfileExtensionMock) MinimockGetPowerLevelsInspect()
- func (m *StaticProfileExtensionMock) MinimockGetReferenceDone() bool
- func (m *StaticProfileExtensionMock) MinimockGetReferenceInspect()
- func (m *StaticProfileExtensionMock) MinimockWait(timeout mm_time.Duration)
- type StaticProfileExtensionMockGetExtraEndpointsExpectation
- type StaticProfileExtensionMockGetExtraEndpointsResults
- type StaticProfileExtensionMockGetIntroducedNodeIDExpectation
- type StaticProfileExtensionMockGetIntroducedNodeIDResults
- type StaticProfileExtensionMockGetIssuedAtPulseExpectation
- type StaticProfileExtensionMockGetIssuedAtPulseResults
- type StaticProfileExtensionMockGetIssuedAtTimeExpectation
- type StaticProfileExtensionMockGetIssuedAtTimeResults
- type StaticProfileExtensionMockGetIssuerIDExpectation
- type StaticProfileExtensionMockGetIssuerIDResults
- type StaticProfileExtensionMockGetIssuerSignatureExpectation
- type StaticProfileExtensionMockGetIssuerSignatureResults
- type StaticProfileExtensionMockGetPowerLevelsExpectation
- type StaticProfileExtensionMockGetPowerLevelsResults
- type StaticProfileExtensionMockGetReferenceExpectation
- type StaticProfileExtensionMockGetReferenceResults
- type StaticProfileMock
- func (mmGetBriefIntroSignedDigest *StaticProfileMock) GetBriefIntroSignedDigest() (s1 cryptkit.SignedDigestHolder)
- func (mmGetBriefIntroSignedDigest *StaticProfileMock) GetBriefIntroSignedDigestAfterCounter() uint64
- func (mmGetBriefIntroSignedDigest *StaticProfileMock) GetBriefIntroSignedDigestBeforeCounter() uint64
- func (mmGetDefaultEndpoint *StaticProfileMock) GetDefaultEndpoint() (o1 endpoints.Outbound)
- func (mmGetDefaultEndpoint *StaticProfileMock) GetDefaultEndpointAfterCounter() uint64
- func (mmGetDefaultEndpoint *StaticProfileMock) GetDefaultEndpointBeforeCounter() uint64
- func (mmGetExtension *StaticProfileMock) GetExtension() (s1 StaticProfileExtension)
- func (mmGetExtension *StaticProfileMock) GetExtensionAfterCounter() uint64
- func (mmGetExtension *StaticProfileMock) GetExtensionBeforeCounter() uint64
- func (mmGetNodePublicKey *StaticProfileMock) GetNodePublicKey() (s1 cryptkit.SigningKeyHolder)
- func (mmGetNodePublicKey *StaticProfileMock) GetNodePublicKeyAfterCounter() uint64
- func (mmGetNodePublicKey *StaticProfileMock) GetNodePublicKeyBeforeCounter() uint64
- func (mmGetPrimaryRole *StaticProfileMock) GetPrimaryRole() (p1 member.PrimaryRole)
- func (mmGetPrimaryRole *StaticProfileMock) GetPrimaryRoleAfterCounter() uint64
- func (mmGetPrimaryRole *StaticProfileMock) GetPrimaryRoleBeforeCounter() uint64
- func (mmGetPublicKeyStore *StaticProfileMock) GetPublicKeyStore() (p1 cryptkit.PublicKeyStore)
- func (mmGetPublicKeyStore *StaticProfileMock) GetPublicKeyStoreAfterCounter() uint64
- func (mmGetPublicKeyStore *StaticProfileMock) GetPublicKeyStoreBeforeCounter() uint64
- func (mmGetSpecialRoles *StaticProfileMock) GetSpecialRoles() (s1 member.SpecialRole)
- func (mmGetSpecialRoles *StaticProfileMock) GetSpecialRolesAfterCounter() uint64
- func (mmGetSpecialRoles *StaticProfileMock) GetSpecialRolesBeforeCounter() uint64
- func (mmGetStartPower *StaticProfileMock) GetStartPower() (p1 member.Power)
- func (mmGetStartPower *StaticProfileMock) GetStartPowerAfterCounter() uint64
- func (mmGetStartPower *StaticProfileMock) GetStartPowerBeforeCounter() uint64
- func (mmGetStaticNodeID *StaticProfileMock) GetStaticNodeID() (s1 node.ShortNodeID)
- func (mmGetStaticNodeID *StaticProfileMock) GetStaticNodeIDAfterCounter() uint64
- func (mmGetStaticNodeID *StaticProfileMock) GetStaticNodeIDBeforeCounter() uint64
- func (mmIsAcceptableHost *StaticProfileMock) IsAcceptableHost(from endpoints.Inbound) (b1 bool)
- func (mmIsAcceptableHost *StaticProfileMock) IsAcceptableHostAfterCounter() uint64
- func (mmIsAcceptableHost *StaticProfileMock) IsAcceptableHostBeforeCounter() uint64
- func (m *StaticProfileMock) MinimockFinish()
- func (m *StaticProfileMock) MinimockGetBriefIntroSignedDigestDone() bool
- func (m *StaticProfileMock) MinimockGetBriefIntroSignedDigestInspect()
- func (m *StaticProfileMock) MinimockGetDefaultEndpointDone() bool
- func (m *StaticProfileMock) MinimockGetDefaultEndpointInspect()
- func (m *StaticProfileMock) MinimockGetExtensionDone() bool
- func (m *StaticProfileMock) MinimockGetExtensionInspect()
- func (m *StaticProfileMock) MinimockGetNodePublicKeyDone() bool
- func (m *StaticProfileMock) MinimockGetNodePublicKeyInspect()
- func (m *StaticProfileMock) MinimockGetPrimaryRoleDone() bool
- func (m *StaticProfileMock) MinimockGetPrimaryRoleInspect()
- func (m *StaticProfileMock) MinimockGetPublicKeyStoreDone() bool
- func (m *StaticProfileMock) MinimockGetPublicKeyStoreInspect()
- func (m *StaticProfileMock) MinimockGetSpecialRolesDone() bool
- func (m *StaticProfileMock) MinimockGetSpecialRolesInspect()
- func (m *StaticProfileMock) MinimockGetStartPowerDone() bool
- func (m *StaticProfileMock) MinimockGetStartPowerInspect()
- func (m *StaticProfileMock) MinimockGetStaticNodeIDDone() bool
- func (m *StaticProfileMock) MinimockGetStaticNodeIDInspect()
- func (m *StaticProfileMock) MinimockIsAcceptableHostDone() bool
- func (m *StaticProfileMock) MinimockIsAcceptableHostInspect()
- func (m *StaticProfileMock) MinimockWait(timeout mm_time.Duration)
- type StaticProfileMockGetBriefIntroSignedDigestExpectation
- type StaticProfileMockGetBriefIntroSignedDigestResults
- type StaticProfileMockGetDefaultEndpointExpectation
- type StaticProfileMockGetDefaultEndpointResults
- type StaticProfileMockGetExtensionExpectation
- type StaticProfileMockGetExtensionResults
- type StaticProfileMockGetNodePublicKeyExpectation
- type StaticProfileMockGetNodePublicKeyResults
- type StaticProfileMockGetPrimaryRoleExpectation
- type StaticProfileMockGetPrimaryRoleResults
- type StaticProfileMockGetPublicKeyStoreExpectation
- type StaticProfileMockGetPublicKeyStoreResults
- type StaticProfileMockGetSpecialRolesExpectation
- type StaticProfileMockGetSpecialRolesResults
- type StaticProfileMockGetStartPowerExpectation
- type StaticProfileMockGetStartPowerResults
- type StaticProfileMockGetStaticNodeIDExpectation
- type StaticProfileMockGetStaticNodeIDResults
- type StaticProfileMockIsAcceptableHostExpectation
- type StaticProfileMockIsAcceptableHostParams
- type StaticProfileMockIsAcceptableHostResults
- type Updatable
- type Upgradable
- type UpgradableStaticProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsSortingRank ¶
func AsSortingRank(np ActiveNode) member.SortingRank
func AsSortingRankOfStatic ¶
func AsSortingRankOfStatic(st StaticProfile, enableStartPower bool) member.SortingRank
func EqualBriefProfiles ¶
func EqualBriefProfiles(p BriefCandidateProfile, o BriefCandidateProfile) bool
func EqualProfileExtensions ¶
func EqualProfileExtensions(p CandidateProfileExtension, o CandidateProfileExtension) bool
func EqualStaticProfiles ¶
func EqualStaticProfiles(p StaticProfile, o StaticProfile, extIsRequired bool) bool
func LessForActiveNodes ¶
func LessForActiveNodes(vN, oN ActiveNode) bool
func LessForStaticProfiles ¶
func LessForStaticProfiles(vN, oN StaticProfile, enableStartPower bool) bool
func ProfileAsRank ¶
func ProfileAsRank(np ActiveNode, nc int) member.Rank
func SortActiveNodes ¶
func SortActiveNodes(nodes []ActiveNode)
func SortStaticProfiles ¶
func SortStaticProfiles(nodes []StaticProfile, enableStartPower bool)
Types ¶
type ActiveNode ¶
type ActiveNodeMock ¶
type ActiveNodeMock struct { CanIntroduceJoinerMock mActiveNodeMockCanIntroduceJoiner GetDeclaredPowerMock mActiveNodeMockGetDeclaredPower GetIndexMock mActiveNodeMockGetIndex GetNodeIDMock mActiveNodeMockGetNodeID GetOpModeMock mActiveNodeMockGetOpMode GetSignatureVerifierMock mActiveNodeMockGetSignatureVerifier GetStaticMock mActiveNodeMockGetStatic HasFullProfileMock mActiveNodeMockHasFullProfile IsJoinerMock mActiveNodeMockIsJoiner IsPoweredMock mActiveNodeMockIsPowered IsStatefulMock mActiveNodeMockIsStateful IsVoterMock mActiveNodeMockIsVoter // contains filtered or unexported fields }
ActiveNodeMock implements ActiveNode
func NewActiveNodeMock ¶
func NewActiveNodeMock(t minimock.Tester) *ActiveNodeMock
NewActiveNodeMock returns a mock for ActiveNode
func (*ActiveNodeMock) CanIntroduceJoiner ¶
func (mmCanIntroduceJoiner *ActiveNodeMock) CanIntroduceJoiner() (b1 bool)
CanIntroduceJoiner implements ActiveNode
func (*ActiveNodeMock) CanIntroduceJoinerAfterCounter ¶
func (mmCanIntroduceJoiner *ActiveNodeMock) CanIntroduceJoinerAfterCounter() uint64
CanIntroduceJoinerAfterCounter returns a count of finished ActiveNodeMock.CanIntroduceJoiner invocations
func (*ActiveNodeMock) CanIntroduceJoinerBeforeCounter ¶
func (mmCanIntroduceJoiner *ActiveNodeMock) CanIntroduceJoinerBeforeCounter() uint64
CanIntroduceJoinerBeforeCounter returns a count of ActiveNodeMock.CanIntroduceJoiner invocations
func (*ActiveNodeMock) GetDeclaredPower ¶
func (mmGetDeclaredPower *ActiveNodeMock) GetDeclaredPower() (p1 member.Power)
GetDeclaredPower implements ActiveNode
func (*ActiveNodeMock) GetDeclaredPowerAfterCounter ¶
func (mmGetDeclaredPower *ActiveNodeMock) GetDeclaredPowerAfterCounter() uint64
GetDeclaredPowerAfterCounter returns a count of finished ActiveNodeMock.GetDeclaredPower invocations
func (*ActiveNodeMock) GetDeclaredPowerBeforeCounter ¶
func (mmGetDeclaredPower *ActiveNodeMock) GetDeclaredPowerBeforeCounter() uint64
GetDeclaredPowerBeforeCounter returns a count of ActiveNodeMock.GetDeclaredPower invocations
func (*ActiveNodeMock) GetIndex ¶
func (mmGetIndex *ActiveNodeMock) GetIndex() (i1 member.Index)
GetIndex implements ActiveNode
func (*ActiveNodeMock) GetIndexAfterCounter ¶
func (mmGetIndex *ActiveNodeMock) GetIndexAfterCounter() uint64
GetIndexAfterCounter returns a count of finished ActiveNodeMock.GetIndex invocations
func (*ActiveNodeMock) GetIndexBeforeCounter ¶
func (mmGetIndex *ActiveNodeMock) GetIndexBeforeCounter() uint64
GetIndexBeforeCounter returns a count of ActiveNodeMock.GetIndex invocations
func (*ActiveNodeMock) GetNodeID ¶
func (mmGetNodeID *ActiveNodeMock) GetNodeID() (s1 node.ShortNodeID)
GetNodeID implements ActiveNode
func (*ActiveNodeMock) GetNodeIDAfterCounter ¶
func (mmGetNodeID *ActiveNodeMock) GetNodeIDAfterCounter() uint64
GetNodeIDAfterCounter returns a count of finished ActiveNodeMock.GetNodeID invocations
func (*ActiveNodeMock) GetNodeIDBeforeCounter ¶
func (mmGetNodeID *ActiveNodeMock) GetNodeIDBeforeCounter() uint64
GetNodeIDBeforeCounter returns a count of ActiveNodeMock.GetNodeID invocations
func (*ActiveNodeMock) GetOpMode ¶
func (mmGetOpMode *ActiveNodeMock) GetOpMode() (o1 member.OpMode)
GetOpMode implements ActiveNode
func (*ActiveNodeMock) GetOpModeAfterCounter ¶
func (mmGetOpMode *ActiveNodeMock) GetOpModeAfterCounter() uint64
GetOpModeAfterCounter returns a count of finished ActiveNodeMock.GetOpMode invocations
func (*ActiveNodeMock) GetOpModeBeforeCounter ¶
func (mmGetOpMode *ActiveNodeMock) GetOpModeBeforeCounter() uint64
GetOpModeBeforeCounter returns a count of ActiveNodeMock.GetOpMode invocations
func (*ActiveNodeMock) GetSignatureVerifier ¶
func (mmGetSignatureVerifier *ActiveNodeMock) GetSignatureVerifier() (s1 cryptkit.SignatureVerifier)
GetSignatureVerifier implements ActiveNode
func (*ActiveNodeMock) GetSignatureVerifierAfterCounter ¶
func (mmGetSignatureVerifier *ActiveNodeMock) GetSignatureVerifierAfterCounter() uint64
GetSignatureVerifierAfterCounter returns a count of finished ActiveNodeMock.GetSignatureVerifier invocations
func (*ActiveNodeMock) GetSignatureVerifierBeforeCounter ¶
func (mmGetSignatureVerifier *ActiveNodeMock) GetSignatureVerifierBeforeCounter() uint64
GetSignatureVerifierBeforeCounter returns a count of ActiveNodeMock.GetSignatureVerifier invocations
func (*ActiveNodeMock) GetStatic ¶
func (mmGetStatic *ActiveNodeMock) GetStatic() (s1 StaticProfile)
GetStatic implements ActiveNode
func (*ActiveNodeMock) GetStaticAfterCounter ¶
func (mmGetStatic *ActiveNodeMock) GetStaticAfterCounter() uint64
GetStaticAfterCounter returns a count of finished ActiveNodeMock.GetStatic invocations
func (*ActiveNodeMock) GetStaticBeforeCounter ¶
func (mmGetStatic *ActiveNodeMock) GetStaticBeforeCounter() uint64
GetStaticBeforeCounter returns a count of ActiveNodeMock.GetStatic invocations
func (*ActiveNodeMock) HasFullProfile ¶
func (mmHasFullProfile *ActiveNodeMock) HasFullProfile() (b1 bool)
HasFullProfile implements ActiveNode
func (*ActiveNodeMock) HasFullProfileAfterCounter ¶
func (mmHasFullProfile *ActiveNodeMock) HasFullProfileAfterCounter() uint64
HasFullProfileAfterCounter returns a count of finished ActiveNodeMock.HasFullProfile invocations
func (*ActiveNodeMock) HasFullProfileBeforeCounter ¶
func (mmHasFullProfile *ActiveNodeMock) HasFullProfileBeforeCounter() uint64
HasFullProfileBeforeCounter returns a count of ActiveNodeMock.HasFullProfile invocations
func (*ActiveNodeMock) IsJoiner ¶
func (mmIsJoiner *ActiveNodeMock) IsJoiner() (b1 bool)
IsJoiner implements ActiveNode
func (*ActiveNodeMock) IsJoinerAfterCounter ¶
func (mmIsJoiner *ActiveNodeMock) IsJoinerAfterCounter() uint64
IsJoinerAfterCounter returns a count of finished ActiveNodeMock.IsJoiner invocations
func (*ActiveNodeMock) IsJoinerBeforeCounter ¶
func (mmIsJoiner *ActiveNodeMock) IsJoinerBeforeCounter() uint64
IsJoinerBeforeCounter returns a count of ActiveNodeMock.IsJoiner invocations
func (*ActiveNodeMock) IsPowered ¶
func (mmIsPowered *ActiveNodeMock) IsPowered() (b1 bool)
IsPowered implements ActiveNode
func (*ActiveNodeMock) IsPoweredAfterCounter ¶
func (mmIsPowered *ActiveNodeMock) IsPoweredAfterCounter() uint64
IsPoweredAfterCounter returns a count of finished ActiveNodeMock.IsPowered invocations
func (*ActiveNodeMock) IsPoweredBeforeCounter ¶
func (mmIsPowered *ActiveNodeMock) IsPoweredBeforeCounter() uint64
IsPoweredBeforeCounter returns a count of ActiveNodeMock.IsPowered invocations
func (*ActiveNodeMock) IsStateful ¶
func (mmIsStateful *ActiveNodeMock) IsStateful() (b1 bool)
IsStateful implements ActiveNode
func (*ActiveNodeMock) IsStatefulAfterCounter ¶
func (mmIsStateful *ActiveNodeMock) IsStatefulAfterCounter() uint64
IsStatefulAfterCounter returns a count of finished ActiveNodeMock.IsStateful invocations
func (*ActiveNodeMock) IsStatefulBeforeCounter ¶
func (mmIsStateful *ActiveNodeMock) IsStatefulBeforeCounter() uint64
IsStatefulBeforeCounter returns a count of ActiveNodeMock.IsStateful invocations
func (*ActiveNodeMock) IsVoter ¶
func (mmIsVoter *ActiveNodeMock) IsVoter() (b1 bool)
IsVoter implements ActiveNode
func (*ActiveNodeMock) IsVoterAfterCounter ¶
func (mmIsVoter *ActiveNodeMock) IsVoterAfterCounter() uint64
IsVoterAfterCounter returns a count of finished ActiveNodeMock.IsVoter invocations
func (*ActiveNodeMock) IsVoterBeforeCounter ¶
func (mmIsVoter *ActiveNodeMock) IsVoterBeforeCounter() uint64
IsVoterBeforeCounter returns a count of ActiveNodeMock.IsVoter invocations
func (*ActiveNodeMock) MinimockCanIntroduceJoinerDone ¶
func (m *ActiveNodeMock) MinimockCanIntroduceJoinerDone() bool
MinimockCanIntroduceJoinerDone returns true if the count of the CanIntroduceJoiner invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockCanIntroduceJoinerInspect ¶
func (m *ActiveNodeMock) MinimockCanIntroduceJoinerInspect()
MinimockCanIntroduceJoinerInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockFinish ¶
func (m *ActiveNodeMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ActiveNodeMock) MinimockGetDeclaredPowerDone ¶
func (m *ActiveNodeMock) MinimockGetDeclaredPowerDone() bool
MinimockGetDeclaredPowerDone returns true if the count of the GetDeclaredPower invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockGetDeclaredPowerInspect ¶
func (m *ActiveNodeMock) MinimockGetDeclaredPowerInspect()
MinimockGetDeclaredPowerInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockGetIndexDone ¶
func (m *ActiveNodeMock) MinimockGetIndexDone() bool
MinimockGetIndexDone returns true if the count of the GetIndex invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockGetIndexInspect ¶
func (m *ActiveNodeMock) MinimockGetIndexInspect()
MinimockGetIndexInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockGetNodeIDDone ¶
func (m *ActiveNodeMock) MinimockGetNodeIDDone() bool
MinimockGetNodeIDDone returns true if the count of the GetNodeID invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockGetNodeIDInspect ¶
func (m *ActiveNodeMock) MinimockGetNodeIDInspect()
MinimockGetNodeIDInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockGetOpModeDone ¶
func (m *ActiveNodeMock) MinimockGetOpModeDone() bool
MinimockGetOpModeDone returns true if the count of the GetOpMode invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockGetOpModeInspect ¶
func (m *ActiveNodeMock) MinimockGetOpModeInspect()
MinimockGetOpModeInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockGetSignatureVerifierDone ¶
func (m *ActiveNodeMock) MinimockGetSignatureVerifierDone() bool
MinimockGetSignatureVerifierDone returns true if the count of the GetSignatureVerifier invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockGetSignatureVerifierInspect ¶
func (m *ActiveNodeMock) MinimockGetSignatureVerifierInspect()
MinimockGetSignatureVerifierInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockGetStaticDone ¶
func (m *ActiveNodeMock) MinimockGetStaticDone() bool
MinimockGetStaticDone returns true if the count of the GetStatic invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockGetStaticInspect ¶
func (m *ActiveNodeMock) MinimockGetStaticInspect()
MinimockGetStaticInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockHasFullProfileDone ¶
func (m *ActiveNodeMock) MinimockHasFullProfileDone() bool
MinimockHasFullProfileDone returns true if the count of the HasFullProfile invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockHasFullProfileInspect ¶
func (m *ActiveNodeMock) MinimockHasFullProfileInspect()
MinimockHasFullProfileInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockIsJoinerDone ¶
func (m *ActiveNodeMock) MinimockIsJoinerDone() bool
MinimockIsJoinerDone returns true if the count of the IsJoiner invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockIsJoinerInspect ¶
func (m *ActiveNodeMock) MinimockIsJoinerInspect()
MinimockIsJoinerInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockIsPoweredDone ¶
func (m *ActiveNodeMock) MinimockIsPoweredDone() bool
MinimockIsPoweredDone returns true if the count of the IsPowered invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockIsPoweredInspect ¶
func (m *ActiveNodeMock) MinimockIsPoweredInspect()
MinimockIsPoweredInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockIsStatefulDone ¶
func (m *ActiveNodeMock) MinimockIsStatefulDone() bool
MinimockIsStatefulDone returns true if the count of the IsStateful invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockIsStatefulInspect ¶
func (m *ActiveNodeMock) MinimockIsStatefulInspect()
MinimockIsStatefulInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockIsVoterDone ¶
func (m *ActiveNodeMock) MinimockIsVoterDone() bool
MinimockIsVoterDone returns true if the count of the IsVoter invocations corresponds the number of defined expectations
func (*ActiveNodeMock) MinimockIsVoterInspect ¶
func (m *ActiveNodeMock) MinimockIsVoterInspect()
MinimockIsVoterInspect logs each unmet expectation
func (*ActiveNodeMock) MinimockWait ¶
func (m *ActiveNodeMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type ActiveNodeMockCanIntroduceJoinerExpectation ¶
type ActiveNodeMockCanIntroduceJoinerExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockCanIntroduceJoinerExpectation specifies expectation struct of the ActiveNode.CanIntroduceJoiner
type ActiveNodeMockCanIntroduceJoinerResults ¶
type ActiveNodeMockCanIntroduceJoinerResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockCanIntroduceJoinerResults contains results of the ActiveNode.CanIntroduceJoiner
type ActiveNodeMockGetDeclaredPowerExpectation ¶
type ActiveNodeMockGetDeclaredPowerExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockGetDeclaredPowerExpectation specifies expectation struct of the ActiveNode.GetDeclaredPower
type ActiveNodeMockGetDeclaredPowerResults ¶
type ActiveNodeMockGetDeclaredPowerResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockGetDeclaredPowerResults contains results of the ActiveNode.GetDeclaredPower
type ActiveNodeMockGetIndexExpectation ¶
type ActiveNodeMockGetIndexExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockGetIndexExpectation specifies expectation struct of the ActiveNode.GetIndex
type ActiveNodeMockGetIndexResults ¶
type ActiveNodeMockGetIndexResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockGetIndexResults contains results of the ActiveNode.GetIndex
type ActiveNodeMockGetNodeIDExpectation ¶
type ActiveNodeMockGetNodeIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockGetNodeIDExpectation specifies expectation struct of the ActiveNode.GetNodeID
type ActiveNodeMockGetNodeIDResults ¶
type ActiveNodeMockGetNodeIDResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockGetNodeIDResults contains results of the ActiveNode.GetNodeID
type ActiveNodeMockGetOpModeExpectation ¶
type ActiveNodeMockGetOpModeExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockGetOpModeExpectation specifies expectation struct of the ActiveNode.GetOpMode
type ActiveNodeMockGetOpModeResults ¶
type ActiveNodeMockGetOpModeResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockGetOpModeResults contains results of the ActiveNode.GetOpMode
type ActiveNodeMockGetSignatureVerifierExpectation ¶
type ActiveNodeMockGetSignatureVerifierExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockGetSignatureVerifierExpectation specifies expectation struct of the ActiveNode.GetSignatureVerifier
type ActiveNodeMockGetSignatureVerifierResults ¶
type ActiveNodeMockGetSignatureVerifierResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockGetSignatureVerifierResults contains results of the ActiveNode.GetSignatureVerifier
type ActiveNodeMockGetStaticExpectation ¶
type ActiveNodeMockGetStaticExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockGetStaticExpectation specifies expectation struct of the ActiveNode.GetStatic
type ActiveNodeMockGetStaticResults ¶
type ActiveNodeMockGetStaticResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockGetStaticResults contains results of the ActiveNode.GetStatic
type ActiveNodeMockHasFullProfileExpectation ¶
type ActiveNodeMockHasFullProfileExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockHasFullProfileExpectation specifies expectation struct of the ActiveNode.HasFullProfile
type ActiveNodeMockHasFullProfileResults ¶
type ActiveNodeMockHasFullProfileResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockHasFullProfileResults contains results of the ActiveNode.HasFullProfile
type ActiveNodeMockIsJoinerExpectation ¶
type ActiveNodeMockIsJoinerExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockIsJoinerExpectation specifies expectation struct of the ActiveNode.IsJoiner
type ActiveNodeMockIsJoinerResults ¶
type ActiveNodeMockIsJoinerResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockIsJoinerResults contains results of the ActiveNode.IsJoiner
type ActiveNodeMockIsPoweredExpectation ¶
type ActiveNodeMockIsPoweredExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockIsPoweredExpectation specifies expectation struct of the ActiveNode.IsPowered
type ActiveNodeMockIsPoweredResults ¶
type ActiveNodeMockIsPoweredResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockIsPoweredResults contains results of the ActiveNode.IsPowered
type ActiveNodeMockIsStatefulExpectation ¶
type ActiveNodeMockIsStatefulExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockIsStatefulExpectation specifies expectation struct of the ActiveNode.IsStateful
type ActiveNodeMockIsStatefulResults ¶
type ActiveNodeMockIsStatefulResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockIsStatefulResults contains results of the ActiveNode.IsStateful
type ActiveNodeMockIsVoterExpectation ¶
type ActiveNodeMockIsVoterExpectation struct { Counter uint64 // contains filtered or unexported fields }
ActiveNodeMockIsVoterExpectation specifies expectation struct of the ActiveNode.IsVoter
type ActiveNodeMockIsVoterResults ¶
type ActiveNodeMockIsVoterResults struct {
// contains filtered or unexported fields
}
ActiveNodeMockIsVoterResults contains results of the ActiveNode.IsVoter
type BaseNode ¶
type BaseNode interface { // StaticProfile GetNodeID() node.ShortNodeID /* As dynamic nodes may update static part info, code inside consenus logic MUST access static profile by getting it GetStatic() to ensure consistency among attributes */ GetStatic() StaticProfile GetSignatureVerifier() cryptkit.SignatureVerifier GetOpMode() member.OpMode }
type BaseNodeMock ¶
type BaseNodeMock struct { GetNodeIDMock mBaseNodeMockGetNodeID GetOpModeMock mBaseNodeMockGetOpMode GetSignatureVerifierMock mBaseNodeMockGetSignatureVerifier GetStaticMock mBaseNodeMockGetStatic // contains filtered or unexported fields }
BaseNodeMock implements BaseNode
func NewBaseNodeMock ¶
func NewBaseNodeMock(t minimock.Tester) *BaseNodeMock
NewBaseNodeMock returns a mock for BaseNode
func (*BaseNodeMock) GetNodeID ¶
func (mmGetNodeID *BaseNodeMock) GetNodeID() (s1 node.ShortNodeID)
GetNodeID implements BaseNode
func (*BaseNodeMock) GetNodeIDAfterCounter ¶
func (mmGetNodeID *BaseNodeMock) GetNodeIDAfterCounter() uint64
GetNodeIDAfterCounter returns a count of finished BaseNodeMock.GetNodeID invocations
func (*BaseNodeMock) GetNodeIDBeforeCounter ¶
func (mmGetNodeID *BaseNodeMock) GetNodeIDBeforeCounter() uint64
GetNodeIDBeforeCounter returns a count of BaseNodeMock.GetNodeID invocations
func (*BaseNodeMock) GetOpMode ¶
func (mmGetOpMode *BaseNodeMock) GetOpMode() (o1 member.OpMode)
GetOpMode implements BaseNode
func (*BaseNodeMock) GetOpModeAfterCounter ¶
func (mmGetOpMode *BaseNodeMock) GetOpModeAfterCounter() uint64
GetOpModeAfterCounter returns a count of finished BaseNodeMock.GetOpMode invocations
func (*BaseNodeMock) GetOpModeBeforeCounter ¶
func (mmGetOpMode *BaseNodeMock) GetOpModeBeforeCounter() uint64
GetOpModeBeforeCounter returns a count of BaseNodeMock.GetOpMode invocations
func (*BaseNodeMock) GetSignatureVerifier ¶
func (mmGetSignatureVerifier *BaseNodeMock) GetSignatureVerifier() (s1 cryptkit.SignatureVerifier)
GetSignatureVerifier implements BaseNode
func (*BaseNodeMock) GetSignatureVerifierAfterCounter ¶
func (mmGetSignatureVerifier *BaseNodeMock) GetSignatureVerifierAfterCounter() uint64
GetSignatureVerifierAfterCounter returns a count of finished BaseNodeMock.GetSignatureVerifier invocations
func (*BaseNodeMock) GetSignatureVerifierBeforeCounter ¶
func (mmGetSignatureVerifier *BaseNodeMock) GetSignatureVerifierBeforeCounter() uint64
GetSignatureVerifierBeforeCounter returns a count of BaseNodeMock.GetSignatureVerifier invocations
func (*BaseNodeMock) GetStatic ¶
func (mmGetStatic *BaseNodeMock) GetStatic() (s1 StaticProfile)
GetStatic implements BaseNode
func (*BaseNodeMock) GetStaticAfterCounter ¶
func (mmGetStatic *BaseNodeMock) GetStaticAfterCounter() uint64
GetStaticAfterCounter returns a count of finished BaseNodeMock.GetStatic invocations
func (*BaseNodeMock) GetStaticBeforeCounter ¶
func (mmGetStatic *BaseNodeMock) GetStaticBeforeCounter() uint64
GetStaticBeforeCounter returns a count of BaseNodeMock.GetStatic invocations
func (*BaseNodeMock) MinimockFinish ¶
func (m *BaseNodeMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*BaseNodeMock) MinimockGetNodeIDDone ¶
func (m *BaseNodeMock) MinimockGetNodeIDDone() bool
MinimockGetNodeIDDone returns true if the count of the GetNodeID invocations corresponds the number of defined expectations
func (*BaseNodeMock) MinimockGetNodeIDInspect ¶
func (m *BaseNodeMock) MinimockGetNodeIDInspect()
MinimockGetNodeIDInspect logs each unmet expectation
func (*BaseNodeMock) MinimockGetOpModeDone ¶
func (m *BaseNodeMock) MinimockGetOpModeDone() bool
MinimockGetOpModeDone returns true if the count of the GetOpMode invocations corresponds the number of defined expectations
func (*BaseNodeMock) MinimockGetOpModeInspect ¶
func (m *BaseNodeMock) MinimockGetOpModeInspect()
MinimockGetOpModeInspect logs each unmet expectation
func (*BaseNodeMock) MinimockGetSignatureVerifierDone ¶
func (m *BaseNodeMock) MinimockGetSignatureVerifierDone() bool
MinimockGetSignatureVerifierDone returns true if the count of the GetSignatureVerifier invocations corresponds the number of defined expectations
func (*BaseNodeMock) MinimockGetSignatureVerifierInspect ¶
func (m *BaseNodeMock) MinimockGetSignatureVerifierInspect()
MinimockGetSignatureVerifierInspect logs each unmet expectation
func (*BaseNodeMock) MinimockGetStaticDone ¶
func (m *BaseNodeMock) MinimockGetStaticDone() bool
MinimockGetStaticDone returns true if the count of the GetStatic invocations corresponds the number of defined expectations
func (*BaseNodeMock) MinimockGetStaticInspect ¶
func (m *BaseNodeMock) MinimockGetStaticInspect()
MinimockGetStaticInspect logs each unmet expectation
func (*BaseNodeMock) MinimockWait ¶
func (m *BaseNodeMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type BaseNodeMockGetNodeIDExpectation ¶
type BaseNodeMockGetNodeIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
BaseNodeMockGetNodeIDExpectation specifies expectation struct of the BaseNode.GetNodeID
type BaseNodeMockGetNodeIDResults ¶
type BaseNodeMockGetNodeIDResults struct {
// contains filtered or unexported fields
}
BaseNodeMockGetNodeIDResults contains results of the BaseNode.GetNodeID
type BaseNodeMockGetOpModeExpectation ¶
type BaseNodeMockGetOpModeExpectation struct { Counter uint64 // contains filtered or unexported fields }
BaseNodeMockGetOpModeExpectation specifies expectation struct of the BaseNode.GetOpMode
type BaseNodeMockGetOpModeResults ¶
type BaseNodeMockGetOpModeResults struct {
// contains filtered or unexported fields
}
BaseNodeMockGetOpModeResults contains results of the BaseNode.GetOpMode
type BaseNodeMockGetSignatureVerifierExpectation ¶
type BaseNodeMockGetSignatureVerifierExpectation struct { Counter uint64 // contains filtered or unexported fields }
BaseNodeMockGetSignatureVerifierExpectation specifies expectation struct of the BaseNode.GetSignatureVerifier
type BaseNodeMockGetSignatureVerifierResults ¶
type BaseNodeMockGetSignatureVerifierResults struct {
// contains filtered or unexported fields
}
BaseNodeMockGetSignatureVerifierResults contains results of the BaseNode.GetSignatureVerifier
type BaseNodeMockGetStaticExpectation ¶
type BaseNodeMockGetStaticExpectation struct { Counter uint64 // contains filtered or unexported fields }
BaseNodeMockGetStaticExpectation specifies expectation struct of the BaseNode.GetStatic
type BaseNodeMockGetStaticResults ¶
type BaseNodeMockGetStaticResults struct {
// contains filtered or unexported fields
}
BaseNodeMockGetStaticResults contains results of the BaseNode.GetStatic
type BriefCandidateProfile ¶
type CandidateProfile ¶
type CandidateProfile interface { BriefCandidateProfile CandidateProfileExtension }
type CandidateProfileExtension ¶
type CandidateProfileExtension interface { GetPowerLevels() member.PowerSet GetExtraEndpoints() []endpoints.Outbound GetReference() reference.Global GetIssuedAtPulse() pulse.Number // =0 when a node was connected during zeronet GetIssuedAtTime() time.Time GetIssuerID() node.ShortNodeID GetIssuerSignature() cryptkit.SignatureHolder }
type CandidateProfileMock ¶
type CandidateProfileMock struct { GetBriefIntroSignedDigestMock mCandidateProfileMockGetBriefIntroSignedDigest GetDefaultEndpointMock mCandidateProfileMockGetDefaultEndpoint GetExtraEndpointsMock mCandidateProfileMockGetExtraEndpoints GetIssuedAtPulseMock mCandidateProfileMockGetIssuedAtPulse GetIssuedAtTimeMock mCandidateProfileMockGetIssuedAtTime GetIssuerIDMock mCandidateProfileMockGetIssuerID GetIssuerSignatureMock mCandidateProfileMockGetIssuerSignature GetNodePublicKeyMock mCandidateProfileMockGetNodePublicKey GetPowerLevelsMock mCandidateProfileMockGetPowerLevels GetPrimaryRoleMock mCandidateProfileMockGetPrimaryRole GetReferenceMock mCandidateProfileMockGetReference GetSpecialRolesMock mCandidateProfileMockGetSpecialRoles GetStartPowerMock mCandidateProfileMockGetStartPower GetStaticNodeIDMock mCandidateProfileMockGetStaticNodeID // contains filtered or unexported fields }
CandidateProfileMock implements CandidateProfile
func NewCandidateProfileMock ¶
func NewCandidateProfileMock(t minimock.Tester) *CandidateProfileMock
NewCandidateProfileMock returns a mock for CandidateProfile
func (*CandidateProfileMock) GetBriefIntroSignedDigest ¶
func (mmGetBriefIntroSignedDigest *CandidateProfileMock) GetBriefIntroSignedDigest() (s1 cryptkit.SignedDigestHolder)
GetBriefIntroSignedDigest implements CandidateProfile
func (*CandidateProfileMock) GetBriefIntroSignedDigestAfterCounter ¶
func (mmGetBriefIntroSignedDigest *CandidateProfileMock) GetBriefIntroSignedDigestAfterCounter() uint64
GetBriefIntroSignedDigestAfterCounter returns a count of finished CandidateProfileMock.GetBriefIntroSignedDigest invocations
func (*CandidateProfileMock) GetBriefIntroSignedDigestBeforeCounter ¶
func (mmGetBriefIntroSignedDigest *CandidateProfileMock) GetBriefIntroSignedDigestBeforeCounter() uint64
GetBriefIntroSignedDigestBeforeCounter returns a count of CandidateProfileMock.GetBriefIntroSignedDigest invocations
func (*CandidateProfileMock) GetDefaultEndpoint ¶
func (mmGetDefaultEndpoint *CandidateProfileMock) GetDefaultEndpoint() (o1 endpoints.Outbound)
GetDefaultEndpoint implements CandidateProfile
func (*CandidateProfileMock) GetDefaultEndpointAfterCounter ¶
func (mmGetDefaultEndpoint *CandidateProfileMock) GetDefaultEndpointAfterCounter() uint64
GetDefaultEndpointAfterCounter returns a count of finished CandidateProfileMock.GetDefaultEndpoint invocations
func (*CandidateProfileMock) GetDefaultEndpointBeforeCounter ¶
func (mmGetDefaultEndpoint *CandidateProfileMock) GetDefaultEndpointBeforeCounter() uint64
GetDefaultEndpointBeforeCounter returns a count of CandidateProfileMock.GetDefaultEndpoint invocations
func (*CandidateProfileMock) GetExtraEndpoints ¶
func (mmGetExtraEndpoints *CandidateProfileMock) GetExtraEndpoints() (oa1 []endpoints.Outbound)
GetExtraEndpoints implements CandidateProfile
func (*CandidateProfileMock) GetExtraEndpointsAfterCounter ¶
func (mmGetExtraEndpoints *CandidateProfileMock) GetExtraEndpointsAfterCounter() uint64
GetExtraEndpointsAfterCounter returns a count of finished CandidateProfileMock.GetExtraEndpoints invocations
func (*CandidateProfileMock) GetExtraEndpointsBeforeCounter ¶
func (mmGetExtraEndpoints *CandidateProfileMock) GetExtraEndpointsBeforeCounter() uint64
GetExtraEndpointsBeforeCounter returns a count of CandidateProfileMock.GetExtraEndpoints invocations
func (*CandidateProfileMock) GetIssuedAtPulse ¶
func (mmGetIssuedAtPulse *CandidateProfileMock) GetIssuedAtPulse() (n1 pulse.Number)
GetIssuedAtPulse implements CandidateProfile
func (*CandidateProfileMock) GetIssuedAtPulseAfterCounter ¶
func (mmGetIssuedAtPulse *CandidateProfileMock) GetIssuedAtPulseAfterCounter() uint64
GetIssuedAtPulseAfterCounter returns a count of finished CandidateProfileMock.GetIssuedAtPulse invocations
func (*CandidateProfileMock) GetIssuedAtPulseBeforeCounter ¶
func (mmGetIssuedAtPulse *CandidateProfileMock) GetIssuedAtPulseBeforeCounter() uint64
GetIssuedAtPulseBeforeCounter returns a count of CandidateProfileMock.GetIssuedAtPulse invocations
func (*CandidateProfileMock) GetIssuedAtTime ¶
func (mmGetIssuedAtTime *CandidateProfileMock) GetIssuedAtTime() (t1 time.Time)
GetIssuedAtTime implements CandidateProfile
func (*CandidateProfileMock) GetIssuedAtTimeAfterCounter ¶
func (mmGetIssuedAtTime *CandidateProfileMock) GetIssuedAtTimeAfterCounter() uint64
GetIssuedAtTimeAfterCounter returns a count of finished CandidateProfileMock.GetIssuedAtTime invocations
func (*CandidateProfileMock) GetIssuedAtTimeBeforeCounter ¶
func (mmGetIssuedAtTime *CandidateProfileMock) GetIssuedAtTimeBeforeCounter() uint64
GetIssuedAtTimeBeforeCounter returns a count of CandidateProfileMock.GetIssuedAtTime invocations
func (*CandidateProfileMock) GetIssuerID ¶
func (mmGetIssuerID *CandidateProfileMock) GetIssuerID() (s1 node.ShortNodeID)
GetIssuerID implements CandidateProfile
func (*CandidateProfileMock) GetIssuerIDAfterCounter ¶
func (mmGetIssuerID *CandidateProfileMock) GetIssuerIDAfterCounter() uint64
GetIssuerIDAfterCounter returns a count of finished CandidateProfileMock.GetIssuerID invocations
func (*CandidateProfileMock) GetIssuerIDBeforeCounter ¶
func (mmGetIssuerID *CandidateProfileMock) GetIssuerIDBeforeCounter() uint64
GetIssuerIDBeforeCounter returns a count of CandidateProfileMock.GetIssuerID invocations
func (*CandidateProfileMock) GetIssuerSignature ¶
func (mmGetIssuerSignature *CandidateProfileMock) GetIssuerSignature() (s1 cryptkit.SignatureHolder)
GetIssuerSignature implements CandidateProfile
func (*CandidateProfileMock) GetIssuerSignatureAfterCounter ¶
func (mmGetIssuerSignature *CandidateProfileMock) GetIssuerSignatureAfterCounter() uint64
GetIssuerSignatureAfterCounter returns a count of finished CandidateProfileMock.GetIssuerSignature invocations
func (*CandidateProfileMock) GetIssuerSignatureBeforeCounter ¶
func (mmGetIssuerSignature *CandidateProfileMock) GetIssuerSignatureBeforeCounter() uint64
GetIssuerSignatureBeforeCounter returns a count of CandidateProfileMock.GetIssuerSignature invocations
func (*CandidateProfileMock) GetNodePublicKey ¶
func (mmGetNodePublicKey *CandidateProfileMock) GetNodePublicKey() (s1 cryptkit.SigningKeyHolder)
GetNodePublicKey implements CandidateProfile
func (*CandidateProfileMock) GetNodePublicKeyAfterCounter ¶
func (mmGetNodePublicKey *CandidateProfileMock) GetNodePublicKeyAfterCounter() uint64
GetNodePublicKeyAfterCounter returns a count of finished CandidateProfileMock.GetNodePublicKey invocations
func (*CandidateProfileMock) GetNodePublicKeyBeforeCounter ¶
func (mmGetNodePublicKey *CandidateProfileMock) GetNodePublicKeyBeforeCounter() uint64
GetNodePublicKeyBeforeCounter returns a count of CandidateProfileMock.GetNodePublicKey invocations
func (*CandidateProfileMock) GetPowerLevels ¶
func (mmGetPowerLevels *CandidateProfileMock) GetPowerLevels() (p1 member.PowerSet)
GetPowerLevels implements CandidateProfile
func (*CandidateProfileMock) GetPowerLevelsAfterCounter ¶
func (mmGetPowerLevels *CandidateProfileMock) GetPowerLevelsAfterCounter() uint64
GetPowerLevelsAfterCounter returns a count of finished CandidateProfileMock.GetPowerLevels invocations
func (*CandidateProfileMock) GetPowerLevelsBeforeCounter ¶
func (mmGetPowerLevels *CandidateProfileMock) GetPowerLevelsBeforeCounter() uint64
GetPowerLevelsBeforeCounter returns a count of CandidateProfileMock.GetPowerLevels invocations
func (*CandidateProfileMock) GetPrimaryRole ¶
func (mmGetPrimaryRole *CandidateProfileMock) GetPrimaryRole() (p1 member.PrimaryRole)
GetPrimaryRole implements CandidateProfile
func (*CandidateProfileMock) GetPrimaryRoleAfterCounter ¶
func (mmGetPrimaryRole *CandidateProfileMock) GetPrimaryRoleAfterCounter() uint64
GetPrimaryRoleAfterCounter returns a count of finished CandidateProfileMock.GetPrimaryRole invocations
func (*CandidateProfileMock) GetPrimaryRoleBeforeCounter ¶
func (mmGetPrimaryRole *CandidateProfileMock) GetPrimaryRoleBeforeCounter() uint64
GetPrimaryRoleBeforeCounter returns a count of CandidateProfileMock.GetPrimaryRole invocations
func (*CandidateProfileMock) GetReference ¶
func (mmGetReference *CandidateProfileMock) GetReference() (g1 reference.Global)
GetReference implements CandidateProfile
func (*CandidateProfileMock) GetReferenceAfterCounter ¶
func (mmGetReference *CandidateProfileMock) GetReferenceAfterCounter() uint64
GetReferenceAfterCounter returns a count of finished CandidateProfileMock.GetReference invocations
func (*CandidateProfileMock) GetReferenceBeforeCounter ¶
func (mmGetReference *CandidateProfileMock) GetReferenceBeforeCounter() uint64
GetReferenceBeforeCounter returns a count of CandidateProfileMock.GetReference invocations
func (*CandidateProfileMock) GetSpecialRoles ¶
func (mmGetSpecialRoles *CandidateProfileMock) GetSpecialRoles() (s1 member.SpecialRole)
GetSpecialRoles implements CandidateProfile
func (*CandidateProfileMock) GetSpecialRolesAfterCounter ¶
func (mmGetSpecialRoles *CandidateProfileMock) GetSpecialRolesAfterCounter() uint64
GetSpecialRolesAfterCounter returns a count of finished CandidateProfileMock.GetSpecialRoles invocations
func (*CandidateProfileMock) GetSpecialRolesBeforeCounter ¶
func (mmGetSpecialRoles *CandidateProfileMock) GetSpecialRolesBeforeCounter() uint64
GetSpecialRolesBeforeCounter returns a count of CandidateProfileMock.GetSpecialRoles invocations
func (*CandidateProfileMock) GetStartPower ¶
func (mmGetStartPower *CandidateProfileMock) GetStartPower() (p1 member.Power)
GetStartPower implements CandidateProfile
func (*CandidateProfileMock) GetStartPowerAfterCounter ¶
func (mmGetStartPower *CandidateProfileMock) GetStartPowerAfterCounter() uint64
GetStartPowerAfterCounter returns a count of finished CandidateProfileMock.GetStartPower invocations
func (*CandidateProfileMock) GetStartPowerBeforeCounter ¶
func (mmGetStartPower *CandidateProfileMock) GetStartPowerBeforeCounter() uint64
GetStartPowerBeforeCounter returns a count of CandidateProfileMock.GetStartPower invocations
func (*CandidateProfileMock) GetStaticNodeID ¶
func (mmGetStaticNodeID *CandidateProfileMock) GetStaticNodeID() (s1 node.ShortNodeID)
GetStaticNodeID implements CandidateProfile
func (*CandidateProfileMock) GetStaticNodeIDAfterCounter ¶
func (mmGetStaticNodeID *CandidateProfileMock) GetStaticNodeIDAfterCounter() uint64
GetStaticNodeIDAfterCounter returns a count of finished CandidateProfileMock.GetStaticNodeID invocations
func (*CandidateProfileMock) GetStaticNodeIDBeforeCounter ¶
func (mmGetStaticNodeID *CandidateProfileMock) GetStaticNodeIDBeforeCounter() uint64
GetStaticNodeIDBeforeCounter returns a count of CandidateProfileMock.GetStaticNodeID invocations
func (*CandidateProfileMock) MinimockFinish ¶
func (m *CandidateProfileMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CandidateProfileMock) MinimockGetBriefIntroSignedDigestDone ¶
func (m *CandidateProfileMock) MinimockGetBriefIntroSignedDigestDone() bool
MinimockGetBriefIntroSignedDigestDone returns true if the count of the GetBriefIntroSignedDigest invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetBriefIntroSignedDigestInspect ¶
func (m *CandidateProfileMock) MinimockGetBriefIntroSignedDigestInspect()
MinimockGetBriefIntroSignedDigestInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetDefaultEndpointDone ¶
func (m *CandidateProfileMock) MinimockGetDefaultEndpointDone() bool
MinimockGetDefaultEndpointDone returns true if the count of the GetDefaultEndpoint invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetDefaultEndpointInspect ¶
func (m *CandidateProfileMock) MinimockGetDefaultEndpointInspect()
MinimockGetDefaultEndpointInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetExtraEndpointsDone ¶
func (m *CandidateProfileMock) MinimockGetExtraEndpointsDone() bool
MinimockGetExtraEndpointsDone returns true if the count of the GetExtraEndpoints invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetExtraEndpointsInspect ¶
func (m *CandidateProfileMock) MinimockGetExtraEndpointsInspect()
MinimockGetExtraEndpointsInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetIssuedAtPulseDone ¶
func (m *CandidateProfileMock) MinimockGetIssuedAtPulseDone() bool
MinimockGetIssuedAtPulseDone returns true if the count of the GetIssuedAtPulse invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetIssuedAtPulseInspect ¶
func (m *CandidateProfileMock) MinimockGetIssuedAtPulseInspect()
MinimockGetIssuedAtPulseInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetIssuedAtTimeDone ¶
func (m *CandidateProfileMock) MinimockGetIssuedAtTimeDone() bool
MinimockGetIssuedAtTimeDone returns true if the count of the GetIssuedAtTime invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetIssuedAtTimeInspect ¶
func (m *CandidateProfileMock) MinimockGetIssuedAtTimeInspect()
MinimockGetIssuedAtTimeInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetIssuerIDDone ¶
func (m *CandidateProfileMock) MinimockGetIssuerIDDone() bool
MinimockGetIssuerIDDone returns true if the count of the GetIssuerID invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetIssuerIDInspect ¶
func (m *CandidateProfileMock) MinimockGetIssuerIDInspect()
MinimockGetIssuerIDInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetIssuerSignatureDone ¶
func (m *CandidateProfileMock) MinimockGetIssuerSignatureDone() bool
MinimockGetIssuerSignatureDone returns true if the count of the GetIssuerSignature invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetIssuerSignatureInspect ¶
func (m *CandidateProfileMock) MinimockGetIssuerSignatureInspect()
MinimockGetIssuerSignatureInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetNodePublicKeyDone ¶
func (m *CandidateProfileMock) MinimockGetNodePublicKeyDone() bool
MinimockGetNodePublicKeyDone returns true if the count of the GetNodePublicKey invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetNodePublicKeyInspect ¶
func (m *CandidateProfileMock) MinimockGetNodePublicKeyInspect()
MinimockGetNodePublicKeyInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetPowerLevelsDone ¶
func (m *CandidateProfileMock) MinimockGetPowerLevelsDone() bool
MinimockGetPowerLevelsDone returns true if the count of the GetPowerLevels invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetPowerLevelsInspect ¶
func (m *CandidateProfileMock) MinimockGetPowerLevelsInspect()
MinimockGetPowerLevelsInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetPrimaryRoleDone ¶
func (m *CandidateProfileMock) MinimockGetPrimaryRoleDone() bool
MinimockGetPrimaryRoleDone returns true if the count of the GetPrimaryRole invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetPrimaryRoleInspect ¶
func (m *CandidateProfileMock) MinimockGetPrimaryRoleInspect()
MinimockGetPrimaryRoleInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetReferenceDone ¶
func (m *CandidateProfileMock) MinimockGetReferenceDone() bool
MinimockGetReferenceDone returns true if the count of the GetReference invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetReferenceInspect ¶
func (m *CandidateProfileMock) MinimockGetReferenceInspect()
MinimockGetReferenceInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetSpecialRolesDone ¶
func (m *CandidateProfileMock) MinimockGetSpecialRolesDone() bool
MinimockGetSpecialRolesDone returns true if the count of the GetSpecialRoles invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetSpecialRolesInspect ¶
func (m *CandidateProfileMock) MinimockGetSpecialRolesInspect()
MinimockGetSpecialRolesInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetStartPowerDone ¶
func (m *CandidateProfileMock) MinimockGetStartPowerDone() bool
MinimockGetStartPowerDone returns true if the count of the GetStartPower invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetStartPowerInspect ¶
func (m *CandidateProfileMock) MinimockGetStartPowerInspect()
MinimockGetStartPowerInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockGetStaticNodeIDDone ¶
func (m *CandidateProfileMock) MinimockGetStaticNodeIDDone() bool
MinimockGetStaticNodeIDDone returns true if the count of the GetStaticNodeID invocations corresponds the number of defined expectations
func (*CandidateProfileMock) MinimockGetStaticNodeIDInspect ¶
func (m *CandidateProfileMock) MinimockGetStaticNodeIDInspect()
MinimockGetStaticNodeIDInspect logs each unmet expectation
func (*CandidateProfileMock) MinimockWait ¶
func (m *CandidateProfileMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type CandidateProfileMockGetBriefIntroSignedDigestExpectation ¶
type CandidateProfileMockGetBriefIntroSignedDigestExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetBriefIntroSignedDigestExpectation specifies expectation struct of the CandidateProfile.GetBriefIntroSignedDigest
type CandidateProfileMockGetBriefIntroSignedDigestResults ¶
type CandidateProfileMockGetBriefIntroSignedDigestResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetBriefIntroSignedDigestResults contains results of the CandidateProfile.GetBriefIntroSignedDigest
type CandidateProfileMockGetDefaultEndpointExpectation ¶
type CandidateProfileMockGetDefaultEndpointExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetDefaultEndpointExpectation specifies expectation struct of the CandidateProfile.GetDefaultEndpoint
type CandidateProfileMockGetDefaultEndpointResults ¶
type CandidateProfileMockGetDefaultEndpointResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetDefaultEndpointResults contains results of the CandidateProfile.GetDefaultEndpoint
type CandidateProfileMockGetExtraEndpointsExpectation ¶
type CandidateProfileMockGetExtraEndpointsExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetExtraEndpointsExpectation specifies expectation struct of the CandidateProfile.GetExtraEndpoints
type CandidateProfileMockGetExtraEndpointsResults ¶
type CandidateProfileMockGetExtraEndpointsResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetExtraEndpointsResults contains results of the CandidateProfile.GetExtraEndpoints
type CandidateProfileMockGetIssuedAtPulseExpectation ¶
type CandidateProfileMockGetIssuedAtPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetIssuedAtPulseExpectation specifies expectation struct of the CandidateProfile.GetIssuedAtPulse
type CandidateProfileMockGetIssuedAtPulseResults ¶
type CandidateProfileMockGetIssuedAtPulseResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetIssuedAtPulseResults contains results of the CandidateProfile.GetIssuedAtPulse
type CandidateProfileMockGetIssuedAtTimeExpectation ¶
type CandidateProfileMockGetIssuedAtTimeExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetIssuedAtTimeExpectation specifies expectation struct of the CandidateProfile.GetIssuedAtTime
type CandidateProfileMockGetIssuedAtTimeResults ¶
type CandidateProfileMockGetIssuedAtTimeResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetIssuedAtTimeResults contains results of the CandidateProfile.GetIssuedAtTime
type CandidateProfileMockGetIssuerIDExpectation ¶
type CandidateProfileMockGetIssuerIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetIssuerIDExpectation specifies expectation struct of the CandidateProfile.GetIssuerID
type CandidateProfileMockGetIssuerIDResults ¶
type CandidateProfileMockGetIssuerIDResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetIssuerIDResults contains results of the CandidateProfile.GetIssuerID
type CandidateProfileMockGetIssuerSignatureExpectation ¶
type CandidateProfileMockGetIssuerSignatureExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetIssuerSignatureExpectation specifies expectation struct of the CandidateProfile.GetIssuerSignature
type CandidateProfileMockGetIssuerSignatureResults ¶
type CandidateProfileMockGetIssuerSignatureResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetIssuerSignatureResults contains results of the CandidateProfile.GetIssuerSignature
type CandidateProfileMockGetNodePublicKeyExpectation ¶
type CandidateProfileMockGetNodePublicKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetNodePublicKeyExpectation specifies expectation struct of the CandidateProfile.GetNodePublicKey
type CandidateProfileMockGetNodePublicKeyResults ¶
type CandidateProfileMockGetNodePublicKeyResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetNodePublicKeyResults contains results of the CandidateProfile.GetNodePublicKey
type CandidateProfileMockGetPowerLevelsExpectation ¶
type CandidateProfileMockGetPowerLevelsExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetPowerLevelsExpectation specifies expectation struct of the CandidateProfile.GetPowerLevels
type CandidateProfileMockGetPowerLevelsResults ¶
type CandidateProfileMockGetPowerLevelsResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetPowerLevelsResults contains results of the CandidateProfile.GetPowerLevels
type CandidateProfileMockGetPrimaryRoleExpectation ¶
type CandidateProfileMockGetPrimaryRoleExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetPrimaryRoleExpectation specifies expectation struct of the CandidateProfile.GetPrimaryRole
type CandidateProfileMockGetPrimaryRoleResults ¶
type CandidateProfileMockGetPrimaryRoleResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetPrimaryRoleResults contains results of the CandidateProfile.GetPrimaryRole
type CandidateProfileMockGetReferenceExpectation ¶
type CandidateProfileMockGetReferenceExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetReferenceExpectation specifies expectation struct of the CandidateProfile.GetReference
type CandidateProfileMockGetReferenceResults ¶
type CandidateProfileMockGetReferenceResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetReferenceResults contains results of the CandidateProfile.GetReference
type CandidateProfileMockGetSpecialRolesExpectation ¶
type CandidateProfileMockGetSpecialRolesExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetSpecialRolesExpectation specifies expectation struct of the CandidateProfile.GetSpecialRoles
type CandidateProfileMockGetSpecialRolesResults ¶
type CandidateProfileMockGetSpecialRolesResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetSpecialRolesResults contains results of the CandidateProfile.GetSpecialRoles
type CandidateProfileMockGetStartPowerExpectation ¶
type CandidateProfileMockGetStartPowerExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetStartPowerExpectation specifies expectation struct of the CandidateProfile.GetStartPower
type CandidateProfileMockGetStartPowerResults ¶
type CandidateProfileMockGetStartPowerResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetStartPowerResults contains results of the CandidateProfile.GetStartPower
type CandidateProfileMockGetStaticNodeIDExpectation ¶
type CandidateProfileMockGetStaticNodeIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
CandidateProfileMockGetStaticNodeIDExpectation specifies expectation struct of the CandidateProfile.GetStaticNodeID
type CandidateProfileMockGetStaticNodeIDResults ¶
type CandidateProfileMockGetStaticNodeIDResults struct {
// contains filtered or unexported fields
}
CandidateProfileMockGetStaticNodeIDResults contains results of the CandidateProfile.GetStaticNodeID
type EvictedNode ¶
type Factory ¶
type Factory interface { CreateFullIntroProfile(candidate CandidateProfile) StaticProfile CreateBriefIntroProfile(candidate BriefCandidateProfile) StaticProfile CreateUpgradableIntroProfile(candidate BriefCandidateProfile) StaticProfile TryConvertUpgradableIntroProfile(profile StaticProfile) (StaticProfile, bool) }
func NewSimpleProfileIntroFactory ¶
func NewSimpleProfileIntroFactory(pksFactory cryptkit.KeyStoreFactory) Factory
type FactoryMock ¶
type FactoryMock struct { CreateBriefIntroProfileMock mFactoryMockCreateBriefIntroProfile CreateFullIntroProfileMock mFactoryMockCreateFullIntroProfile CreateUpgradableIntroProfileMock mFactoryMockCreateUpgradableIntroProfile TryConvertUpgradableIntroProfileMock mFactoryMockTryConvertUpgradableIntroProfile // contains filtered or unexported fields }
FactoryMock implements Factory
func NewFactoryMock ¶
func NewFactoryMock(t minimock.Tester) *FactoryMock
NewFactoryMock returns a mock for Factory
func (*FactoryMock) CreateBriefIntroProfile ¶
func (mmCreateBriefIntroProfile *FactoryMock) CreateBriefIntroProfile(candidate BriefCandidateProfile) (s1 StaticProfile)
CreateBriefIntroProfile implements Factory
func (*FactoryMock) CreateBriefIntroProfileAfterCounter ¶
func (mmCreateBriefIntroProfile *FactoryMock) CreateBriefIntroProfileAfterCounter() uint64
CreateBriefIntroProfileAfterCounter returns a count of finished FactoryMock.CreateBriefIntroProfile invocations
func (*FactoryMock) CreateBriefIntroProfileBeforeCounter ¶
func (mmCreateBriefIntroProfile *FactoryMock) CreateBriefIntroProfileBeforeCounter() uint64
CreateBriefIntroProfileBeforeCounter returns a count of FactoryMock.CreateBriefIntroProfile invocations
func (*FactoryMock) CreateFullIntroProfile ¶
func (mmCreateFullIntroProfile *FactoryMock) CreateFullIntroProfile(candidate CandidateProfile) (s1 StaticProfile)
CreateFullIntroProfile implements Factory
func (*FactoryMock) CreateFullIntroProfileAfterCounter ¶
func (mmCreateFullIntroProfile *FactoryMock) CreateFullIntroProfileAfterCounter() uint64
CreateFullIntroProfileAfterCounter returns a count of finished FactoryMock.CreateFullIntroProfile invocations
func (*FactoryMock) CreateFullIntroProfileBeforeCounter ¶
func (mmCreateFullIntroProfile *FactoryMock) CreateFullIntroProfileBeforeCounter() uint64
CreateFullIntroProfileBeforeCounter returns a count of FactoryMock.CreateFullIntroProfile invocations
func (*FactoryMock) CreateUpgradableIntroProfile ¶
func (mmCreateUpgradableIntroProfile *FactoryMock) CreateUpgradableIntroProfile(candidate BriefCandidateProfile) (s1 StaticProfile)
CreateUpgradableIntroProfile implements Factory
func (*FactoryMock) CreateUpgradableIntroProfileAfterCounter ¶
func (mmCreateUpgradableIntroProfile *FactoryMock) CreateUpgradableIntroProfileAfterCounter() uint64
CreateUpgradableIntroProfileAfterCounter returns a count of finished FactoryMock.CreateUpgradableIntroProfile invocations
func (*FactoryMock) CreateUpgradableIntroProfileBeforeCounter ¶
func (mmCreateUpgradableIntroProfile *FactoryMock) CreateUpgradableIntroProfileBeforeCounter() uint64
CreateUpgradableIntroProfileBeforeCounter returns a count of FactoryMock.CreateUpgradableIntroProfile invocations
func (*FactoryMock) MinimockCreateBriefIntroProfileDone ¶
func (m *FactoryMock) MinimockCreateBriefIntroProfileDone() bool
MinimockCreateBriefIntroProfileDone returns true if the count of the CreateBriefIntroProfile invocations corresponds the number of defined expectations
func (*FactoryMock) MinimockCreateBriefIntroProfileInspect ¶
func (m *FactoryMock) MinimockCreateBriefIntroProfileInspect()
MinimockCreateBriefIntroProfileInspect logs each unmet expectation
func (*FactoryMock) MinimockCreateFullIntroProfileDone ¶
func (m *FactoryMock) MinimockCreateFullIntroProfileDone() bool
MinimockCreateFullIntroProfileDone returns true if the count of the CreateFullIntroProfile invocations corresponds the number of defined expectations
func (*FactoryMock) MinimockCreateFullIntroProfileInspect ¶
func (m *FactoryMock) MinimockCreateFullIntroProfileInspect()
MinimockCreateFullIntroProfileInspect logs each unmet expectation
func (*FactoryMock) MinimockCreateUpgradableIntroProfileDone ¶
func (m *FactoryMock) MinimockCreateUpgradableIntroProfileDone() bool
MinimockCreateUpgradableIntroProfileDone returns true if the count of the CreateUpgradableIntroProfile invocations corresponds the number of defined expectations
func (*FactoryMock) MinimockCreateUpgradableIntroProfileInspect ¶
func (m *FactoryMock) MinimockCreateUpgradableIntroProfileInspect()
MinimockCreateUpgradableIntroProfileInspect logs each unmet expectation
func (*FactoryMock) MinimockFinish ¶
func (m *FactoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*FactoryMock) MinimockTryConvertUpgradableIntroProfileDone ¶
func (m *FactoryMock) MinimockTryConvertUpgradableIntroProfileDone() bool
MinimockTryConvertUpgradableIntroProfileDone returns true if the count of the TryConvertUpgradableIntroProfile invocations corresponds the number of defined expectations
func (*FactoryMock) MinimockTryConvertUpgradableIntroProfileInspect ¶
func (m *FactoryMock) MinimockTryConvertUpgradableIntroProfileInspect()
MinimockTryConvertUpgradableIntroProfileInspect logs each unmet expectation
func (*FactoryMock) MinimockWait ¶
func (m *FactoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*FactoryMock) TryConvertUpgradableIntroProfile ¶
func (mmTryConvertUpgradableIntroProfile *FactoryMock) TryConvertUpgradableIntroProfile(profile StaticProfile) (s1 StaticProfile, b1 bool)
TryConvertUpgradableIntroProfile implements Factory
func (*FactoryMock) TryConvertUpgradableIntroProfileAfterCounter ¶
func (mmTryConvertUpgradableIntroProfile *FactoryMock) TryConvertUpgradableIntroProfileAfterCounter() uint64
TryConvertUpgradableIntroProfileAfterCounter returns a count of finished FactoryMock.TryConvertUpgradableIntroProfile invocations
func (*FactoryMock) TryConvertUpgradableIntroProfileBeforeCounter ¶
func (mmTryConvertUpgradableIntroProfile *FactoryMock) TryConvertUpgradableIntroProfileBeforeCounter() uint64
TryConvertUpgradableIntroProfileBeforeCounter returns a count of FactoryMock.TryConvertUpgradableIntroProfile invocations
type FactoryMockCreateBriefIntroProfileExpectation ¶
type FactoryMockCreateBriefIntroProfileExpectation struct { Counter uint64 // contains filtered or unexported fields }
FactoryMockCreateBriefIntroProfileExpectation specifies expectation struct of the Factory.CreateBriefIntroProfile
func (*FactoryMockCreateBriefIntroProfileExpectation) Then ¶
func (e *FactoryMockCreateBriefIntroProfileExpectation) Then(s1 StaticProfile) *FactoryMock
Then sets up Factory.CreateBriefIntroProfile return parameters for the expectation previously defined by the When method
type FactoryMockCreateBriefIntroProfileParams ¶
type FactoryMockCreateBriefIntroProfileParams struct {
// contains filtered or unexported fields
}
FactoryMockCreateBriefIntroProfileParams contains parameters of the Factory.CreateBriefIntroProfile
type FactoryMockCreateBriefIntroProfileResults ¶
type FactoryMockCreateBriefIntroProfileResults struct {
// contains filtered or unexported fields
}
FactoryMockCreateBriefIntroProfileResults contains results of the Factory.CreateBriefIntroProfile
type FactoryMockCreateFullIntroProfileExpectation ¶
type FactoryMockCreateFullIntroProfileExpectation struct { Counter uint64 // contains filtered or unexported fields }
FactoryMockCreateFullIntroProfileExpectation specifies expectation struct of the Factory.CreateFullIntroProfile
func (*FactoryMockCreateFullIntroProfileExpectation) Then ¶
func (e *FactoryMockCreateFullIntroProfileExpectation) Then(s1 StaticProfile) *FactoryMock
Then sets up Factory.CreateFullIntroProfile return parameters for the expectation previously defined by the When method
type FactoryMockCreateFullIntroProfileParams ¶
type FactoryMockCreateFullIntroProfileParams struct {
// contains filtered or unexported fields
}
FactoryMockCreateFullIntroProfileParams contains parameters of the Factory.CreateFullIntroProfile
type FactoryMockCreateFullIntroProfileResults ¶
type FactoryMockCreateFullIntroProfileResults struct {
// contains filtered or unexported fields
}
FactoryMockCreateFullIntroProfileResults contains results of the Factory.CreateFullIntroProfile
type FactoryMockCreateUpgradableIntroProfileExpectation ¶
type FactoryMockCreateUpgradableIntroProfileExpectation struct { Counter uint64 // contains filtered or unexported fields }
FactoryMockCreateUpgradableIntroProfileExpectation specifies expectation struct of the Factory.CreateUpgradableIntroProfile
func (*FactoryMockCreateUpgradableIntroProfileExpectation) Then ¶
func (e *FactoryMockCreateUpgradableIntroProfileExpectation) Then(s1 StaticProfile) *FactoryMock
Then sets up Factory.CreateUpgradableIntroProfile return parameters for the expectation previously defined by the When method
type FactoryMockCreateUpgradableIntroProfileParams ¶
type FactoryMockCreateUpgradableIntroProfileParams struct {
// contains filtered or unexported fields
}
FactoryMockCreateUpgradableIntroProfileParams contains parameters of the Factory.CreateUpgradableIntroProfile
type FactoryMockCreateUpgradableIntroProfileResults ¶
type FactoryMockCreateUpgradableIntroProfileResults struct {
// contains filtered or unexported fields
}
FactoryMockCreateUpgradableIntroProfileResults contains results of the Factory.CreateUpgradableIntroProfile
type FactoryMockTryConvertUpgradableIntroProfileExpectation ¶
type FactoryMockTryConvertUpgradableIntroProfileExpectation struct { Counter uint64 // contains filtered or unexported fields }
FactoryMockTryConvertUpgradableIntroProfileExpectation specifies expectation struct of the Factory.TryConvertUpgradableIntroProfile
func (*FactoryMockTryConvertUpgradableIntroProfileExpectation) Then ¶
func (e *FactoryMockTryConvertUpgradableIntroProfileExpectation) Then(s1 StaticProfile, b1 bool) *FactoryMock
Then sets up Factory.TryConvertUpgradableIntroProfile return parameters for the expectation previously defined by the When method
type FactoryMockTryConvertUpgradableIntroProfileParams ¶
type FactoryMockTryConvertUpgradableIntroProfileParams struct {
// contains filtered or unexported fields
}
FactoryMockTryConvertUpgradableIntroProfileParams contains parameters of the Factory.TryConvertUpgradableIntroProfile
type FactoryMockTryConvertUpgradableIntroProfileResults ¶
type FactoryMockTryConvertUpgradableIntroProfileResults struct {
// contains filtered or unexported fields
}
FactoryMockTryConvertUpgradableIntroProfileResults contains results of the Factory.TryConvertUpgradableIntroProfile
type FixedStaticProfile ¶
type FixedStaticProfile struct {
// contains filtered or unexported fields
}
func (*FixedStaticProfile) GetBriefIntroSignedDigest ¶
func (p *FixedStaticProfile) GetBriefIntroSignedDigest() cryptkit.SignedDigestHolder
func (*FixedStaticProfile) GetDefaultEndpoint ¶
func (p *FixedStaticProfile) GetDefaultEndpoint() endpoints.Outbound
func (*FixedStaticProfile) GetExtension ¶
func (p *FixedStaticProfile) GetExtension() StaticProfileExtension
func (*FixedStaticProfile) GetExtraEndpoints ¶
func (p *FixedStaticProfile) GetExtraEndpoints() []endpoints.Outbound
func (*FixedStaticProfile) GetIntroducedNodeID ¶
func (p *FixedStaticProfile) GetIntroducedNodeID() node.ShortNodeID
func (*FixedStaticProfile) GetIssuedAtPulse ¶
func (p *FixedStaticProfile) GetIssuedAtPulse() pulse.Number
func (*FixedStaticProfile) GetIssuedAtTime ¶
func (p *FixedStaticProfile) GetIssuedAtTime() time.Time
func (*FixedStaticProfile) GetIssuerID ¶
func (p *FixedStaticProfile) GetIssuerID() node.ShortNodeID
func (*FixedStaticProfile) GetIssuerSignature ¶
func (p *FixedStaticProfile) GetIssuerSignature() cryptkit.SignatureHolder
func (*FixedStaticProfile) GetNodePublicKey ¶
func (p *FixedStaticProfile) GetNodePublicKey() cryptkit.SigningKeyHolder
func (*FixedStaticProfile) GetPowerLevels ¶
func (p *FixedStaticProfile) GetPowerLevels() member.PowerSet
func (*FixedStaticProfile) GetPrimaryRole ¶
func (p *FixedStaticProfile) GetPrimaryRole() member.PrimaryRole
func (*FixedStaticProfile) GetPublicKeyStore ¶
func (p *FixedStaticProfile) GetPublicKeyStore() cryptkit.PublicKeyStore
func (*FixedStaticProfile) GetReference ¶
func (p *FixedStaticProfile) GetReference() reference.Global
func (*FixedStaticProfile) GetSpecialRoles ¶
func (p *FixedStaticProfile) GetSpecialRoles() member.SpecialRole
func (*FixedStaticProfile) GetStartPower ¶
func (p *FixedStaticProfile) GetStartPower() member.Power
func (*FixedStaticProfile) GetStaticNodeID ¶
func (p *FixedStaticProfile) GetStaticNodeID() node.ShortNodeID
func (*FixedStaticProfile) IsAcceptableHost ¶
func (p *FixedStaticProfile) IsAcceptableHost(from endpoints.Inbound) bool
type HostMock ¶
type HostMock struct { GetDefaultEndpointMock mHostMockGetDefaultEndpoint GetPublicKeyStoreMock mHostMockGetPublicKeyStore IsAcceptableHostMock mHostMockIsAcceptableHost // contains filtered or unexported fields }
HostMock implements Host
func NewHostMock ¶
func NewHostMock(t minimock.Tester) *HostMock
NewHostMock returns a mock for Host
func (*HostMock) GetDefaultEndpoint ¶
GetDefaultEndpoint implements Host
func (*HostMock) GetDefaultEndpointAfterCounter ¶
GetDefaultEndpointAfterCounter returns a count of finished HostMock.GetDefaultEndpoint invocations
func (*HostMock) GetDefaultEndpointBeforeCounter ¶
GetDefaultEndpointBeforeCounter returns a count of HostMock.GetDefaultEndpoint invocations
func (*HostMock) GetPublicKeyStore ¶
func (mmGetPublicKeyStore *HostMock) GetPublicKeyStore() (p1 cryptkit.PublicKeyStore)
GetPublicKeyStore implements Host
func (*HostMock) GetPublicKeyStoreAfterCounter ¶
GetPublicKeyStoreAfterCounter returns a count of finished HostMock.GetPublicKeyStore invocations
func (*HostMock) GetPublicKeyStoreBeforeCounter ¶
GetPublicKeyStoreBeforeCounter returns a count of HostMock.GetPublicKeyStore invocations
func (*HostMock) IsAcceptableHost ¶
IsAcceptableHost implements Host
func (*HostMock) IsAcceptableHostAfterCounter ¶
IsAcceptableHostAfterCounter returns a count of finished HostMock.IsAcceptableHost invocations
func (*HostMock) IsAcceptableHostBeforeCounter ¶
IsAcceptableHostBeforeCounter returns a count of HostMock.IsAcceptableHost invocations
func (*HostMock) MinimockFinish ¶
func (m *HostMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*HostMock) MinimockGetDefaultEndpointDone ¶
MinimockGetDefaultEndpointDone returns true if the count of the GetDefaultEndpoint invocations corresponds the number of defined expectations
func (*HostMock) MinimockGetDefaultEndpointInspect ¶
func (m *HostMock) MinimockGetDefaultEndpointInspect()
MinimockGetDefaultEndpointInspect logs each unmet expectation
func (*HostMock) MinimockGetPublicKeyStoreDone ¶
MinimockGetPublicKeyStoreDone returns true if the count of the GetPublicKeyStore invocations corresponds the number of defined expectations
func (*HostMock) MinimockGetPublicKeyStoreInspect ¶
func (m *HostMock) MinimockGetPublicKeyStoreInspect()
MinimockGetPublicKeyStoreInspect logs each unmet expectation
func (*HostMock) MinimockIsAcceptableHostDone ¶
MinimockIsAcceptableHostDone returns true if the count of the IsAcceptableHost invocations corresponds the number of defined expectations
func (*HostMock) MinimockIsAcceptableHostInspect ¶
func (m *HostMock) MinimockIsAcceptableHostInspect()
MinimockIsAcceptableHostInspect logs each unmet expectation
func (*HostMock) MinimockWait ¶
MinimockWait waits for all mocked methods to be called the expected number of times
type HostMockGetDefaultEndpointExpectation ¶
type HostMockGetDefaultEndpointExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostMockGetDefaultEndpointExpectation specifies expectation struct of the Host.GetDefaultEndpoint
type HostMockGetDefaultEndpointResults ¶
type HostMockGetDefaultEndpointResults struct {
// contains filtered or unexported fields
}
HostMockGetDefaultEndpointResults contains results of the Host.GetDefaultEndpoint
type HostMockGetPublicKeyStoreExpectation ¶
type HostMockGetPublicKeyStoreExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostMockGetPublicKeyStoreExpectation specifies expectation struct of the Host.GetPublicKeyStore
type HostMockGetPublicKeyStoreResults ¶
type HostMockGetPublicKeyStoreResults struct {
// contains filtered or unexported fields
}
HostMockGetPublicKeyStoreResults contains results of the Host.GetPublicKeyStore
type HostMockIsAcceptableHostExpectation ¶
type HostMockIsAcceptableHostExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostMockIsAcceptableHostExpectation specifies expectation struct of the Host.IsAcceptableHost
func (*HostMockIsAcceptableHostExpectation) Then ¶
func (e *HostMockIsAcceptableHostExpectation) Then(b1 bool) *HostMock
Then sets up Host.IsAcceptableHost return parameters for the expectation previously defined by the When method
type HostMockIsAcceptableHostParams ¶
type HostMockIsAcceptableHostParams struct {
// contains filtered or unexported fields
}
HostMockIsAcceptableHostParams contains parameters of the Host.IsAcceptableHost
type HostMockIsAcceptableHostResults ¶
type HostMockIsAcceptableHostResults struct {
// contains filtered or unexported fields
}
HostMockIsAcceptableHostResults contains results of the Host.IsAcceptableHost
type JoinerAnnouncement ¶
type JoinerAnnouncement struct { JoinerProfile StaticProfile IntroducedByID node.ShortNodeID JoinerSecret cryptkit.DigestHolder }
func (JoinerAnnouncement) IsEmpty ¶
func (v JoinerAnnouncement) IsEmpty() bool
type LocalNode ¶
type LocalNode interface { ActiveNode LocalNodeProfile() }
type LocalNodeMock ¶
type LocalNodeMock struct { CanIntroduceJoinerMock mLocalNodeMockCanIntroduceJoiner GetDeclaredPowerMock mLocalNodeMockGetDeclaredPower GetIndexMock mLocalNodeMockGetIndex GetNodeIDMock mLocalNodeMockGetNodeID GetOpModeMock mLocalNodeMockGetOpMode GetSignatureVerifierMock mLocalNodeMockGetSignatureVerifier GetStaticMock mLocalNodeMockGetStatic HasFullProfileMock mLocalNodeMockHasFullProfile IsJoinerMock mLocalNodeMockIsJoiner IsPoweredMock mLocalNodeMockIsPowered IsStatefulMock mLocalNodeMockIsStateful IsVoterMock mLocalNodeMockIsVoter LocalNodeProfileMock mLocalNodeMockLocalNodeProfile // contains filtered or unexported fields }
LocalNodeMock implements LocalNode
func NewLocalNodeMock ¶
func NewLocalNodeMock(t minimock.Tester) *LocalNodeMock
NewLocalNodeMock returns a mock for LocalNode
func (*LocalNodeMock) CanIntroduceJoiner ¶
func (mmCanIntroduceJoiner *LocalNodeMock) CanIntroduceJoiner() (b1 bool)
CanIntroduceJoiner implements LocalNode
func (*LocalNodeMock) CanIntroduceJoinerAfterCounter ¶
func (mmCanIntroduceJoiner *LocalNodeMock) CanIntroduceJoinerAfterCounter() uint64
CanIntroduceJoinerAfterCounter returns a count of finished LocalNodeMock.CanIntroduceJoiner invocations
func (*LocalNodeMock) CanIntroduceJoinerBeforeCounter ¶
func (mmCanIntroduceJoiner *LocalNodeMock) CanIntroduceJoinerBeforeCounter() uint64
CanIntroduceJoinerBeforeCounter returns a count of LocalNodeMock.CanIntroduceJoiner invocations
func (*LocalNodeMock) GetDeclaredPower ¶
func (mmGetDeclaredPower *LocalNodeMock) GetDeclaredPower() (p1 member.Power)
GetDeclaredPower implements LocalNode
func (*LocalNodeMock) GetDeclaredPowerAfterCounter ¶
func (mmGetDeclaredPower *LocalNodeMock) GetDeclaredPowerAfterCounter() uint64
GetDeclaredPowerAfterCounter returns a count of finished LocalNodeMock.GetDeclaredPower invocations
func (*LocalNodeMock) GetDeclaredPowerBeforeCounter ¶
func (mmGetDeclaredPower *LocalNodeMock) GetDeclaredPowerBeforeCounter() uint64
GetDeclaredPowerBeforeCounter returns a count of LocalNodeMock.GetDeclaredPower invocations
func (*LocalNodeMock) GetIndex ¶
func (mmGetIndex *LocalNodeMock) GetIndex() (i1 member.Index)
GetIndex implements LocalNode
func (*LocalNodeMock) GetIndexAfterCounter ¶
func (mmGetIndex *LocalNodeMock) GetIndexAfterCounter() uint64
GetIndexAfterCounter returns a count of finished LocalNodeMock.GetIndex invocations
func (*LocalNodeMock) GetIndexBeforeCounter ¶
func (mmGetIndex *LocalNodeMock) GetIndexBeforeCounter() uint64
GetIndexBeforeCounter returns a count of LocalNodeMock.GetIndex invocations
func (*LocalNodeMock) GetNodeID ¶
func (mmGetNodeID *LocalNodeMock) GetNodeID() (s1 node.ShortNodeID)
GetNodeID implements LocalNode
func (*LocalNodeMock) GetNodeIDAfterCounter ¶
func (mmGetNodeID *LocalNodeMock) GetNodeIDAfterCounter() uint64
GetNodeIDAfterCounter returns a count of finished LocalNodeMock.GetNodeID invocations
func (*LocalNodeMock) GetNodeIDBeforeCounter ¶
func (mmGetNodeID *LocalNodeMock) GetNodeIDBeforeCounter() uint64
GetNodeIDBeforeCounter returns a count of LocalNodeMock.GetNodeID invocations
func (*LocalNodeMock) GetOpMode ¶
func (mmGetOpMode *LocalNodeMock) GetOpMode() (o1 member.OpMode)
GetOpMode implements LocalNode
func (*LocalNodeMock) GetOpModeAfterCounter ¶
func (mmGetOpMode *LocalNodeMock) GetOpModeAfterCounter() uint64
GetOpModeAfterCounter returns a count of finished LocalNodeMock.GetOpMode invocations
func (*LocalNodeMock) GetOpModeBeforeCounter ¶
func (mmGetOpMode *LocalNodeMock) GetOpModeBeforeCounter() uint64
GetOpModeBeforeCounter returns a count of LocalNodeMock.GetOpMode invocations
func (*LocalNodeMock) GetSignatureVerifier ¶
func (mmGetSignatureVerifier *LocalNodeMock) GetSignatureVerifier() (s1 cryptkit.SignatureVerifier)
GetSignatureVerifier implements LocalNode
func (*LocalNodeMock) GetSignatureVerifierAfterCounter ¶
func (mmGetSignatureVerifier *LocalNodeMock) GetSignatureVerifierAfterCounter() uint64
GetSignatureVerifierAfterCounter returns a count of finished LocalNodeMock.GetSignatureVerifier invocations
func (*LocalNodeMock) GetSignatureVerifierBeforeCounter ¶
func (mmGetSignatureVerifier *LocalNodeMock) GetSignatureVerifierBeforeCounter() uint64
GetSignatureVerifierBeforeCounter returns a count of LocalNodeMock.GetSignatureVerifier invocations
func (*LocalNodeMock) GetStatic ¶
func (mmGetStatic *LocalNodeMock) GetStatic() (s1 StaticProfile)
GetStatic implements LocalNode
func (*LocalNodeMock) GetStaticAfterCounter ¶
func (mmGetStatic *LocalNodeMock) GetStaticAfterCounter() uint64
GetStaticAfterCounter returns a count of finished LocalNodeMock.GetStatic invocations
func (*LocalNodeMock) GetStaticBeforeCounter ¶
func (mmGetStatic *LocalNodeMock) GetStaticBeforeCounter() uint64
GetStaticBeforeCounter returns a count of LocalNodeMock.GetStatic invocations
func (*LocalNodeMock) HasFullProfile ¶
func (mmHasFullProfile *LocalNodeMock) HasFullProfile() (b1 bool)
HasFullProfile implements LocalNode
func (*LocalNodeMock) HasFullProfileAfterCounter ¶
func (mmHasFullProfile *LocalNodeMock) HasFullProfileAfterCounter() uint64
HasFullProfileAfterCounter returns a count of finished LocalNodeMock.HasFullProfile invocations
func (*LocalNodeMock) HasFullProfileBeforeCounter ¶
func (mmHasFullProfile *LocalNodeMock) HasFullProfileBeforeCounter() uint64
HasFullProfileBeforeCounter returns a count of LocalNodeMock.HasFullProfile invocations
func (*LocalNodeMock) IsJoiner ¶
func (mmIsJoiner *LocalNodeMock) IsJoiner() (b1 bool)
IsJoiner implements LocalNode
func (*LocalNodeMock) IsJoinerAfterCounter ¶
func (mmIsJoiner *LocalNodeMock) IsJoinerAfterCounter() uint64
IsJoinerAfterCounter returns a count of finished LocalNodeMock.IsJoiner invocations
func (*LocalNodeMock) IsJoinerBeforeCounter ¶
func (mmIsJoiner *LocalNodeMock) IsJoinerBeforeCounter() uint64
IsJoinerBeforeCounter returns a count of LocalNodeMock.IsJoiner invocations
func (*LocalNodeMock) IsPowered ¶
func (mmIsPowered *LocalNodeMock) IsPowered() (b1 bool)
IsPowered implements LocalNode
func (*LocalNodeMock) IsPoweredAfterCounter ¶
func (mmIsPowered *LocalNodeMock) IsPoweredAfterCounter() uint64
IsPoweredAfterCounter returns a count of finished LocalNodeMock.IsPowered invocations
func (*LocalNodeMock) IsPoweredBeforeCounter ¶
func (mmIsPowered *LocalNodeMock) IsPoweredBeforeCounter() uint64
IsPoweredBeforeCounter returns a count of LocalNodeMock.IsPowered invocations
func (*LocalNodeMock) IsStateful ¶
func (mmIsStateful *LocalNodeMock) IsStateful() (b1 bool)
IsStateful implements LocalNode
func (*LocalNodeMock) IsStatefulAfterCounter ¶
func (mmIsStateful *LocalNodeMock) IsStatefulAfterCounter() uint64
IsStatefulAfterCounter returns a count of finished LocalNodeMock.IsStateful invocations
func (*LocalNodeMock) IsStatefulBeforeCounter ¶
func (mmIsStateful *LocalNodeMock) IsStatefulBeforeCounter() uint64
IsStatefulBeforeCounter returns a count of LocalNodeMock.IsStateful invocations
func (*LocalNodeMock) IsVoter ¶
func (mmIsVoter *LocalNodeMock) IsVoter() (b1 bool)
IsVoter implements LocalNode
func (*LocalNodeMock) IsVoterAfterCounter ¶
func (mmIsVoter *LocalNodeMock) IsVoterAfterCounter() uint64
IsVoterAfterCounter returns a count of finished LocalNodeMock.IsVoter invocations
func (*LocalNodeMock) IsVoterBeforeCounter ¶
func (mmIsVoter *LocalNodeMock) IsVoterBeforeCounter() uint64
IsVoterBeforeCounter returns a count of LocalNodeMock.IsVoter invocations
func (*LocalNodeMock) LocalNodeProfile ¶
func (mmLocalNodeProfile *LocalNodeMock) LocalNodeProfile()
LocalNodeProfile implements LocalNode
func (*LocalNodeMock) LocalNodeProfileAfterCounter ¶
func (mmLocalNodeProfile *LocalNodeMock) LocalNodeProfileAfterCounter() uint64
LocalNodeProfileAfterCounter returns a count of finished LocalNodeMock.LocalNodeProfile invocations
func (*LocalNodeMock) LocalNodeProfileBeforeCounter ¶
func (mmLocalNodeProfile *LocalNodeMock) LocalNodeProfileBeforeCounter() uint64
LocalNodeProfileBeforeCounter returns a count of LocalNodeMock.LocalNodeProfile invocations
func (*LocalNodeMock) MinimockCanIntroduceJoinerDone ¶
func (m *LocalNodeMock) MinimockCanIntroduceJoinerDone() bool
MinimockCanIntroduceJoinerDone returns true if the count of the CanIntroduceJoiner invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockCanIntroduceJoinerInspect ¶
func (m *LocalNodeMock) MinimockCanIntroduceJoinerInspect()
MinimockCanIntroduceJoinerInspect logs each unmet expectation
func (*LocalNodeMock) MinimockFinish ¶
func (m *LocalNodeMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*LocalNodeMock) MinimockGetDeclaredPowerDone ¶
func (m *LocalNodeMock) MinimockGetDeclaredPowerDone() bool
MinimockGetDeclaredPowerDone returns true if the count of the GetDeclaredPower invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockGetDeclaredPowerInspect ¶
func (m *LocalNodeMock) MinimockGetDeclaredPowerInspect()
MinimockGetDeclaredPowerInspect logs each unmet expectation
func (*LocalNodeMock) MinimockGetIndexDone ¶
func (m *LocalNodeMock) MinimockGetIndexDone() bool
MinimockGetIndexDone returns true if the count of the GetIndex invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockGetIndexInspect ¶
func (m *LocalNodeMock) MinimockGetIndexInspect()
MinimockGetIndexInspect logs each unmet expectation
func (*LocalNodeMock) MinimockGetNodeIDDone ¶
func (m *LocalNodeMock) MinimockGetNodeIDDone() bool
MinimockGetNodeIDDone returns true if the count of the GetNodeID invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockGetNodeIDInspect ¶
func (m *LocalNodeMock) MinimockGetNodeIDInspect()
MinimockGetNodeIDInspect logs each unmet expectation
func (*LocalNodeMock) MinimockGetOpModeDone ¶
func (m *LocalNodeMock) MinimockGetOpModeDone() bool
MinimockGetOpModeDone returns true if the count of the GetOpMode invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockGetOpModeInspect ¶
func (m *LocalNodeMock) MinimockGetOpModeInspect()
MinimockGetOpModeInspect logs each unmet expectation
func (*LocalNodeMock) MinimockGetSignatureVerifierDone ¶
func (m *LocalNodeMock) MinimockGetSignatureVerifierDone() bool
MinimockGetSignatureVerifierDone returns true if the count of the GetSignatureVerifier invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockGetSignatureVerifierInspect ¶
func (m *LocalNodeMock) MinimockGetSignatureVerifierInspect()
MinimockGetSignatureVerifierInspect logs each unmet expectation
func (*LocalNodeMock) MinimockGetStaticDone ¶
func (m *LocalNodeMock) MinimockGetStaticDone() bool
MinimockGetStaticDone returns true if the count of the GetStatic invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockGetStaticInspect ¶
func (m *LocalNodeMock) MinimockGetStaticInspect()
MinimockGetStaticInspect logs each unmet expectation
func (*LocalNodeMock) MinimockHasFullProfileDone ¶
func (m *LocalNodeMock) MinimockHasFullProfileDone() bool
MinimockHasFullProfileDone returns true if the count of the HasFullProfile invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockHasFullProfileInspect ¶
func (m *LocalNodeMock) MinimockHasFullProfileInspect()
MinimockHasFullProfileInspect logs each unmet expectation
func (*LocalNodeMock) MinimockIsJoinerDone ¶
func (m *LocalNodeMock) MinimockIsJoinerDone() bool
MinimockIsJoinerDone returns true if the count of the IsJoiner invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockIsJoinerInspect ¶
func (m *LocalNodeMock) MinimockIsJoinerInspect()
MinimockIsJoinerInspect logs each unmet expectation
func (*LocalNodeMock) MinimockIsPoweredDone ¶
func (m *LocalNodeMock) MinimockIsPoweredDone() bool
MinimockIsPoweredDone returns true if the count of the IsPowered invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockIsPoweredInspect ¶
func (m *LocalNodeMock) MinimockIsPoweredInspect()
MinimockIsPoweredInspect logs each unmet expectation
func (*LocalNodeMock) MinimockIsStatefulDone ¶
func (m *LocalNodeMock) MinimockIsStatefulDone() bool
MinimockIsStatefulDone returns true if the count of the IsStateful invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockIsStatefulInspect ¶
func (m *LocalNodeMock) MinimockIsStatefulInspect()
MinimockIsStatefulInspect logs each unmet expectation
func (*LocalNodeMock) MinimockIsVoterDone ¶
func (m *LocalNodeMock) MinimockIsVoterDone() bool
MinimockIsVoterDone returns true if the count of the IsVoter invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockIsVoterInspect ¶
func (m *LocalNodeMock) MinimockIsVoterInspect()
MinimockIsVoterInspect logs each unmet expectation
func (*LocalNodeMock) MinimockLocalNodeProfileDone ¶
func (m *LocalNodeMock) MinimockLocalNodeProfileDone() bool
MinimockLocalNodeProfileDone returns true if the count of the LocalNodeProfile invocations corresponds the number of defined expectations
func (*LocalNodeMock) MinimockLocalNodeProfileInspect ¶
func (m *LocalNodeMock) MinimockLocalNodeProfileInspect()
MinimockLocalNodeProfileInspect logs each unmet expectation
func (*LocalNodeMock) MinimockWait ¶
func (m *LocalNodeMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type LocalNodeMockCanIntroduceJoinerExpectation ¶
type LocalNodeMockCanIntroduceJoinerExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockCanIntroduceJoinerExpectation specifies expectation struct of the LocalNode.CanIntroduceJoiner
type LocalNodeMockCanIntroduceJoinerResults ¶
type LocalNodeMockCanIntroduceJoinerResults struct {
// contains filtered or unexported fields
}
LocalNodeMockCanIntroduceJoinerResults contains results of the LocalNode.CanIntroduceJoiner
type LocalNodeMockGetDeclaredPowerExpectation ¶
type LocalNodeMockGetDeclaredPowerExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockGetDeclaredPowerExpectation specifies expectation struct of the LocalNode.GetDeclaredPower
type LocalNodeMockGetDeclaredPowerResults ¶
type LocalNodeMockGetDeclaredPowerResults struct {
// contains filtered or unexported fields
}
LocalNodeMockGetDeclaredPowerResults contains results of the LocalNode.GetDeclaredPower
type LocalNodeMockGetIndexExpectation ¶
type LocalNodeMockGetIndexExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockGetIndexExpectation specifies expectation struct of the LocalNode.GetIndex
type LocalNodeMockGetIndexResults ¶
type LocalNodeMockGetIndexResults struct {
// contains filtered or unexported fields
}
LocalNodeMockGetIndexResults contains results of the LocalNode.GetIndex
type LocalNodeMockGetNodeIDExpectation ¶
type LocalNodeMockGetNodeIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockGetNodeIDExpectation specifies expectation struct of the LocalNode.GetNodeID
type LocalNodeMockGetNodeIDResults ¶
type LocalNodeMockGetNodeIDResults struct {
// contains filtered or unexported fields
}
LocalNodeMockGetNodeIDResults contains results of the LocalNode.GetNodeID
type LocalNodeMockGetOpModeExpectation ¶
type LocalNodeMockGetOpModeExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockGetOpModeExpectation specifies expectation struct of the LocalNode.GetOpMode
type LocalNodeMockGetOpModeResults ¶
type LocalNodeMockGetOpModeResults struct {
// contains filtered or unexported fields
}
LocalNodeMockGetOpModeResults contains results of the LocalNode.GetOpMode
type LocalNodeMockGetSignatureVerifierExpectation ¶
type LocalNodeMockGetSignatureVerifierExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockGetSignatureVerifierExpectation specifies expectation struct of the LocalNode.GetSignatureVerifier
type LocalNodeMockGetSignatureVerifierResults ¶
type LocalNodeMockGetSignatureVerifierResults struct {
// contains filtered or unexported fields
}
LocalNodeMockGetSignatureVerifierResults contains results of the LocalNode.GetSignatureVerifier
type LocalNodeMockGetStaticExpectation ¶
type LocalNodeMockGetStaticExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockGetStaticExpectation specifies expectation struct of the LocalNode.GetStatic
type LocalNodeMockGetStaticResults ¶
type LocalNodeMockGetStaticResults struct {
// contains filtered or unexported fields
}
LocalNodeMockGetStaticResults contains results of the LocalNode.GetStatic
type LocalNodeMockHasFullProfileExpectation ¶
type LocalNodeMockHasFullProfileExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockHasFullProfileExpectation specifies expectation struct of the LocalNode.HasFullProfile
type LocalNodeMockHasFullProfileResults ¶
type LocalNodeMockHasFullProfileResults struct {
// contains filtered or unexported fields
}
LocalNodeMockHasFullProfileResults contains results of the LocalNode.HasFullProfile
type LocalNodeMockIsJoinerExpectation ¶
type LocalNodeMockIsJoinerExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockIsJoinerExpectation specifies expectation struct of the LocalNode.IsJoiner
type LocalNodeMockIsJoinerResults ¶
type LocalNodeMockIsJoinerResults struct {
// contains filtered or unexported fields
}
LocalNodeMockIsJoinerResults contains results of the LocalNode.IsJoiner
type LocalNodeMockIsPoweredExpectation ¶
type LocalNodeMockIsPoweredExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockIsPoweredExpectation specifies expectation struct of the LocalNode.IsPowered
type LocalNodeMockIsPoweredResults ¶
type LocalNodeMockIsPoweredResults struct {
// contains filtered or unexported fields
}
LocalNodeMockIsPoweredResults contains results of the LocalNode.IsPowered
type LocalNodeMockIsStatefulExpectation ¶
type LocalNodeMockIsStatefulExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockIsStatefulExpectation specifies expectation struct of the LocalNode.IsStateful
type LocalNodeMockIsStatefulResults ¶
type LocalNodeMockIsStatefulResults struct {
// contains filtered or unexported fields
}
LocalNodeMockIsStatefulResults contains results of the LocalNode.IsStateful
type LocalNodeMockIsVoterExpectation ¶
type LocalNodeMockIsVoterExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockIsVoterExpectation specifies expectation struct of the LocalNode.IsVoter
type LocalNodeMockIsVoterResults ¶
type LocalNodeMockIsVoterResults struct {
// contains filtered or unexported fields
}
LocalNodeMockIsVoterResults contains results of the LocalNode.IsVoter
type LocalNodeMockLocalNodeProfileExpectation ¶
type LocalNodeMockLocalNodeProfileExpectation struct { Counter uint64 // contains filtered or unexported fields }
LocalNodeMockLocalNodeProfileExpectation specifies expectation struct of the LocalNode.LocalNodeProfile
type MemberAnnouncement ¶
type MemberAnnouncement struct { MemberID node.ShortNodeID MembershipAnnouncement Joiner JoinerAnnouncement AnnouncedByID node.ShortNodeID }
func NewJoinerAnnouncement ¶
func NewJoinerAnnouncement(brief StaticProfile, announcerID node.ShortNodeID) MemberAnnouncement
func NewJoinerIDAnnouncement ¶
func NewJoinerIDAnnouncement(joinerID, announcerID node.ShortNodeID) MemberAnnouncement
func NewMemberAnnouncement ¶
func NewMemberAnnouncement(memberID node.ShortNodeID, mp MembershipProfile, announcerID node.ShortNodeID) MemberAnnouncement
func NewMemberAnnouncementWithJoiner ¶
func NewMemberAnnouncementWithJoiner(memberID node.ShortNodeID, mp MembershipProfile, joiner JoinerAnnouncement, announcerID node.ShortNodeID) MemberAnnouncement
func NewMemberAnnouncementWithJoinerID ¶
func NewMemberAnnouncementWithJoinerID(memberID node.ShortNodeID, mp MembershipProfile, joinerID node.ShortNodeID, joinerSecret cryptkit.DigestHolder, announcerID node.ShortNodeID) MemberAnnouncement
func NewMemberAnnouncementWithLeave ¶
func NewMemberAnnouncementWithLeave(memberID node.ShortNodeID, mp MembershipProfile, leaveReason uint32, announcerID node.ShortNodeID) MemberAnnouncement
type MembershipAnnouncement ¶
type MembershipAnnouncement struct { Membership MembershipProfile IsLeaving bool LeaveReason uint32 JoinerID node.ShortNodeID JoinerSecret cryptkit.DigestHolder }
func NewMembershipAnnouncement ¶
func NewMembershipAnnouncement(mp MembershipProfile) MembershipAnnouncement
func NewMembershipAnnouncementWithJoinerID ¶
func NewMembershipAnnouncementWithJoinerID(mp MembershipProfile, joinerID node.ShortNodeID, joinerSecret cryptkit.DigestHolder) MembershipAnnouncement
func NewMembershipAnnouncementWithLeave ¶
func NewMembershipAnnouncementWithLeave(mp MembershipProfile, leaveReason uint32) MembershipAnnouncement
type MembershipProfile ¶
type MembershipProfile struct { Index member.Index Mode member.OpMode Power member.Power RequestedPower member.Power proofs.NodeAnnouncedState }
func NewMembershipProfile ¶
func NewMembershipProfile(mode member.OpMode, power member.Power, index member.Index, nsh cryptkit.SignedDigestHolder, nas proofs.MemberAnnouncementSignature, ep member.Power) MembershipProfile
func NewMembershipProfileByNode ¶
func NewMembershipProfileByNode(np ActiveNode, nsh cryptkit.SignedDigestHolder, nas proofs.MemberAnnouncementSignature, ep member.Power) MembershipProfile
func NewMembershipProfileForJoiner ¶
func NewMembershipProfileForJoiner(brief BriefCandidateProfile) MembershipProfile
func (MembershipProfile) AsRankUint16 ¶
func (p MembershipProfile) AsRankUint16(nc uint16) member.Rank
func (MembershipProfile) CanIntroduceJoiner ¶
func (p MembershipProfile) CanIntroduceJoiner() bool
func (MembershipProfile) Equals ¶
func (p MembershipProfile) Equals(o MembershipProfile) bool
func (MembershipProfile) IsEmpty ¶
func (p MembershipProfile) IsEmpty() bool
func (MembershipProfile) IsJoiner ¶
func (p MembershipProfile) IsJoiner() bool
func (MembershipProfile) String ¶
func (p MembershipProfile) String() string
func (MembershipProfile) StringParts ¶
func (p MembershipProfile) StringParts() string
type PopulationRank ¶
type PopulationRank struct { Profile ActiveNode Power member.Power OpMode member.OpMode }
type SimpleProfileIntroFactory ¶
type SimpleProfileIntroFactory struct {
// contains filtered or unexported fields
}
func (*SimpleProfileIntroFactory) CreateBriefIntroProfile ¶
func (p *SimpleProfileIntroFactory) CreateBriefIntroProfile(candidate BriefCandidateProfile) StaticProfile
func (*SimpleProfileIntroFactory) CreateFullIntroProfile ¶
func (p *SimpleProfileIntroFactory) CreateFullIntroProfile(candidate CandidateProfile) StaticProfile
func (*SimpleProfileIntroFactory) CreateUpgradableIntroProfile ¶
func (p *SimpleProfileIntroFactory) CreateUpgradableIntroProfile(candidate BriefCandidateProfile) StaticProfile
func (*SimpleProfileIntroFactory) TryConvertUpgradableIntroProfile ¶
func (p *SimpleProfileIntroFactory) TryConvertUpgradableIntroProfile(profile StaticProfile) (StaticProfile, bool)
type StaticProfile ¶
type StaticProfile interface { Host GetExtension() StaticProfileExtension // must be always be not null for LocalNode, full intro, == nil when has no full // contains filtered or unexported methods }
func NewStaticProfileByBrief ¶
func NewStaticProfileByBrief(v BriefCandidateProfile, pks cryptkit.PublicKeyStore) StaticProfile
func NewStaticProfileByExt ¶
func NewStaticProfileByExt(v BriefCandidateProfile, ext CandidateProfileExtension, pks cryptkit.PublicKeyStore) StaticProfile
func NewStaticProfileByFull ¶
func NewStaticProfileByFull(v CandidateProfile, pks cryptkit.PublicKeyStore) StaticProfile
func NewUpgradableProfileByBrief ¶
func NewUpgradableProfileByBrief(v BriefCandidateProfile, pks cryptkit.PublicKeyStore) StaticProfile
type StaticProfileExtension ¶
type StaticProfileExtension interface { GetIntroducedNodeID() node.ShortNodeID CandidateProfileExtension }
func UpgradeStaticProfile ¶
func UpgradeStaticProfile(sp StaticProfile, brief BriefCandidateProfile, ext CandidateProfileExtension) (bool, StaticProfileExtension)
type StaticProfileExtensionMock ¶
type StaticProfileExtensionMock struct { GetExtraEndpointsMock mStaticProfileExtensionMockGetExtraEndpoints GetIntroducedNodeIDMock mStaticProfileExtensionMockGetIntroducedNodeID GetIssuedAtPulseMock mStaticProfileExtensionMockGetIssuedAtPulse GetIssuedAtTimeMock mStaticProfileExtensionMockGetIssuedAtTime GetIssuerIDMock mStaticProfileExtensionMockGetIssuerID GetIssuerSignatureMock mStaticProfileExtensionMockGetIssuerSignature GetPowerLevelsMock mStaticProfileExtensionMockGetPowerLevels GetReferenceMock mStaticProfileExtensionMockGetReference // contains filtered or unexported fields }
StaticProfileExtensionMock implements StaticProfileExtension
func NewStaticProfileExtensionMock ¶
func NewStaticProfileExtensionMock(t minimock.Tester) *StaticProfileExtensionMock
NewStaticProfileExtensionMock returns a mock for StaticProfileExtension
func (*StaticProfileExtensionMock) GetExtraEndpoints ¶
func (mmGetExtraEndpoints *StaticProfileExtensionMock) GetExtraEndpoints() (oa1 []endpoints.Outbound)
GetExtraEndpoints implements StaticProfileExtension
func (*StaticProfileExtensionMock) GetExtraEndpointsAfterCounter ¶
func (mmGetExtraEndpoints *StaticProfileExtensionMock) GetExtraEndpointsAfterCounter() uint64
GetExtraEndpointsAfterCounter returns a count of finished StaticProfileExtensionMock.GetExtraEndpoints invocations
func (*StaticProfileExtensionMock) GetExtraEndpointsBeforeCounter ¶
func (mmGetExtraEndpoints *StaticProfileExtensionMock) GetExtraEndpointsBeforeCounter() uint64
GetExtraEndpointsBeforeCounter returns a count of StaticProfileExtensionMock.GetExtraEndpoints invocations
func (*StaticProfileExtensionMock) GetIntroducedNodeID ¶
func (mmGetIntroducedNodeID *StaticProfileExtensionMock) GetIntroducedNodeID() (s1 node.ShortNodeID)
GetIntroducedNodeID implements StaticProfileExtension
func (*StaticProfileExtensionMock) GetIntroducedNodeIDAfterCounter ¶
func (mmGetIntroducedNodeID *StaticProfileExtensionMock) GetIntroducedNodeIDAfterCounter() uint64
GetIntroducedNodeIDAfterCounter returns a count of finished StaticProfileExtensionMock.GetIntroducedNodeID invocations
func (*StaticProfileExtensionMock) GetIntroducedNodeIDBeforeCounter ¶
func (mmGetIntroducedNodeID *StaticProfileExtensionMock) GetIntroducedNodeIDBeforeCounter() uint64
GetIntroducedNodeIDBeforeCounter returns a count of StaticProfileExtensionMock.GetIntroducedNodeID invocations
func (*StaticProfileExtensionMock) GetIssuedAtPulse ¶
func (mmGetIssuedAtPulse *StaticProfileExtensionMock) GetIssuedAtPulse() (n1 pulse.Number)
GetIssuedAtPulse implements StaticProfileExtension
func (*StaticProfileExtensionMock) GetIssuedAtPulseAfterCounter ¶
func (mmGetIssuedAtPulse *StaticProfileExtensionMock) GetIssuedAtPulseAfterCounter() uint64
GetIssuedAtPulseAfterCounter returns a count of finished StaticProfileExtensionMock.GetIssuedAtPulse invocations
func (*StaticProfileExtensionMock) GetIssuedAtPulseBeforeCounter ¶
func (mmGetIssuedAtPulse *StaticProfileExtensionMock) GetIssuedAtPulseBeforeCounter() uint64
GetIssuedAtPulseBeforeCounter returns a count of StaticProfileExtensionMock.GetIssuedAtPulse invocations
func (*StaticProfileExtensionMock) GetIssuedAtTime ¶
func (mmGetIssuedAtTime *StaticProfileExtensionMock) GetIssuedAtTime() (t1 time.Time)
GetIssuedAtTime implements StaticProfileExtension
func (*StaticProfileExtensionMock) GetIssuedAtTimeAfterCounter ¶
func (mmGetIssuedAtTime *StaticProfileExtensionMock) GetIssuedAtTimeAfterCounter() uint64
GetIssuedAtTimeAfterCounter returns a count of finished StaticProfileExtensionMock.GetIssuedAtTime invocations
func (*StaticProfileExtensionMock) GetIssuedAtTimeBeforeCounter ¶
func (mmGetIssuedAtTime *StaticProfileExtensionMock) GetIssuedAtTimeBeforeCounter() uint64
GetIssuedAtTimeBeforeCounter returns a count of StaticProfileExtensionMock.GetIssuedAtTime invocations
func (*StaticProfileExtensionMock) GetIssuerID ¶
func (mmGetIssuerID *StaticProfileExtensionMock) GetIssuerID() (s1 node.ShortNodeID)
GetIssuerID implements StaticProfileExtension
func (*StaticProfileExtensionMock) GetIssuerIDAfterCounter ¶
func (mmGetIssuerID *StaticProfileExtensionMock) GetIssuerIDAfterCounter() uint64
GetIssuerIDAfterCounter returns a count of finished StaticProfileExtensionMock.GetIssuerID invocations
func (*StaticProfileExtensionMock) GetIssuerIDBeforeCounter ¶
func (mmGetIssuerID *StaticProfileExtensionMock) GetIssuerIDBeforeCounter() uint64
GetIssuerIDBeforeCounter returns a count of StaticProfileExtensionMock.GetIssuerID invocations
func (*StaticProfileExtensionMock) GetIssuerSignature ¶
func (mmGetIssuerSignature *StaticProfileExtensionMock) GetIssuerSignature() (s1 cryptkit.SignatureHolder)
GetIssuerSignature implements StaticProfileExtension
func (*StaticProfileExtensionMock) GetIssuerSignatureAfterCounter ¶
func (mmGetIssuerSignature *StaticProfileExtensionMock) GetIssuerSignatureAfterCounter() uint64
GetIssuerSignatureAfterCounter returns a count of finished StaticProfileExtensionMock.GetIssuerSignature invocations
func (*StaticProfileExtensionMock) GetIssuerSignatureBeforeCounter ¶
func (mmGetIssuerSignature *StaticProfileExtensionMock) GetIssuerSignatureBeforeCounter() uint64
GetIssuerSignatureBeforeCounter returns a count of StaticProfileExtensionMock.GetIssuerSignature invocations
func (*StaticProfileExtensionMock) GetPowerLevels ¶
func (mmGetPowerLevels *StaticProfileExtensionMock) GetPowerLevels() (p1 member.PowerSet)
GetPowerLevels implements StaticProfileExtension
func (*StaticProfileExtensionMock) GetPowerLevelsAfterCounter ¶
func (mmGetPowerLevels *StaticProfileExtensionMock) GetPowerLevelsAfterCounter() uint64
GetPowerLevelsAfterCounter returns a count of finished StaticProfileExtensionMock.GetPowerLevels invocations
func (*StaticProfileExtensionMock) GetPowerLevelsBeforeCounter ¶
func (mmGetPowerLevels *StaticProfileExtensionMock) GetPowerLevelsBeforeCounter() uint64
GetPowerLevelsBeforeCounter returns a count of StaticProfileExtensionMock.GetPowerLevels invocations
func (*StaticProfileExtensionMock) GetReference ¶
func (mmGetReference *StaticProfileExtensionMock) GetReference() (g1 reference.Global)
GetReference implements StaticProfileExtension
func (*StaticProfileExtensionMock) GetReferenceAfterCounter ¶
func (mmGetReference *StaticProfileExtensionMock) GetReferenceAfterCounter() uint64
GetReferenceAfterCounter returns a count of finished StaticProfileExtensionMock.GetReference invocations
func (*StaticProfileExtensionMock) GetReferenceBeforeCounter ¶
func (mmGetReference *StaticProfileExtensionMock) GetReferenceBeforeCounter() uint64
GetReferenceBeforeCounter returns a count of StaticProfileExtensionMock.GetReference invocations
func (*StaticProfileExtensionMock) MinimockFinish ¶
func (m *StaticProfileExtensionMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*StaticProfileExtensionMock) MinimockGetExtraEndpointsDone ¶
func (m *StaticProfileExtensionMock) MinimockGetExtraEndpointsDone() bool
MinimockGetExtraEndpointsDone returns true if the count of the GetExtraEndpoints invocations corresponds the number of defined expectations
func (*StaticProfileExtensionMock) MinimockGetExtraEndpointsInspect ¶
func (m *StaticProfileExtensionMock) MinimockGetExtraEndpointsInspect()
MinimockGetExtraEndpointsInspect logs each unmet expectation
func (*StaticProfileExtensionMock) MinimockGetIntroducedNodeIDDone ¶
func (m *StaticProfileExtensionMock) MinimockGetIntroducedNodeIDDone() bool
MinimockGetIntroducedNodeIDDone returns true if the count of the GetIntroducedNodeID invocations corresponds the number of defined expectations
func (*StaticProfileExtensionMock) MinimockGetIntroducedNodeIDInspect ¶
func (m *StaticProfileExtensionMock) MinimockGetIntroducedNodeIDInspect()
MinimockGetIntroducedNodeIDInspect logs each unmet expectation
func (*StaticProfileExtensionMock) MinimockGetIssuedAtPulseDone ¶
func (m *StaticProfileExtensionMock) MinimockGetIssuedAtPulseDone() bool
MinimockGetIssuedAtPulseDone returns true if the count of the GetIssuedAtPulse invocations corresponds the number of defined expectations
func (*StaticProfileExtensionMock) MinimockGetIssuedAtPulseInspect ¶
func (m *StaticProfileExtensionMock) MinimockGetIssuedAtPulseInspect()
MinimockGetIssuedAtPulseInspect logs each unmet expectation
func (*StaticProfileExtensionMock) MinimockGetIssuedAtTimeDone ¶
func (m *StaticProfileExtensionMock) MinimockGetIssuedAtTimeDone() bool
MinimockGetIssuedAtTimeDone returns true if the count of the GetIssuedAtTime invocations corresponds the number of defined expectations
func (*StaticProfileExtensionMock) MinimockGetIssuedAtTimeInspect ¶
func (m *StaticProfileExtensionMock) MinimockGetIssuedAtTimeInspect()
MinimockGetIssuedAtTimeInspect logs each unmet expectation
func (*StaticProfileExtensionMock) MinimockGetIssuerIDDone ¶
func (m *StaticProfileExtensionMock) MinimockGetIssuerIDDone() bool
MinimockGetIssuerIDDone returns true if the count of the GetIssuerID invocations corresponds the number of defined expectations
func (*StaticProfileExtensionMock) MinimockGetIssuerIDInspect ¶
func (m *StaticProfileExtensionMock) MinimockGetIssuerIDInspect()
MinimockGetIssuerIDInspect logs each unmet expectation
func (*StaticProfileExtensionMock) MinimockGetIssuerSignatureDone ¶
func (m *StaticProfileExtensionMock) MinimockGetIssuerSignatureDone() bool
MinimockGetIssuerSignatureDone returns true if the count of the GetIssuerSignature invocations corresponds the number of defined expectations
func (*StaticProfileExtensionMock) MinimockGetIssuerSignatureInspect ¶
func (m *StaticProfileExtensionMock) MinimockGetIssuerSignatureInspect()
MinimockGetIssuerSignatureInspect logs each unmet expectation
func (*StaticProfileExtensionMock) MinimockGetPowerLevelsDone ¶
func (m *StaticProfileExtensionMock) MinimockGetPowerLevelsDone() bool
MinimockGetPowerLevelsDone returns true if the count of the GetPowerLevels invocations corresponds the number of defined expectations
func (*StaticProfileExtensionMock) MinimockGetPowerLevelsInspect ¶
func (m *StaticProfileExtensionMock) MinimockGetPowerLevelsInspect()
MinimockGetPowerLevelsInspect logs each unmet expectation
func (*StaticProfileExtensionMock) MinimockGetReferenceDone ¶
func (m *StaticProfileExtensionMock) MinimockGetReferenceDone() bool
MinimockGetReferenceDone returns true if the count of the GetReference invocations corresponds the number of defined expectations
func (*StaticProfileExtensionMock) MinimockGetReferenceInspect ¶
func (m *StaticProfileExtensionMock) MinimockGetReferenceInspect()
MinimockGetReferenceInspect logs each unmet expectation
func (*StaticProfileExtensionMock) MinimockWait ¶
func (m *StaticProfileExtensionMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type StaticProfileExtensionMockGetExtraEndpointsExpectation ¶
type StaticProfileExtensionMockGetExtraEndpointsExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileExtensionMockGetExtraEndpointsExpectation specifies expectation struct of the StaticProfileExtension.GetExtraEndpoints
type StaticProfileExtensionMockGetExtraEndpointsResults ¶
type StaticProfileExtensionMockGetExtraEndpointsResults struct {
// contains filtered or unexported fields
}
StaticProfileExtensionMockGetExtraEndpointsResults contains results of the StaticProfileExtension.GetExtraEndpoints
type StaticProfileExtensionMockGetIntroducedNodeIDExpectation ¶
type StaticProfileExtensionMockGetIntroducedNodeIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileExtensionMockGetIntroducedNodeIDExpectation specifies expectation struct of the StaticProfileExtension.GetIntroducedNodeID
type StaticProfileExtensionMockGetIntroducedNodeIDResults ¶
type StaticProfileExtensionMockGetIntroducedNodeIDResults struct {
// contains filtered or unexported fields
}
StaticProfileExtensionMockGetIntroducedNodeIDResults contains results of the StaticProfileExtension.GetIntroducedNodeID
type StaticProfileExtensionMockGetIssuedAtPulseExpectation ¶
type StaticProfileExtensionMockGetIssuedAtPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileExtensionMockGetIssuedAtPulseExpectation specifies expectation struct of the StaticProfileExtension.GetIssuedAtPulse
type StaticProfileExtensionMockGetIssuedAtPulseResults ¶
type StaticProfileExtensionMockGetIssuedAtPulseResults struct {
// contains filtered or unexported fields
}
StaticProfileExtensionMockGetIssuedAtPulseResults contains results of the StaticProfileExtension.GetIssuedAtPulse
type StaticProfileExtensionMockGetIssuedAtTimeExpectation ¶
type StaticProfileExtensionMockGetIssuedAtTimeExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileExtensionMockGetIssuedAtTimeExpectation specifies expectation struct of the StaticProfileExtension.GetIssuedAtTime
type StaticProfileExtensionMockGetIssuedAtTimeResults ¶
type StaticProfileExtensionMockGetIssuedAtTimeResults struct {
// contains filtered or unexported fields
}
StaticProfileExtensionMockGetIssuedAtTimeResults contains results of the StaticProfileExtension.GetIssuedAtTime
type StaticProfileExtensionMockGetIssuerIDExpectation ¶
type StaticProfileExtensionMockGetIssuerIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileExtensionMockGetIssuerIDExpectation specifies expectation struct of the StaticProfileExtension.GetIssuerID
type StaticProfileExtensionMockGetIssuerIDResults ¶
type StaticProfileExtensionMockGetIssuerIDResults struct {
// contains filtered or unexported fields
}
StaticProfileExtensionMockGetIssuerIDResults contains results of the StaticProfileExtension.GetIssuerID
type StaticProfileExtensionMockGetIssuerSignatureExpectation ¶
type StaticProfileExtensionMockGetIssuerSignatureExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileExtensionMockGetIssuerSignatureExpectation specifies expectation struct of the StaticProfileExtension.GetIssuerSignature
type StaticProfileExtensionMockGetIssuerSignatureResults ¶
type StaticProfileExtensionMockGetIssuerSignatureResults struct {
// contains filtered or unexported fields
}
StaticProfileExtensionMockGetIssuerSignatureResults contains results of the StaticProfileExtension.GetIssuerSignature
type StaticProfileExtensionMockGetPowerLevelsExpectation ¶
type StaticProfileExtensionMockGetPowerLevelsExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileExtensionMockGetPowerLevelsExpectation specifies expectation struct of the StaticProfileExtension.GetPowerLevels
type StaticProfileExtensionMockGetPowerLevelsResults ¶
type StaticProfileExtensionMockGetPowerLevelsResults struct {
// contains filtered or unexported fields
}
StaticProfileExtensionMockGetPowerLevelsResults contains results of the StaticProfileExtension.GetPowerLevels
type StaticProfileExtensionMockGetReferenceExpectation ¶
type StaticProfileExtensionMockGetReferenceExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileExtensionMockGetReferenceExpectation specifies expectation struct of the StaticProfileExtension.GetReference
type StaticProfileExtensionMockGetReferenceResults ¶
type StaticProfileExtensionMockGetReferenceResults struct {
// contains filtered or unexported fields
}
StaticProfileExtensionMockGetReferenceResults contains results of the StaticProfileExtension.GetReference
type StaticProfileMock ¶
type StaticProfileMock struct { GetBriefIntroSignedDigestMock mStaticProfileMockGetBriefIntroSignedDigest GetDefaultEndpointMock mStaticProfileMockGetDefaultEndpoint GetExtensionMock mStaticProfileMockGetExtension GetNodePublicKeyMock mStaticProfileMockGetNodePublicKey GetPrimaryRoleMock mStaticProfileMockGetPrimaryRole GetPublicKeyStoreMock mStaticProfileMockGetPublicKeyStore GetSpecialRolesMock mStaticProfileMockGetSpecialRoles GetStartPowerMock mStaticProfileMockGetStartPower GetStaticNodeIDMock mStaticProfileMockGetStaticNodeID IsAcceptableHostMock mStaticProfileMockIsAcceptableHost // contains filtered or unexported fields }
StaticProfileMock implements StaticProfile
func NewStaticProfileMock ¶
func NewStaticProfileMock(t minimock.Tester) *StaticProfileMock
NewStaticProfileMock returns a mock for StaticProfile
func (*StaticProfileMock) GetBriefIntroSignedDigest ¶
func (mmGetBriefIntroSignedDigest *StaticProfileMock) GetBriefIntroSignedDigest() (s1 cryptkit.SignedDigestHolder)
GetBriefIntroSignedDigest implements StaticProfile
func (*StaticProfileMock) GetBriefIntroSignedDigestAfterCounter ¶
func (mmGetBriefIntroSignedDigest *StaticProfileMock) GetBriefIntroSignedDigestAfterCounter() uint64
GetBriefIntroSignedDigestAfterCounter returns a count of finished StaticProfileMock.GetBriefIntroSignedDigest invocations
func (*StaticProfileMock) GetBriefIntroSignedDigestBeforeCounter ¶
func (mmGetBriefIntroSignedDigest *StaticProfileMock) GetBriefIntroSignedDigestBeforeCounter() uint64
GetBriefIntroSignedDigestBeforeCounter returns a count of StaticProfileMock.GetBriefIntroSignedDigest invocations
func (*StaticProfileMock) GetDefaultEndpoint ¶
func (mmGetDefaultEndpoint *StaticProfileMock) GetDefaultEndpoint() (o1 endpoints.Outbound)
GetDefaultEndpoint implements StaticProfile
func (*StaticProfileMock) GetDefaultEndpointAfterCounter ¶
func (mmGetDefaultEndpoint *StaticProfileMock) GetDefaultEndpointAfterCounter() uint64
GetDefaultEndpointAfterCounter returns a count of finished StaticProfileMock.GetDefaultEndpoint invocations
func (*StaticProfileMock) GetDefaultEndpointBeforeCounter ¶
func (mmGetDefaultEndpoint *StaticProfileMock) GetDefaultEndpointBeforeCounter() uint64
GetDefaultEndpointBeforeCounter returns a count of StaticProfileMock.GetDefaultEndpoint invocations
func (*StaticProfileMock) GetExtension ¶
func (mmGetExtension *StaticProfileMock) GetExtension() (s1 StaticProfileExtension)
GetExtension implements StaticProfile
func (*StaticProfileMock) GetExtensionAfterCounter ¶
func (mmGetExtension *StaticProfileMock) GetExtensionAfterCounter() uint64
GetExtensionAfterCounter returns a count of finished StaticProfileMock.GetExtension invocations
func (*StaticProfileMock) GetExtensionBeforeCounter ¶
func (mmGetExtension *StaticProfileMock) GetExtensionBeforeCounter() uint64
GetExtensionBeforeCounter returns a count of StaticProfileMock.GetExtension invocations
func (*StaticProfileMock) GetNodePublicKey ¶
func (mmGetNodePublicKey *StaticProfileMock) GetNodePublicKey() (s1 cryptkit.SigningKeyHolder)
GetNodePublicKey implements StaticProfile
func (*StaticProfileMock) GetNodePublicKeyAfterCounter ¶
func (mmGetNodePublicKey *StaticProfileMock) GetNodePublicKeyAfterCounter() uint64
GetNodePublicKeyAfterCounter returns a count of finished StaticProfileMock.GetNodePublicKey invocations
func (*StaticProfileMock) GetNodePublicKeyBeforeCounter ¶
func (mmGetNodePublicKey *StaticProfileMock) GetNodePublicKeyBeforeCounter() uint64
GetNodePublicKeyBeforeCounter returns a count of StaticProfileMock.GetNodePublicKey invocations
func (*StaticProfileMock) GetPrimaryRole ¶
func (mmGetPrimaryRole *StaticProfileMock) GetPrimaryRole() (p1 member.PrimaryRole)
GetPrimaryRole implements StaticProfile
func (*StaticProfileMock) GetPrimaryRoleAfterCounter ¶
func (mmGetPrimaryRole *StaticProfileMock) GetPrimaryRoleAfterCounter() uint64
GetPrimaryRoleAfterCounter returns a count of finished StaticProfileMock.GetPrimaryRole invocations
func (*StaticProfileMock) GetPrimaryRoleBeforeCounter ¶
func (mmGetPrimaryRole *StaticProfileMock) GetPrimaryRoleBeforeCounter() uint64
GetPrimaryRoleBeforeCounter returns a count of StaticProfileMock.GetPrimaryRole invocations
func (*StaticProfileMock) GetPublicKeyStore ¶
func (mmGetPublicKeyStore *StaticProfileMock) GetPublicKeyStore() (p1 cryptkit.PublicKeyStore)
GetPublicKeyStore implements StaticProfile
func (*StaticProfileMock) GetPublicKeyStoreAfterCounter ¶
func (mmGetPublicKeyStore *StaticProfileMock) GetPublicKeyStoreAfterCounter() uint64
GetPublicKeyStoreAfterCounter returns a count of finished StaticProfileMock.GetPublicKeyStore invocations
func (*StaticProfileMock) GetPublicKeyStoreBeforeCounter ¶
func (mmGetPublicKeyStore *StaticProfileMock) GetPublicKeyStoreBeforeCounter() uint64
GetPublicKeyStoreBeforeCounter returns a count of StaticProfileMock.GetPublicKeyStore invocations
func (*StaticProfileMock) GetSpecialRoles ¶
func (mmGetSpecialRoles *StaticProfileMock) GetSpecialRoles() (s1 member.SpecialRole)
GetSpecialRoles implements StaticProfile
func (*StaticProfileMock) GetSpecialRolesAfterCounter ¶
func (mmGetSpecialRoles *StaticProfileMock) GetSpecialRolesAfterCounter() uint64
GetSpecialRolesAfterCounter returns a count of finished StaticProfileMock.GetSpecialRoles invocations
func (*StaticProfileMock) GetSpecialRolesBeforeCounter ¶
func (mmGetSpecialRoles *StaticProfileMock) GetSpecialRolesBeforeCounter() uint64
GetSpecialRolesBeforeCounter returns a count of StaticProfileMock.GetSpecialRoles invocations
func (*StaticProfileMock) GetStartPower ¶
func (mmGetStartPower *StaticProfileMock) GetStartPower() (p1 member.Power)
GetStartPower implements StaticProfile
func (*StaticProfileMock) GetStartPowerAfterCounter ¶
func (mmGetStartPower *StaticProfileMock) GetStartPowerAfterCounter() uint64
GetStartPowerAfterCounter returns a count of finished StaticProfileMock.GetStartPower invocations
func (*StaticProfileMock) GetStartPowerBeforeCounter ¶
func (mmGetStartPower *StaticProfileMock) GetStartPowerBeforeCounter() uint64
GetStartPowerBeforeCounter returns a count of StaticProfileMock.GetStartPower invocations
func (*StaticProfileMock) GetStaticNodeID ¶
func (mmGetStaticNodeID *StaticProfileMock) GetStaticNodeID() (s1 node.ShortNodeID)
GetStaticNodeID implements StaticProfile
func (*StaticProfileMock) GetStaticNodeIDAfterCounter ¶
func (mmGetStaticNodeID *StaticProfileMock) GetStaticNodeIDAfterCounter() uint64
GetStaticNodeIDAfterCounter returns a count of finished StaticProfileMock.GetStaticNodeID invocations
func (*StaticProfileMock) GetStaticNodeIDBeforeCounter ¶
func (mmGetStaticNodeID *StaticProfileMock) GetStaticNodeIDBeforeCounter() uint64
GetStaticNodeIDBeforeCounter returns a count of StaticProfileMock.GetStaticNodeID invocations
func (*StaticProfileMock) IsAcceptableHost ¶
func (mmIsAcceptableHost *StaticProfileMock) IsAcceptableHost(from endpoints.Inbound) (b1 bool)
IsAcceptableHost implements StaticProfile
func (*StaticProfileMock) IsAcceptableHostAfterCounter ¶
func (mmIsAcceptableHost *StaticProfileMock) IsAcceptableHostAfterCounter() uint64
IsAcceptableHostAfterCounter returns a count of finished StaticProfileMock.IsAcceptableHost invocations
func (*StaticProfileMock) IsAcceptableHostBeforeCounter ¶
func (mmIsAcceptableHost *StaticProfileMock) IsAcceptableHostBeforeCounter() uint64
IsAcceptableHostBeforeCounter returns a count of StaticProfileMock.IsAcceptableHost invocations
func (*StaticProfileMock) MinimockFinish ¶
func (m *StaticProfileMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*StaticProfileMock) MinimockGetBriefIntroSignedDigestDone ¶
func (m *StaticProfileMock) MinimockGetBriefIntroSignedDigestDone() bool
MinimockGetBriefIntroSignedDigestDone returns true if the count of the GetBriefIntroSignedDigest invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetBriefIntroSignedDigestInspect ¶
func (m *StaticProfileMock) MinimockGetBriefIntroSignedDigestInspect()
MinimockGetBriefIntroSignedDigestInspect logs each unmet expectation
func (*StaticProfileMock) MinimockGetDefaultEndpointDone ¶
func (m *StaticProfileMock) MinimockGetDefaultEndpointDone() bool
MinimockGetDefaultEndpointDone returns true if the count of the GetDefaultEndpoint invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetDefaultEndpointInspect ¶
func (m *StaticProfileMock) MinimockGetDefaultEndpointInspect()
MinimockGetDefaultEndpointInspect logs each unmet expectation
func (*StaticProfileMock) MinimockGetExtensionDone ¶
func (m *StaticProfileMock) MinimockGetExtensionDone() bool
MinimockGetExtensionDone returns true if the count of the GetExtension invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetExtensionInspect ¶
func (m *StaticProfileMock) MinimockGetExtensionInspect()
MinimockGetExtensionInspect logs each unmet expectation
func (*StaticProfileMock) MinimockGetNodePublicKeyDone ¶
func (m *StaticProfileMock) MinimockGetNodePublicKeyDone() bool
MinimockGetNodePublicKeyDone returns true if the count of the GetNodePublicKey invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetNodePublicKeyInspect ¶
func (m *StaticProfileMock) MinimockGetNodePublicKeyInspect()
MinimockGetNodePublicKeyInspect logs each unmet expectation
func (*StaticProfileMock) MinimockGetPrimaryRoleDone ¶
func (m *StaticProfileMock) MinimockGetPrimaryRoleDone() bool
MinimockGetPrimaryRoleDone returns true if the count of the GetPrimaryRole invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetPrimaryRoleInspect ¶
func (m *StaticProfileMock) MinimockGetPrimaryRoleInspect()
MinimockGetPrimaryRoleInspect logs each unmet expectation
func (*StaticProfileMock) MinimockGetPublicKeyStoreDone ¶
func (m *StaticProfileMock) MinimockGetPublicKeyStoreDone() bool
MinimockGetPublicKeyStoreDone returns true if the count of the GetPublicKeyStore invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetPublicKeyStoreInspect ¶
func (m *StaticProfileMock) MinimockGetPublicKeyStoreInspect()
MinimockGetPublicKeyStoreInspect logs each unmet expectation
func (*StaticProfileMock) MinimockGetSpecialRolesDone ¶
func (m *StaticProfileMock) MinimockGetSpecialRolesDone() bool
MinimockGetSpecialRolesDone returns true if the count of the GetSpecialRoles invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetSpecialRolesInspect ¶
func (m *StaticProfileMock) MinimockGetSpecialRolesInspect()
MinimockGetSpecialRolesInspect logs each unmet expectation
func (*StaticProfileMock) MinimockGetStartPowerDone ¶
func (m *StaticProfileMock) MinimockGetStartPowerDone() bool
MinimockGetStartPowerDone returns true if the count of the GetStartPower invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetStartPowerInspect ¶
func (m *StaticProfileMock) MinimockGetStartPowerInspect()
MinimockGetStartPowerInspect logs each unmet expectation
func (*StaticProfileMock) MinimockGetStaticNodeIDDone ¶
func (m *StaticProfileMock) MinimockGetStaticNodeIDDone() bool
MinimockGetStaticNodeIDDone returns true if the count of the GetStaticNodeID invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockGetStaticNodeIDInspect ¶
func (m *StaticProfileMock) MinimockGetStaticNodeIDInspect()
MinimockGetStaticNodeIDInspect logs each unmet expectation
func (*StaticProfileMock) MinimockIsAcceptableHostDone ¶
func (m *StaticProfileMock) MinimockIsAcceptableHostDone() bool
MinimockIsAcceptableHostDone returns true if the count of the IsAcceptableHost invocations corresponds the number of defined expectations
func (*StaticProfileMock) MinimockIsAcceptableHostInspect ¶
func (m *StaticProfileMock) MinimockIsAcceptableHostInspect()
MinimockIsAcceptableHostInspect logs each unmet expectation
func (*StaticProfileMock) MinimockWait ¶
func (m *StaticProfileMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type StaticProfileMockGetBriefIntroSignedDigestExpectation ¶
type StaticProfileMockGetBriefIntroSignedDigestExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetBriefIntroSignedDigestExpectation specifies expectation struct of the StaticProfile.GetBriefIntroSignedDigest
type StaticProfileMockGetBriefIntroSignedDigestResults ¶
type StaticProfileMockGetBriefIntroSignedDigestResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetBriefIntroSignedDigestResults contains results of the StaticProfile.GetBriefIntroSignedDigest
type StaticProfileMockGetDefaultEndpointExpectation ¶
type StaticProfileMockGetDefaultEndpointExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetDefaultEndpointExpectation specifies expectation struct of the StaticProfile.GetDefaultEndpoint
type StaticProfileMockGetDefaultEndpointResults ¶
type StaticProfileMockGetDefaultEndpointResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetDefaultEndpointResults contains results of the StaticProfile.GetDefaultEndpoint
type StaticProfileMockGetExtensionExpectation ¶
type StaticProfileMockGetExtensionExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetExtensionExpectation specifies expectation struct of the StaticProfile.GetExtension
type StaticProfileMockGetExtensionResults ¶
type StaticProfileMockGetExtensionResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetExtensionResults contains results of the StaticProfile.GetExtension
type StaticProfileMockGetNodePublicKeyExpectation ¶
type StaticProfileMockGetNodePublicKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetNodePublicKeyExpectation specifies expectation struct of the StaticProfile.GetNodePublicKey
type StaticProfileMockGetNodePublicKeyResults ¶
type StaticProfileMockGetNodePublicKeyResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetNodePublicKeyResults contains results of the StaticProfile.GetNodePublicKey
type StaticProfileMockGetPrimaryRoleExpectation ¶
type StaticProfileMockGetPrimaryRoleExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetPrimaryRoleExpectation specifies expectation struct of the StaticProfile.GetPrimaryRole
type StaticProfileMockGetPrimaryRoleResults ¶
type StaticProfileMockGetPrimaryRoleResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetPrimaryRoleResults contains results of the StaticProfile.GetPrimaryRole
type StaticProfileMockGetPublicKeyStoreExpectation ¶
type StaticProfileMockGetPublicKeyStoreExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetPublicKeyStoreExpectation specifies expectation struct of the StaticProfile.GetPublicKeyStore
type StaticProfileMockGetPublicKeyStoreResults ¶
type StaticProfileMockGetPublicKeyStoreResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetPublicKeyStoreResults contains results of the StaticProfile.GetPublicKeyStore
type StaticProfileMockGetSpecialRolesExpectation ¶
type StaticProfileMockGetSpecialRolesExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetSpecialRolesExpectation specifies expectation struct of the StaticProfile.GetSpecialRoles
type StaticProfileMockGetSpecialRolesResults ¶
type StaticProfileMockGetSpecialRolesResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetSpecialRolesResults contains results of the StaticProfile.GetSpecialRoles
type StaticProfileMockGetStartPowerExpectation ¶
type StaticProfileMockGetStartPowerExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetStartPowerExpectation specifies expectation struct of the StaticProfile.GetStartPower
type StaticProfileMockGetStartPowerResults ¶
type StaticProfileMockGetStartPowerResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetStartPowerResults contains results of the StaticProfile.GetStartPower
type StaticProfileMockGetStaticNodeIDExpectation ¶
type StaticProfileMockGetStaticNodeIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockGetStaticNodeIDExpectation specifies expectation struct of the StaticProfile.GetStaticNodeID
type StaticProfileMockGetStaticNodeIDResults ¶
type StaticProfileMockGetStaticNodeIDResults struct {
// contains filtered or unexported fields
}
StaticProfileMockGetStaticNodeIDResults contains results of the StaticProfile.GetStaticNodeID
type StaticProfileMockIsAcceptableHostExpectation ¶
type StaticProfileMockIsAcceptableHostExpectation struct { Counter uint64 // contains filtered or unexported fields }
StaticProfileMockIsAcceptableHostExpectation specifies expectation struct of the StaticProfile.IsAcceptableHost
func (*StaticProfileMockIsAcceptableHostExpectation) Then ¶
func (e *StaticProfileMockIsAcceptableHostExpectation) Then(b1 bool) *StaticProfileMock
Then sets up StaticProfile.IsAcceptableHost return parameters for the expectation previously defined by the When method
type StaticProfileMockIsAcceptableHostParams ¶
type StaticProfileMockIsAcceptableHostParams struct {
// contains filtered or unexported fields
}
StaticProfileMockIsAcceptableHostParams contains parameters of the StaticProfile.IsAcceptableHost
type StaticProfileMockIsAcceptableHostResults ¶
type StaticProfileMockIsAcceptableHostResults struct {
// contains filtered or unexported fields
}
StaticProfileMockIsAcceptableHostResults contains results of the StaticProfile.IsAcceptableHost
type Updatable ¶
type Updatable interface { ActiveNode AsActiveNode() ActiveNode SetOpMode(m member.OpMode) SetPower(declaredPower member.Power) SetRank(index member.Index, m member.OpMode, declaredPower member.Power) SetSignatureVerifier(verifier cryptkit.SignatureVerifier) SetOpModeAndLeaveReason(index member.Index, exitCode uint32) GetLeaveReason() uint32 SetIndex(index member.Index) }
type Upgradable ¶
type Upgradable interface {
UpgradeProfile(upgradeData CandidateProfileExtension) bool
}
type UpgradableStaticProfile ¶
type UpgradableStaticProfile struct { FixedStaticProfile // contains filtered or unexported fields }
func (*UpgradableStaticProfile) GetExtension ¶
func (p *UpgradableStaticProfile) GetExtension() StaticProfileExtension
func (*UpgradableStaticProfile) UpgradeProfile ¶
func (p *UpgradableStaticProfile) UpgradeProfile(v CandidateProfileExtension) bool