Documentation ¶
Index ¶
- Constants
- func AssertConditionalBuilderJumpStep(t *testing.T, f smachine.StateFunc) func() smachine.ConditionalBuilder
- func AssertJumpStep(t *testing.T, expected smachine.StateFunc) func(smachine.StateFunc) smachine.StateUpdate
- func AssertMigration(t *testing.T, expected smachine.MigrateFunc) func(smachine.MigrateFunc)
- func CmpStateFuncs(want, got interface{}) bool
- func IsLocalDebug() bool
- func LeakTester(t goleak.TestingT, extraOpts ...goleak.Option)
- func NewPlatformCryptographyScheme() cryptography.PlatformCryptographyScheme
- func NodesErrorLogReader(logsDir string, writer io.Writer) chan struct{}
- func WaitSignalsTimed(t Tester, timeout time.Duration, signals ...<-chan struct{})
- type CertificateGetterMock
- func (mmGetCert *CertificateGetterMock) GetCert(ctx context.Context, g1 reference.Global) (c2 mm_nodeinfo.Certificate, err error)
- func (mmGetCert *CertificateGetterMock) GetCertAfterCounter() uint64
- func (mmGetCert *CertificateGetterMock) GetCertBeforeCounter() uint64
- func (m *CertificateGetterMock) MinimockFinish()
- func (m *CertificateGetterMock) MinimockGetCertDone() bool
- func (m *CertificateGetterMock) MinimockGetCertInspect()
- func (m *CertificateGetterMock) MinimockWait(timeout mm_time.Duration)
- type CertificateGetterMockGetCertExpectation
- type CertificateGetterMockGetCertParams
- type CertificateGetterMockGetCertResults
- type CertificateManagerMock
- func (mmGetCertificate *CertificateManagerMock) GetCertificate() (c1 mm_nodeinfo.Certificate)
- func (mmGetCertificate *CertificateManagerMock) GetCertificateAfterCounter() uint64
- func (mmGetCertificate *CertificateManagerMock) GetCertificateBeforeCounter() uint64
- func (m *CertificateManagerMock) MinimockFinish()
- func (m *CertificateManagerMock) MinimockGetCertificateDone() bool
- func (m *CertificateManagerMock) MinimockGetCertificateInspect()
- func (m *CertificateManagerMock) MinimockWait(timeout mm_time.Duration)
- type CertificateManagerMockGetCertificateExpectation
- type CertificateManagerMockGetCertificateResults
- type CertificateMock
- func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodes() (da1 []mm_nodeinfo.DiscoveryNode)
- func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodesAfterCounter() uint64
- func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodesBeforeCounter() uint64
- func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySigns() (m1 map[reference.Global][]byte)
- func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySignsAfterCounter() uint64
- func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySignsBeforeCounter() uint64
- func (mmGetMajorityRule *CertificateMock) GetMajorityRule() (i1 int)
- func (mmGetMajorityRule *CertificateMock) GetMajorityRuleAfterCounter() uint64
- func (mmGetMajorityRule *CertificateMock) GetMajorityRuleBeforeCounter() uint64
- func (mmGetMinRoles *CertificateMock) GetMinRoles() (virtual uint, heavyMaterial uint, lightMaterial uint)
- func (mmGetMinRoles *CertificateMock) GetMinRolesAfterCounter() uint64
- func (mmGetMinRoles *CertificateMock) GetMinRolesBeforeCounter() uint64
- func (mmGetNodeRef *CertificateMock) GetNodeRef() (g1 reference.Global)
- func (mmGetNodeRef *CertificateMock) GetNodeRefAfterCounter() uint64
- func (mmGetNodeRef *CertificateMock) GetNodeRefBeforeCounter() uint64
- func (mmGetPublicKey *CertificateMock) GetPublicKey() (p1 crypto.PublicKey)
- func (mmGetPublicKey *CertificateMock) GetPublicKeyAfterCounter() uint64
- func (mmGetPublicKey *CertificateMock) GetPublicKeyBeforeCounter() uint64
- func (mmGetRole *CertificateMock) GetRole() (p1 member.PrimaryRole)
- func (mmGetRole *CertificateMock) GetRoleAfterCounter() uint64
- func (mmGetRole *CertificateMock) GetRoleBeforeCounter() uint64
- func (m *CertificateMock) MinimockFinish()
- func (m *CertificateMock) MinimockGetDiscoveryNodesDone() bool
- func (m *CertificateMock) MinimockGetDiscoveryNodesInspect()
- func (m *CertificateMock) MinimockGetDiscoverySignsDone() bool
- func (m *CertificateMock) MinimockGetDiscoverySignsInspect()
- func (m *CertificateMock) MinimockGetMajorityRuleDone() bool
- func (m *CertificateMock) MinimockGetMajorityRuleInspect()
- func (m *CertificateMock) MinimockGetMinRolesDone() bool
- func (m *CertificateMock) MinimockGetMinRolesInspect()
- func (m *CertificateMock) MinimockGetNodeRefDone() bool
- func (m *CertificateMock) MinimockGetNodeRefInspect()
- func (m *CertificateMock) MinimockGetPublicKeyDone() bool
- func (m *CertificateMock) MinimockGetPublicKeyInspect()
- func (m *CertificateMock) MinimockGetRoleDone() bool
- func (m *CertificateMock) MinimockGetRoleInspect()
- func (m *CertificateMock) MinimockSerializeNodePartDone() bool
- func (m *CertificateMock) MinimockSerializeNodePartInspect()
- func (m *CertificateMock) MinimockWait(timeout mm_time.Duration)
- func (mmSerializeNodePart *CertificateMock) SerializeNodePart() (ba1 []byte)
- func (mmSerializeNodePart *CertificateMock) SerializeNodePartAfterCounter() uint64
- func (mmSerializeNodePart *CertificateMock) SerializeNodePartBeforeCounter() uint64
- type CertificateMockGetDiscoveryNodesExpectation
- type CertificateMockGetDiscoveryNodesResults
- type CertificateMockGetDiscoverySignsExpectation
- type CertificateMockGetDiscoverySignsResults
- type CertificateMockGetMajorityRuleExpectation
- type CertificateMockGetMajorityRuleResults
- type CertificateMockGetMinRolesExpectation
- type CertificateMockGetMinRolesResults
- type CertificateMockGetNodeRefExpectation
- type CertificateMockGetNodeRefResults
- type CertificateMockGetPublicKeyExpectation
- type CertificateMockGetPublicKeyResults
- type CertificateMockGetRoleExpectation
- type CertificateMockGetRoleResults
- type CertificateMockSerializeNodePartExpectation
- type CertificateMockSerializeNodePartResults
- type DiscoveryNodeMock
- func (mmGetHost *DiscoveryNodeMock) GetHost() (s1 string)
- func (mmGetHost *DiscoveryNodeMock) GetHostAfterCounter() uint64
- func (mmGetHost *DiscoveryNodeMock) GetHostBeforeCounter() uint64
- func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRef() (g1 reference.Global)
- func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRefAfterCounter() uint64
- func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRefBeforeCounter() uint64
- func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKey() (p1 crypto.PublicKey)
- func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKeyAfterCounter() uint64
- func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKeyBeforeCounter() uint64
- func (m *DiscoveryNodeMock) MinimockFinish()
- func (m *DiscoveryNodeMock) MinimockGetHostDone() bool
- func (m *DiscoveryNodeMock) MinimockGetHostInspect()
- func (m *DiscoveryNodeMock) MinimockGetNodeRefDone() bool
- func (m *DiscoveryNodeMock) MinimockGetNodeRefInspect()
- func (m *DiscoveryNodeMock) MinimockGetPublicKeyDone() bool
- func (m *DiscoveryNodeMock) MinimockGetPublicKeyInspect()
- func (m *DiscoveryNodeMock) MinimockWait(timeout mm_time.Duration)
- type DiscoveryNodeMockGetHostExpectation
- type DiscoveryNodeMockGetHostResults
- type DiscoveryNodeMockGetNodeRefExpectation
- type DiscoveryNodeMockGetNodeRefResults
- type DiscoveryNodeMockGetPublicKeyExpectation
- type DiscoveryNodeMockGetPublicKeyResults
- type KeyProcessorMock
- func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEM(p1 crypto.PrivateKey) (ba1 []byte, err error)
- func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEMAfterCounter() uint64
- func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEMBeforeCounter() uint64
- func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinary(p1 crypto.PublicKey) (ba1 []byte, err error)
- func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinaryAfterCounter() uint64
- func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinaryBeforeCounter() uint64
- func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEM(p1 crypto.PublicKey) (ba1 []byte, err error)
- func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEMAfterCounter() uint64
- func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEMBeforeCounter() uint64
- func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKey(p1 crypto.PrivateKey) (p2 crypto.PublicKey)
- func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKeyAfterCounter() uint64
- func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKeyBeforeCounter() uint64
- func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKey() (p1 crypto.PrivateKey, err error)
- func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKeyAfterCounter() uint64
- func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKeyBeforeCounter() uint64
- func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEM(ba1 []byte) (p1 crypto.PrivateKey, err error)
- func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEMAfterCounter() uint64
- func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEMBeforeCounter() uint64
- func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinary(ba1 []byte) (p1 crypto.PublicKey, err error)
- func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinaryAfterCounter() uint64
- func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinaryBeforeCounter() uint64
- func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEM(ba1 []byte) (p1 crypto.PublicKey, err error)
- func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEMAfterCounter() uint64
- func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEMBeforeCounter() uint64
- func (m *KeyProcessorMock) MinimockExportPrivateKeyPEMDone() bool
- func (m *KeyProcessorMock) MinimockExportPrivateKeyPEMInspect()
- func (m *KeyProcessorMock) MinimockExportPublicKeyBinaryDone() bool
- func (m *KeyProcessorMock) MinimockExportPublicKeyBinaryInspect()
- func (m *KeyProcessorMock) MinimockExportPublicKeyPEMDone() bool
- func (m *KeyProcessorMock) MinimockExportPublicKeyPEMInspect()
- func (m *KeyProcessorMock) MinimockExtractPublicKeyDone() bool
- func (m *KeyProcessorMock) MinimockExtractPublicKeyInspect()
- func (m *KeyProcessorMock) MinimockFinish()
- func (m *KeyProcessorMock) MinimockGeneratePrivateKeyDone() bool
- func (m *KeyProcessorMock) MinimockGeneratePrivateKeyInspect()
- func (m *KeyProcessorMock) MinimockImportPrivateKeyPEMDone() bool
- func (m *KeyProcessorMock) MinimockImportPrivateKeyPEMInspect()
- func (m *KeyProcessorMock) MinimockImportPublicKeyBinaryDone() bool
- func (m *KeyProcessorMock) MinimockImportPublicKeyBinaryInspect()
- func (m *KeyProcessorMock) MinimockImportPublicKeyPEMDone() bool
- func (m *KeyProcessorMock) MinimockImportPublicKeyPEMInspect()
- func (m *KeyProcessorMock) MinimockWait(timeout mm_time.Duration)
- type KeyProcessorMockExportPrivateKeyPEMExpectation
- type KeyProcessorMockExportPrivateKeyPEMParams
- type KeyProcessorMockExportPrivateKeyPEMResults
- type KeyProcessorMockExportPublicKeyBinaryExpectation
- type KeyProcessorMockExportPublicKeyBinaryParams
- type KeyProcessorMockExportPublicKeyBinaryResults
- type KeyProcessorMockExportPublicKeyPEMExpectation
- type KeyProcessorMockExportPublicKeyPEMParams
- type KeyProcessorMockExportPublicKeyPEMResults
- type KeyProcessorMockExtractPublicKeyExpectation
- type KeyProcessorMockExtractPublicKeyParams
- type KeyProcessorMockExtractPublicKeyResults
- type KeyProcessorMockGeneratePrivateKeyExpectation
- type KeyProcessorMockGeneratePrivateKeyResults
- type KeyProcessorMockImportPrivateKeyPEMExpectation
- type KeyProcessorMockImportPrivateKeyPEMParams
- type KeyProcessorMockImportPrivateKeyPEMResults
- type KeyProcessorMockImportPublicKeyBinaryExpectation
- type KeyProcessorMockImportPublicKeyBinaryParams
- type KeyProcessorMockImportPublicKeyBinaryResults
- type KeyProcessorMockImportPublicKeyPEMExpectation
- type KeyProcessorMockImportPublicKeyPEMParams
- type KeyProcessorMockImportPublicKeyPEMResults
- type PulseGenerator
- func (g *PulseGenerator) CountBackPacket(count uint) pulsar.PulsePacket
- func (g *PulseGenerator) Generate() pulse.Data
- func (g *PulseGenerator) GetDelta() uint16
- func (g *PulseGenerator) GetLastBeat() beat.Beat
- func (g *PulseGenerator) GetLastPulseData() pulse.Data
- func (g *PulseGenerator) GetLastPulsePacket() pulsar.PulsePacket
- func (g *PulseGenerator) GetPrevBeat() beat.Beat
- type SyncT
- func (t *SyncT) Error(args ...interface{})
- func (t *SyncT) Errorf(format string, args ...interface{})
- func (t *SyncT) Fail()
- func (t *SyncT) FailNow()
- func (t *SyncT) Failed() bool
- func (t *SyncT) Fatal(args ...interface{})
- func (t *SyncT) Fatalf(format string, args ...interface{})
- func (t *SyncT) Helper()
- func (t *SyncT) Log(args ...interface{})
- func (t *SyncT) Logf(format string, args ...interface{})
- func (t *SyncT) Name() string
- func (t *SyncT) Skip(args ...interface{})
- func (t *SyncT) SkipNow()
- func (t *SyncT) Skipf(format string, args ...interface{})
- func (t *SyncT) Skipped() bool
- type Tester
Constants ¶
const LocalDebug = false
Variables ¶
This section is empty.
Functions ¶
func AssertJumpStep ¶
func AssertMigration ¶
func AssertMigration(t *testing.T, expected smachine.MigrateFunc) func(smachine.MigrateFunc)
func CmpStateFuncs ¶
func CmpStateFuncs(want, got interface{}) bool
func IsLocalDebug ¶
func IsLocalDebug() bool
func NewPlatformCryptographyScheme ¶
func NewPlatformCryptographyScheme() cryptography.PlatformCryptographyScheme
func NodesErrorLogReader ¶
nodesErrorLogReader reads launchnet logs and trying to find errors it them when errors found notification writes to 'writer'. It reads files in different goroutines and return chan for stopping them.
func WaitSignalsTimed ¶
WaitSignalsTimed waits with timeout for signal channels to be closed or signaled with a message once. Waiting is ordered and not parallel, this may be beneficial in some situation and hurtful in others.
Types ¶
type CertificateGetterMock ¶
type CertificateGetterMock struct { GetCertMock mCertificateGetterMockGetCert // contains filtered or unexported fields }
CertificateGetterMock implements nodeinfo.CertificateGetter
func NewCertificateGetterMock ¶
func NewCertificateGetterMock(t minimock.Tester) *CertificateGetterMock
NewCertificateGetterMock returns a mock for nodeinfo.CertificateGetter
func (*CertificateGetterMock) GetCert ¶
func (mmGetCert *CertificateGetterMock) GetCert(ctx context.Context, g1 reference.Global) (c2 mm_nodeinfo.Certificate, err error)
GetCert implements nodeinfo.CertificateGetter
func (*CertificateGetterMock) GetCertAfterCounter ¶
func (mmGetCert *CertificateGetterMock) GetCertAfterCounter() uint64
GetCertAfterCounter returns a count of finished CertificateGetterMock.GetCert invocations
func (*CertificateGetterMock) GetCertBeforeCounter ¶
func (mmGetCert *CertificateGetterMock) GetCertBeforeCounter() uint64
GetCertBeforeCounter returns a count of CertificateGetterMock.GetCert invocations
func (*CertificateGetterMock) MinimockFinish ¶
func (m *CertificateGetterMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CertificateGetterMock) MinimockGetCertDone ¶
func (m *CertificateGetterMock) MinimockGetCertDone() bool
MinimockGetCertDone returns true if the count of the GetCert invocations corresponds the number of defined expectations
func (*CertificateGetterMock) MinimockGetCertInspect ¶
func (m *CertificateGetterMock) MinimockGetCertInspect()
MinimockGetCertInspect logs each unmet expectation
func (*CertificateGetterMock) MinimockWait ¶
func (m *CertificateGetterMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type CertificateGetterMockGetCertExpectation ¶
type CertificateGetterMockGetCertExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateGetterMockGetCertExpectation specifies expectation struct of the CertificateGetter.GetCert
func (*CertificateGetterMockGetCertExpectation) Then ¶
func (e *CertificateGetterMockGetCertExpectation) Then(c2 mm_nodeinfo.Certificate, err error) *CertificateGetterMock
Then sets up CertificateGetter.GetCert return parameters for the expectation previously defined by the When method
type CertificateGetterMockGetCertParams ¶
type CertificateGetterMockGetCertParams struct {
// contains filtered or unexported fields
}
CertificateGetterMockGetCertParams contains parameters of the CertificateGetter.GetCert
type CertificateGetterMockGetCertResults ¶
type CertificateGetterMockGetCertResults struct {
// contains filtered or unexported fields
}
CertificateGetterMockGetCertResults contains results of the CertificateGetter.GetCert
type CertificateManagerMock ¶
type CertificateManagerMock struct { GetCertificateMock mCertificateManagerMockGetCertificate // contains filtered or unexported fields }
CertificateManagerMock implements nodeinfo.CertificateManager
func NewCertificateManagerMock ¶
func NewCertificateManagerMock(t minimock.Tester) *CertificateManagerMock
NewCertificateManagerMock returns a mock for nodeinfo.CertificateManager
func (*CertificateManagerMock) GetCertificate ¶
func (mmGetCertificate *CertificateManagerMock) GetCertificate() (c1 mm_nodeinfo.Certificate)
GetCertificate implements nodeinfo.CertificateManager
func (*CertificateManagerMock) GetCertificateAfterCounter ¶
func (mmGetCertificate *CertificateManagerMock) GetCertificateAfterCounter() uint64
GetCertificateAfterCounter returns a count of finished CertificateManagerMock.GetCertificate invocations
func (*CertificateManagerMock) GetCertificateBeforeCounter ¶
func (mmGetCertificate *CertificateManagerMock) GetCertificateBeforeCounter() uint64
GetCertificateBeforeCounter returns a count of CertificateManagerMock.GetCertificate invocations
func (*CertificateManagerMock) MinimockFinish ¶
func (m *CertificateManagerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CertificateManagerMock) MinimockGetCertificateDone ¶
func (m *CertificateManagerMock) MinimockGetCertificateDone() bool
MinimockGetCertificateDone returns true if the count of the GetCertificate invocations corresponds the number of defined expectations
func (*CertificateManagerMock) MinimockGetCertificateInspect ¶
func (m *CertificateManagerMock) MinimockGetCertificateInspect()
MinimockGetCertificateInspect logs each unmet expectation
func (*CertificateManagerMock) MinimockWait ¶
func (m *CertificateManagerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type CertificateManagerMockGetCertificateExpectation ¶
type CertificateManagerMockGetCertificateExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateManagerMockGetCertificateExpectation specifies expectation struct of the CertificateManager.GetCertificate
type CertificateManagerMockGetCertificateResults ¶
type CertificateManagerMockGetCertificateResults struct {
// contains filtered or unexported fields
}
CertificateManagerMockGetCertificateResults contains results of the CertificateManager.GetCertificate
type CertificateMock ¶
type CertificateMock struct { GetDiscoveryNodesMock mCertificateMockGetDiscoveryNodes GetDiscoverySignsMock mCertificateMockGetDiscoverySigns GetMajorityRuleMock mCertificateMockGetMajorityRule GetMinRolesMock mCertificateMockGetMinRoles GetNodeRefMock mCertificateMockGetNodeRef GetPublicKeyMock mCertificateMockGetPublicKey GetRoleMock mCertificateMockGetRole SerializeNodePartMock mCertificateMockSerializeNodePart // contains filtered or unexported fields }
CertificateMock implements nodeinfo.Certificate
func NewCertificateMock ¶
func NewCertificateMock(t minimock.Tester) *CertificateMock
NewCertificateMock returns a mock for nodeinfo.Certificate
func (*CertificateMock) GetDiscoveryNodes ¶
func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodes() (da1 []mm_nodeinfo.DiscoveryNode)
GetDiscoveryNodes implements nodeinfo.Certificate
func (*CertificateMock) GetDiscoveryNodesAfterCounter ¶
func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodesAfterCounter() uint64
GetDiscoveryNodesAfterCounter returns a count of finished CertificateMock.GetDiscoveryNodes invocations
func (*CertificateMock) GetDiscoveryNodesBeforeCounter ¶
func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodesBeforeCounter() uint64
GetDiscoveryNodesBeforeCounter returns a count of CertificateMock.GetDiscoveryNodes invocations
func (*CertificateMock) GetDiscoverySigns ¶
func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySigns() (m1 map[reference.Global][]byte)
GetDiscoverySigns implements nodeinfo.Certificate
func (*CertificateMock) GetDiscoverySignsAfterCounter ¶
func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySignsAfterCounter() uint64
GetDiscoverySignsAfterCounter returns a count of finished CertificateMock.GetDiscoverySigns invocations
func (*CertificateMock) GetDiscoverySignsBeforeCounter ¶
func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySignsBeforeCounter() uint64
GetDiscoverySignsBeforeCounter returns a count of CertificateMock.GetDiscoverySigns invocations
func (*CertificateMock) GetMajorityRule ¶
func (mmGetMajorityRule *CertificateMock) GetMajorityRule() (i1 int)
GetMajorityRule implements nodeinfo.Certificate
func (*CertificateMock) GetMajorityRuleAfterCounter ¶
func (mmGetMajorityRule *CertificateMock) GetMajorityRuleAfterCounter() uint64
GetMajorityRuleAfterCounter returns a count of finished CertificateMock.GetMajorityRule invocations
func (*CertificateMock) GetMajorityRuleBeforeCounter ¶
func (mmGetMajorityRule *CertificateMock) GetMajorityRuleBeforeCounter() uint64
GetMajorityRuleBeforeCounter returns a count of CertificateMock.GetMajorityRule invocations
func (*CertificateMock) GetMinRoles ¶
func (mmGetMinRoles *CertificateMock) GetMinRoles() (virtual uint, heavyMaterial uint, lightMaterial uint)
GetMinRoles implements nodeinfo.Certificate
func (*CertificateMock) GetMinRolesAfterCounter ¶
func (mmGetMinRoles *CertificateMock) GetMinRolesAfterCounter() uint64
GetMinRolesAfterCounter returns a count of finished CertificateMock.GetMinRoles invocations
func (*CertificateMock) GetMinRolesBeforeCounter ¶
func (mmGetMinRoles *CertificateMock) GetMinRolesBeforeCounter() uint64
GetMinRolesBeforeCounter returns a count of CertificateMock.GetMinRoles invocations
func (*CertificateMock) GetNodeRef ¶
func (mmGetNodeRef *CertificateMock) GetNodeRef() (g1 reference.Global)
GetNodeRef implements nodeinfo.Certificate
func (*CertificateMock) GetNodeRefAfterCounter ¶
func (mmGetNodeRef *CertificateMock) GetNodeRefAfterCounter() uint64
GetNodeRefAfterCounter returns a count of finished CertificateMock.GetNodeRef invocations
func (*CertificateMock) GetNodeRefBeforeCounter ¶
func (mmGetNodeRef *CertificateMock) GetNodeRefBeforeCounter() uint64
GetNodeRefBeforeCounter returns a count of CertificateMock.GetNodeRef invocations
func (*CertificateMock) GetPublicKey ¶
func (mmGetPublicKey *CertificateMock) GetPublicKey() (p1 crypto.PublicKey)
GetPublicKey implements nodeinfo.Certificate
func (*CertificateMock) GetPublicKeyAfterCounter ¶
func (mmGetPublicKey *CertificateMock) GetPublicKeyAfterCounter() uint64
GetPublicKeyAfterCounter returns a count of finished CertificateMock.GetPublicKey invocations
func (*CertificateMock) GetPublicKeyBeforeCounter ¶
func (mmGetPublicKey *CertificateMock) GetPublicKeyBeforeCounter() uint64
GetPublicKeyBeforeCounter returns a count of CertificateMock.GetPublicKey invocations
func (*CertificateMock) GetRole ¶
func (mmGetRole *CertificateMock) GetRole() (p1 member.PrimaryRole)
GetRole implements nodeinfo.Certificate
func (*CertificateMock) GetRoleAfterCounter ¶
func (mmGetRole *CertificateMock) GetRoleAfterCounter() uint64
GetRoleAfterCounter returns a count of finished CertificateMock.GetRole invocations
func (*CertificateMock) GetRoleBeforeCounter ¶
func (mmGetRole *CertificateMock) GetRoleBeforeCounter() uint64
GetRoleBeforeCounter returns a count of CertificateMock.GetRole invocations
func (*CertificateMock) MinimockFinish ¶
func (m *CertificateMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CertificateMock) MinimockGetDiscoveryNodesDone ¶
func (m *CertificateMock) MinimockGetDiscoveryNodesDone() bool
MinimockGetDiscoveryNodesDone returns true if the count of the GetDiscoveryNodes invocations corresponds the number of defined expectations
func (*CertificateMock) MinimockGetDiscoveryNodesInspect ¶
func (m *CertificateMock) MinimockGetDiscoveryNodesInspect()
MinimockGetDiscoveryNodesInspect logs each unmet expectation
func (*CertificateMock) MinimockGetDiscoverySignsDone ¶
func (m *CertificateMock) MinimockGetDiscoverySignsDone() bool
MinimockGetDiscoverySignsDone returns true if the count of the GetDiscoverySigns invocations corresponds the number of defined expectations
func (*CertificateMock) MinimockGetDiscoverySignsInspect ¶
func (m *CertificateMock) MinimockGetDiscoverySignsInspect()
MinimockGetDiscoverySignsInspect logs each unmet expectation
func (*CertificateMock) MinimockGetMajorityRuleDone ¶
func (m *CertificateMock) MinimockGetMajorityRuleDone() bool
MinimockGetMajorityRuleDone returns true if the count of the GetMajorityRule invocations corresponds the number of defined expectations
func (*CertificateMock) MinimockGetMajorityRuleInspect ¶
func (m *CertificateMock) MinimockGetMajorityRuleInspect()
MinimockGetMajorityRuleInspect logs each unmet expectation
func (*CertificateMock) MinimockGetMinRolesDone ¶
func (m *CertificateMock) MinimockGetMinRolesDone() bool
MinimockGetMinRolesDone returns true if the count of the GetMinRoles invocations corresponds the number of defined expectations
func (*CertificateMock) MinimockGetMinRolesInspect ¶
func (m *CertificateMock) MinimockGetMinRolesInspect()
MinimockGetMinRolesInspect logs each unmet expectation
func (*CertificateMock) MinimockGetNodeRefDone ¶
func (m *CertificateMock) MinimockGetNodeRefDone() bool
MinimockGetNodeRefDone returns true if the count of the GetNodeRef invocations corresponds the number of defined expectations
func (*CertificateMock) MinimockGetNodeRefInspect ¶
func (m *CertificateMock) MinimockGetNodeRefInspect()
MinimockGetNodeRefInspect logs each unmet expectation
func (*CertificateMock) MinimockGetPublicKeyDone ¶
func (m *CertificateMock) MinimockGetPublicKeyDone() bool
MinimockGetPublicKeyDone returns true if the count of the GetPublicKey invocations corresponds the number of defined expectations
func (*CertificateMock) MinimockGetPublicKeyInspect ¶
func (m *CertificateMock) MinimockGetPublicKeyInspect()
MinimockGetPublicKeyInspect logs each unmet expectation
func (*CertificateMock) MinimockGetRoleDone ¶
func (m *CertificateMock) MinimockGetRoleDone() bool
MinimockGetRoleDone returns true if the count of the GetRole invocations corresponds the number of defined expectations
func (*CertificateMock) MinimockGetRoleInspect ¶
func (m *CertificateMock) MinimockGetRoleInspect()
MinimockGetRoleInspect logs each unmet expectation
func (*CertificateMock) MinimockSerializeNodePartDone ¶
func (m *CertificateMock) MinimockSerializeNodePartDone() bool
MinimockSerializeNodePartDone returns true if the count of the SerializeNodePart invocations corresponds the number of defined expectations
func (*CertificateMock) MinimockSerializeNodePartInspect ¶
func (m *CertificateMock) MinimockSerializeNodePartInspect()
MinimockSerializeNodePartInspect logs each unmet expectation
func (*CertificateMock) MinimockWait ¶
func (m *CertificateMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*CertificateMock) SerializeNodePart ¶
func (mmSerializeNodePart *CertificateMock) SerializeNodePart() (ba1 []byte)
SerializeNodePart implements nodeinfo.Certificate
func (*CertificateMock) SerializeNodePartAfterCounter ¶
func (mmSerializeNodePart *CertificateMock) SerializeNodePartAfterCounter() uint64
SerializeNodePartAfterCounter returns a count of finished CertificateMock.SerializeNodePart invocations
func (*CertificateMock) SerializeNodePartBeforeCounter ¶
func (mmSerializeNodePart *CertificateMock) SerializeNodePartBeforeCounter() uint64
SerializeNodePartBeforeCounter returns a count of CertificateMock.SerializeNodePart invocations
type CertificateMockGetDiscoveryNodesExpectation ¶
type CertificateMockGetDiscoveryNodesExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateMockGetDiscoveryNodesExpectation specifies expectation struct of the Certificate.GetDiscoveryNodes
type CertificateMockGetDiscoveryNodesResults ¶
type CertificateMockGetDiscoveryNodesResults struct {
// contains filtered or unexported fields
}
CertificateMockGetDiscoveryNodesResults contains results of the Certificate.GetDiscoveryNodes
type CertificateMockGetDiscoverySignsExpectation ¶
type CertificateMockGetDiscoverySignsExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateMockGetDiscoverySignsExpectation specifies expectation struct of the Certificate.GetDiscoverySigns
type CertificateMockGetDiscoverySignsResults ¶
type CertificateMockGetDiscoverySignsResults struct {
// contains filtered or unexported fields
}
CertificateMockGetDiscoverySignsResults contains results of the Certificate.GetDiscoverySigns
type CertificateMockGetMajorityRuleExpectation ¶
type CertificateMockGetMajorityRuleExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateMockGetMajorityRuleExpectation specifies expectation struct of the Certificate.GetMajorityRule
type CertificateMockGetMajorityRuleResults ¶
type CertificateMockGetMajorityRuleResults struct {
// contains filtered or unexported fields
}
CertificateMockGetMajorityRuleResults contains results of the Certificate.GetMajorityRule
type CertificateMockGetMinRolesExpectation ¶
type CertificateMockGetMinRolesExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateMockGetMinRolesExpectation specifies expectation struct of the Certificate.GetMinRoles
type CertificateMockGetMinRolesResults ¶
type CertificateMockGetMinRolesResults struct {
// contains filtered or unexported fields
}
CertificateMockGetMinRolesResults contains results of the Certificate.GetMinRoles
type CertificateMockGetNodeRefExpectation ¶
type CertificateMockGetNodeRefExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateMockGetNodeRefExpectation specifies expectation struct of the Certificate.GetNodeRef
type CertificateMockGetNodeRefResults ¶
type CertificateMockGetNodeRefResults struct {
// contains filtered or unexported fields
}
CertificateMockGetNodeRefResults contains results of the Certificate.GetNodeRef
type CertificateMockGetPublicKeyExpectation ¶
type CertificateMockGetPublicKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateMockGetPublicKeyExpectation specifies expectation struct of the Certificate.GetPublicKey
type CertificateMockGetPublicKeyResults ¶
type CertificateMockGetPublicKeyResults struct {
// contains filtered or unexported fields
}
CertificateMockGetPublicKeyResults contains results of the Certificate.GetPublicKey
type CertificateMockGetRoleExpectation ¶
type CertificateMockGetRoleExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateMockGetRoleExpectation specifies expectation struct of the Certificate.GetRole
type CertificateMockGetRoleResults ¶
type CertificateMockGetRoleResults struct {
// contains filtered or unexported fields
}
CertificateMockGetRoleResults contains results of the Certificate.GetRole
type CertificateMockSerializeNodePartExpectation ¶
type CertificateMockSerializeNodePartExpectation struct { Counter uint64 // contains filtered or unexported fields }
CertificateMockSerializeNodePartExpectation specifies expectation struct of the Certificate.SerializeNodePart
type CertificateMockSerializeNodePartResults ¶
type CertificateMockSerializeNodePartResults struct {
// contains filtered or unexported fields
}
CertificateMockSerializeNodePartResults contains results of the Certificate.SerializeNodePart
type DiscoveryNodeMock ¶
type DiscoveryNodeMock struct { GetHostMock mDiscoveryNodeMockGetHost GetNodeRefMock mDiscoveryNodeMockGetNodeRef GetPublicKeyMock mDiscoveryNodeMockGetPublicKey // contains filtered or unexported fields }
DiscoveryNodeMock implements nodeinfo.DiscoveryNode
func NewDiscoveryNodeMock ¶
func NewDiscoveryNodeMock(t minimock.Tester) *DiscoveryNodeMock
NewDiscoveryNodeMock returns a mock for nodeinfo.DiscoveryNode
func (*DiscoveryNodeMock) GetHost ¶
func (mmGetHost *DiscoveryNodeMock) GetHost() (s1 string)
GetHost implements nodeinfo.DiscoveryNode
func (*DiscoveryNodeMock) GetHostAfterCounter ¶
func (mmGetHost *DiscoveryNodeMock) GetHostAfterCounter() uint64
GetHostAfterCounter returns a count of finished DiscoveryNodeMock.GetHost invocations
func (*DiscoveryNodeMock) GetHostBeforeCounter ¶
func (mmGetHost *DiscoveryNodeMock) GetHostBeforeCounter() uint64
GetHostBeforeCounter returns a count of DiscoveryNodeMock.GetHost invocations
func (*DiscoveryNodeMock) GetNodeRef ¶
func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRef() (g1 reference.Global)
GetNodeRef implements nodeinfo.DiscoveryNode
func (*DiscoveryNodeMock) GetNodeRefAfterCounter ¶
func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRefAfterCounter() uint64
GetNodeRefAfterCounter returns a count of finished DiscoveryNodeMock.GetNodeRef invocations
func (*DiscoveryNodeMock) GetNodeRefBeforeCounter ¶
func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRefBeforeCounter() uint64
GetNodeRefBeforeCounter returns a count of DiscoveryNodeMock.GetNodeRef invocations
func (*DiscoveryNodeMock) GetPublicKey ¶
func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKey() (p1 crypto.PublicKey)
GetPublicKey implements nodeinfo.DiscoveryNode
func (*DiscoveryNodeMock) GetPublicKeyAfterCounter ¶
func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKeyAfterCounter() uint64
GetPublicKeyAfterCounter returns a count of finished DiscoveryNodeMock.GetPublicKey invocations
func (*DiscoveryNodeMock) GetPublicKeyBeforeCounter ¶
func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKeyBeforeCounter() uint64
GetPublicKeyBeforeCounter returns a count of DiscoveryNodeMock.GetPublicKey invocations
func (*DiscoveryNodeMock) MinimockFinish ¶
func (m *DiscoveryNodeMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*DiscoveryNodeMock) MinimockGetHostDone ¶
func (m *DiscoveryNodeMock) MinimockGetHostDone() bool
MinimockGetHostDone returns true if the count of the GetHost invocations corresponds the number of defined expectations
func (*DiscoveryNodeMock) MinimockGetHostInspect ¶
func (m *DiscoveryNodeMock) MinimockGetHostInspect()
MinimockGetHostInspect logs each unmet expectation
func (*DiscoveryNodeMock) MinimockGetNodeRefDone ¶
func (m *DiscoveryNodeMock) MinimockGetNodeRefDone() bool
MinimockGetNodeRefDone returns true if the count of the GetNodeRef invocations corresponds the number of defined expectations
func (*DiscoveryNodeMock) MinimockGetNodeRefInspect ¶
func (m *DiscoveryNodeMock) MinimockGetNodeRefInspect()
MinimockGetNodeRefInspect logs each unmet expectation
func (*DiscoveryNodeMock) MinimockGetPublicKeyDone ¶
func (m *DiscoveryNodeMock) MinimockGetPublicKeyDone() bool
MinimockGetPublicKeyDone returns true if the count of the GetPublicKey invocations corresponds the number of defined expectations
func (*DiscoveryNodeMock) MinimockGetPublicKeyInspect ¶
func (m *DiscoveryNodeMock) MinimockGetPublicKeyInspect()
MinimockGetPublicKeyInspect logs each unmet expectation
func (*DiscoveryNodeMock) MinimockWait ¶
func (m *DiscoveryNodeMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type DiscoveryNodeMockGetHostExpectation ¶
type DiscoveryNodeMockGetHostExpectation struct { Counter uint64 // contains filtered or unexported fields }
DiscoveryNodeMockGetHostExpectation specifies expectation struct of the DiscoveryNode.GetHost
type DiscoveryNodeMockGetHostResults ¶
type DiscoveryNodeMockGetHostResults struct {
// contains filtered or unexported fields
}
DiscoveryNodeMockGetHostResults contains results of the DiscoveryNode.GetHost
type DiscoveryNodeMockGetNodeRefExpectation ¶
type DiscoveryNodeMockGetNodeRefExpectation struct { Counter uint64 // contains filtered or unexported fields }
DiscoveryNodeMockGetNodeRefExpectation specifies expectation struct of the DiscoveryNode.GetNodeRef
type DiscoveryNodeMockGetNodeRefResults ¶
type DiscoveryNodeMockGetNodeRefResults struct {
// contains filtered or unexported fields
}
DiscoveryNodeMockGetNodeRefResults contains results of the DiscoveryNode.GetNodeRef
type DiscoveryNodeMockGetPublicKeyExpectation ¶
type DiscoveryNodeMockGetPublicKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
DiscoveryNodeMockGetPublicKeyExpectation specifies expectation struct of the DiscoveryNode.GetPublicKey
type DiscoveryNodeMockGetPublicKeyResults ¶
type DiscoveryNodeMockGetPublicKeyResults struct {
// contains filtered or unexported fields
}
DiscoveryNodeMockGetPublicKeyResults contains results of the DiscoveryNode.GetPublicKey
type KeyProcessorMock ¶
type KeyProcessorMock struct { ExportPrivateKeyPEMMock mKeyProcessorMockExportPrivateKeyPEM ExportPublicKeyBinaryMock mKeyProcessorMockExportPublicKeyBinary ExportPublicKeyPEMMock mKeyProcessorMockExportPublicKeyPEM ExtractPublicKeyMock mKeyProcessorMockExtractPublicKey GeneratePrivateKeyMock mKeyProcessorMockGeneratePrivateKey ImportPrivateKeyPEMMock mKeyProcessorMockImportPrivateKeyPEM ImportPublicKeyBinaryMock mKeyProcessorMockImportPublicKeyBinary ImportPublicKeyPEMMock mKeyProcessorMockImportPublicKeyPEM // contains filtered or unexported fields }
KeyProcessorMock implements cryptography.KeyProcessor
func NewKeyProcessorMock ¶
func NewKeyProcessorMock(t minimock.Tester) *KeyProcessorMock
NewKeyProcessorMock returns a mock for cryptography.KeyProcessor
func (*KeyProcessorMock) ExportPrivateKeyPEM ¶
func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEM(p1 crypto.PrivateKey) (ba1 []byte, err error)
ExportPrivateKeyPEM implements cryptography.KeyProcessor
func (*KeyProcessorMock) ExportPrivateKeyPEMAfterCounter ¶
func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEMAfterCounter() uint64
ExportPrivateKeyPEMAfterCounter returns a count of finished KeyProcessorMock.ExportPrivateKeyPEM invocations
func (*KeyProcessorMock) ExportPrivateKeyPEMBeforeCounter ¶
func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEMBeforeCounter() uint64
ExportPrivateKeyPEMBeforeCounter returns a count of KeyProcessorMock.ExportPrivateKeyPEM invocations
func (*KeyProcessorMock) ExportPublicKeyBinary ¶
func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinary(p1 crypto.PublicKey) (ba1 []byte, err error)
ExportPublicKeyBinary implements cryptography.KeyProcessor
func (*KeyProcessorMock) ExportPublicKeyBinaryAfterCounter ¶
func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinaryAfterCounter() uint64
ExportPublicKeyBinaryAfterCounter returns a count of finished KeyProcessorMock.ExportPublicKeyBinary invocations
func (*KeyProcessorMock) ExportPublicKeyBinaryBeforeCounter ¶
func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinaryBeforeCounter() uint64
ExportPublicKeyBinaryBeforeCounter returns a count of KeyProcessorMock.ExportPublicKeyBinary invocations
func (*KeyProcessorMock) ExportPublicKeyPEM ¶
func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEM(p1 crypto.PublicKey) (ba1 []byte, err error)
ExportPublicKeyPEM implements cryptography.KeyProcessor
func (*KeyProcessorMock) ExportPublicKeyPEMAfterCounter ¶
func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEMAfterCounter() uint64
ExportPublicKeyPEMAfterCounter returns a count of finished KeyProcessorMock.ExportPublicKeyPEM invocations
func (*KeyProcessorMock) ExportPublicKeyPEMBeforeCounter ¶
func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEMBeforeCounter() uint64
ExportPublicKeyPEMBeforeCounter returns a count of KeyProcessorMock.ExportPublicKeyPEM invocations
func (*KeyProcessorMock) ExtractPublicKey ¶
func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKey(p1 crypto.PrivateKey) (p2 crypto.PublicKey)
ExtractPublicKey implements cryptography.KeyProcessor
func (*KeyProcessorMock) ExtractPublicKeyAfterCounter ¶
func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKeyAfterCounter() uint64
ExtractPublicKeyAfterCounter returns a count of finished KeyProcessorMock.ExtractPublicKey invocations
func (*KeyProcessorMock) ExtractPublicKeyBeforeCounter ¶
func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKeyBeforeCounter() uint64
ExtractPublicKeyBeforeCounter returns a count of KeyProcessorMock.ExtractPublicKey invocations
func (*KeyProcessorMock) GeneratePrivateKey ¶
func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKey() (p1 crypto.PrivateKey, err error)
GeneratePrivateKey implements cryptography.KeyProcessor
func (*KeyProcessorMock) GeneratePrivateKeyAfterCounter ¶
func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKeyAfterCounter() uint64
GeneratePrivateKeyAfterCounter returns a count of finished KeyProcessorMock.GeneratePrivateKey invocations
func (*KeyProcessorMock) GeneratePrivateKeyBeforeCounter ¶
func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKeyBeforeCounter() uint64
GeneratePrivateKeyBeforeCounter returns a count of KeyProcessorMock.GeneratePrivateKey invocations
func (*KeyProcessorMock) ImportPrivateKeyPEM ¶
func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEM(ba1 []byte) (p1 crypto.PrivateKey, err error)
ImportPrivateKeyPEM implements cryptography.KeyProcessor
func (*KeyProcessorMock) ImportPrivateKeyPEMAfterCounter ¶
func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEMAfterCounter() uint64
ImportPrivateKeyPEMAfterCounter returns a count of finished KeyProcessorMock.ImportPrivateKeyPEM invocations
func (*KeyProcessorMock) ImportPrivateKeyPEMBeforeCounter ¶
func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEMBeforeCounter() uint64
ImportPrivateKeyPEMBeforeCounter returns a count of KeyProcessorMock.ImportPrivateKeyPEM invocations
func (*KeyProcessorMock) ImportPublicKeyBinary ¶
func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinary(ba1 []byte) (p1 crypto.PublicKey, err error)
ImportPublicKeyBinary implements cryptography.KeyProcessor
func (*KeyProcessorMock) ImportPublicKeyBinaryAfterCounter ¶
func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinaryAfterCounter() uint64
ImportPublicKeyBinaryAfterCounter returns a count of finished KeyProcessorMock.ImportPublicKeyBinary invocations
func (*KeyProcessorMock) ImportPublicKeyBinaryBeforeCounter ¶
func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinaryBeforeCounter() uint64
ImportPublicKeyBinaryBeforeCounter returns a count of KeyProcessorMock.ImportPublicKeyBinary invocations
func (*KeyProcessorMock) ImportPublicKeyPEM ¶
func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEM(ba1 []byte) (p1 crypto.PublicKey, err error)
ImportPublicKeyPEM implements cryptography.KeyProcessor
func (*KeyProcessorMock) ImportPublicKeyPEMAfterCounter ¶
func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEMAfterCounter() uint64
ImportPublicKeyPEMAfterCounter returns a count of finished KeyProcessorMock.ImportPublicKeyPEM invocations
func (*KeyProcessorMock) ImportPublicKeyPEMBeforeCounter ¶
func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEMBeforeCounter() uint64
ImportPublicKeyPEMBeforeCounter returns a count of KeyProcessorMock.ImportPublicKeyPEM invocations
func (*KeyProcessorMock) MinimockExportPrivateKeyPEMDone ¶
func (m *KeyProcessorMock) MinimockExportPrivateKeyPEMDone() bool
MinimockExportPrivateKeyPEMDone returns true if the count of the ExportPrivateKeyPEM invocations corresponds the number of defined expectations
func (*KeyProcessorMock) MinimockExportPrivateKeyPEMInspect ¶
func (m *KeyProcessorMock) MinimockExportPrivateKeyPEMInspect()
MinimockExportPrivateKeyPEMInspect logs each unmet expectation
func (*KeyProcessorMock) MinimockExportPublicKeyBinaryDone ¶
func (m *KeyProcessorMock) MinimockExportPublicKeyBinaryDone() bool
MinimockExportPublicKeyBinaryDone returns true if the count of the ExportPublicKeyBinary invocations corresponds the number of defined expectations
func (*KeyProcessorMock) MinimockExportPublicKeyBinaryInspect ¶
func (m *KeyProcessorMock) MinimockExportPublicKeyBinaryInspect()
MinimockExportPublicKeyBinaryInspect logs each unmet expectation
func (*KeyProcessorMock) MinimockExportPublicKeyPEMDone ¶
func (m *KeyProcessorMock) MinimockExportPublicKeyPEMDone() bool
MinimockExportPublicKeyPEMDone returns true if the count of the ExportPublicKeyPEM invocations corresponds the number of defined expectations
func (*KeyProcessorMock) MinimockExportPublicKeyPEMInspect ¶
func (m *KeyProcessorMock) MinimockExportPublicKeyPEMInspect()
MinimockExportPublicKeyPEMInspect logs each unmet expectation
func (*KeyProcessorMock) MinimockExtractPublicKeyDone ¶
func (m *KeyProcessorMock) MinimockExtractPublicKeyDone() bool
MinimockExtractPublicKeyDone returns true if the count of the ExtractPublicKey invocations corresponds the number of defined expectations
func (*KeyProcessorMock) MinimockExtractPublicKeyInspect ¶
func (m *KeyProcessorMock) MinimockExtractPublicKeyInspect()
MinimockExtractPublicKeyInspect logs each unmet expectation
func (*KeyProcessorMock) MinimockFinish ¶
func (m *KeyProcessorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*KeyProcessorMock) MinimockGeneratePrivateKeyDone ¶
func (m *KeyProcessorMock) MinimockGeneratePrivateKeyDone() bool
MinimockGeneratePrivateKeyDone returns true if the count of the GeneratePrivateKey invocations corresponds the number of defined expectations
func (*KeyProcessorMock) MinimockGeneratePrivateKeyInspect ¶
func (m *KeyProcessorMock) MinimockGeneratePrivateKeyInspect()
MinimockGeneratePrivateKeyInspect logs each unmet expectation
func (*KeyProcessorMock) MinimockImportPrivateKeyPEMDone ¶
func (m *KeyProcessorMock) MinimockImportPrivateKeyPEMDone() bool
MinimockImportPrivateKeyPEMDone returns true if the count of the ImportPrivateKeyPEM invocations corresponds the number of defined expectations
func (*KeyProcessorMock) MinimockImportPrivateKeyPEMInspect ¶
func (m *KeyProcessorMock) MinimockImportPrivateKeyPEMInspect()
MinimockImportPrivateKeyPEMInspect logs each unmet expectation
func (*KeyProcessorMock) MinimockImportPublicKeyBinaryDone ¶
func (m *KeyProcessorMock) MinimockImportPublicKeyBinaryDone() bool
MinimockImportPublicKeyBinaryDone returns true if the count of the ImportPublicKeyBinary invocations corresponds the number of defined expectations
func (*KeyProcessorMock) MinimockImportPublicKeyBinaryInspect ¶
func (m *KeyProcessorMock) MinimockImportPublicKeyBinaryInspect()
MinimockImportPublicKeyBinaryInspect logs each unmet expectation
func (*KeyProcessorMock) MinimockImportPublicKeyPEMDone ¶
func (m *KeyProcessorMock) MinimockImportPublicKeyPEMDone() bool
MinimockImportPublicKeyPEMDone returns true if the count of the ImportPublicKeyPEM invocations corresponds the number of defined expectations
func (*KeyProcessorMock) MinimockImportPublicKeyPEMInspect ¶
func (m *KeyProcessorMock) MinimockImportPublicKeyPEMInspect()
MinimockImportPublicKeyPEMInspect logs each unmet expectation
func (*KeyProcessorMock) MinimockWait ¶
func (m *KeyProcessorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type KeyProcessorMockExportPrivateKeyPEMExpectation ¶
type KeyProcessorMockExportPrivateKeyPEMExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyProcessorMockExportPrivateKeyPEMExpectation specifies expectation struct of the KeyProcessor.ExportPrivateKeyPEM
func (*KeyProcessorMockExportPrivateKeyPEMExpectation) Then ¶
func (e *KeyProcessorMockExportPrivateKeyPEMExpectation) Then(ba1 []byte, err error) *KeyProcessorMock
Then sets up KeyProcessor.ExportPrivateKeyPEM return parameters for the expectation previously defined by the When method
type KeyProcessorMockExportPrivateKeyPEMParams ¶
type KeyProcessorMockExportPrivateKeyPEMParams struct {
// contains filtered or unexported fields
}
KeyProcessorMockExportPrivateKeyPEMParams contains parameters of the KeyProcessor.ExportPrivateKeyPEM
type KeyProcessorMockExportPrivateKeyPEMResults ¶
type KeyProcessorMockExportPrivateKeyPEMResults struct {
// contains filtered or unexported fields
}
KeyProcessorMockExportPrivateKeyPEMResults contains results of the KeyProcessor.ExportPrivateKeyPEM
type KeyProcessorMockExportPublicKeyBinaryExpectation ¶
type KeyProcessorMockExportPublicKeyBinaryExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyProcessorMockExportPublicKeyBinaryExpectation specifies expectation struct of the KeyProcessor.ExportPublicKeyBinary
func (*KeyProcessorMockExportPublicKeyBinaryExpectation) Then ¶
func (e *KeyProcessorMockExportPublicKeyBinaryExpectation) Then(ba1 []byte, err error) *KeyProcessorMock
Then sets up KeyProcessor.ExportPublicKeyBinary return parameters for the expectation previously defined by the When method
type KeyProcessorMockExportPublicKeyBinaryParams ¶
type KeyProcessorMockExportPublicKeyBinaryParams struct {
// contains filtered or unexported fields
}
KeyProcessorMockExportPublicKeyBinaryParams contains parameters of the KeyProcessor.ExportPublicKeyBinary
type KeyProcessorMockExportPublicKeyBinaryResults ¶
type KeyProcessorMockExportPublicKeyBinaryResults struct {
// contains filtered or unexported fields
}
KeyProcessorMockExportPublicKeyBinaryResults contains results of the KeyProcessor.ExportPublicKeyBinary
type KeyProcessorMockExportPublicKeyPEMExpectation ¶
type KeyProcessorMockExportPublicKeyPEMExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyProcessorMockExportPublicKeyPEMExpectation specifies expectation struct of the KeyProcessor.ExportPublicKeyPEM
func (*KeyProcessorMockExportPublicKeyPEMExpectation) Then ¶
func (e *KeyProcessorMockExportPublicKeyPEMExpectation) Then(ba1 []byte, err error) *KeyProcessorMock
Then sets up KeyProcessor.ExportPublicKeyPEM return parameters for the expectation previously defined by the When method
type KeyProcessorMockExportPublicKeyPEMParams ¶
type KeyProcessorMockExportPublicKeyPEMParams struct {
// contains filtered or unexported fields
}
KeyProcessorMockExportPublicKeyPEMParams contains parameters of the KeyProcessor.ExportPublicKeyPEM
type KeyProcessorMockExportPublicKeyPEMResults ¶
type KeyProcessorMockExportPublicKeyPEMResults struct {
// contains filtered or unexported fields
}
KeyProcessorMockExportPublicKeyPEMResults contains results of the KeyProcessor.ExportPublicKeyPEM
type KeyProcessorMockExtractPublicKeyExpectation ¶
type KeyProcessorMockExtractPublicKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyProcessorMockExtractPublicKeyExpectation specifies expectation struct of the KeyProcessor.ExtractPublicKey
func (*KeyProcessorMockExtractPublicKeyExpectation) Then ¶
func (e *KeyProcessorMockExtractPublicKeyExpectation) Then(p2 crypto.PublicKey) *KeyProcessorMock
Then sets up KeyProcessor.ExtractPublicKey return parameters for the expectation previously defined by the When method
type KeyProcessorMockExtractPublicKeyParams ¶
type KeyProcessorMockExtractPublicKeyParams struct {
// contains filtered or unexported fields
}
KeyProcessorMockExtractPublicKeyParams contains parameters of the KeyProcessor.ExtractPublicKey
type KeyProcessorMockExtractPublicKeyResults ¶
type KeyProcessorMockExtractPublicKeyResults struct {
// contains filtered or unexported fields
}
KeyProcessorMockExtractPublicKeyResults contains results of the KeyProcessor.ExtractPublicKey
type KeyProcessorMockGeneratePrivateKeyExpectation ¶
type KeyProcessorMockGeneratePrivateKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyProcessorMockGeneratePrivateKeyExpectation specifies expectation struct of the KeyProcessor.GeneratePrivateKey
type KeyProcessorMockGeneratePrivateKeyResults ¶
type KeyProcessorMockGeneratePrivateKeyResults struct {
// contains filtered or unexported fields
}
KeyProcessorMockGeneratePrivateKeyResults contains results of the KeyProcessor.GeneratePrivateKey
type KeyProcessorMockImportPrivateKeyPEMExpectation ¶
type KeyProcessorMockImportPrivateKeyPEMExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyProcessorMockImportPrivateKeyPEMExpectation specifies expectation struct of the KeyProcessor.ImportPrivateKeyPEM
func (*KeyProcessorMockImportPrivateKeyPEMExpectation) Then ¶
func (e *KeyProcessorMockImportPrivateKeyPEMExpectation) Then(p1 crypto.PrivateKey, err error) *KeyProcessorMock
Then sets up KeyProcessor.ImportPrivateKeyPEM return parameters for the expectation previously defined by the When method
type KeyProcessorMockImportPrivateKeyPEMParams ¶
type KeyProcessorMockImportPrivateKeyPEMParams struct {
// contains filtered or unexported fields
}
KeyProcessorMockImportPrivateKeyPEMParams contains parameters of the KeyProcessor.ImportPrivateKeyPEM
type KeyProcessorMockImportPrivateKeyPEMResults ¶
type KeyProcessorMockImportPrivateKeyPEMResults struct {
// contains filtered or unexported fields
}
KeyProcessorMockImportPrivateKeyPEMResults contains results of the KeyProcessor.ImportPrivateKeyPEM
type KeyProcessorMockImportPublicKeyBinaryExpectation ¶
type KeyProcessorMockImportPublicKeyBinaryExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyProcessorMockImportPublicKeyBinaryExpectation specifies expectation struct of the KeyProcessor.ImportPublicKeyBinary
func (*KeyProcessorMockImportPublicKeyBinaryExpectation) Then ¶
func (e *KeyProcessorMockImportPublicKeyBinaryExpectation) Then(p1 crypto.PublicKey, err error) *KeyProcessorMock
Then sets up KeyProcessor.ImportPublicKeyBinary return parameters for the expectation previously defined by the When method
type KeyProcessorMockImportPublicKeyBinaryParams ¶
type KeyProcessorMockImportPublicKeyBinaryParams struct {
// contains filtered or unexported fields
}
KeyProcessorMockImportPublicKeyBinaryParams contains parameters of the KeyProcessor.ImportPublicKeyBinary
type KeyProcessorMockImportPublicKeyBinaryResults ¶
type KeyProcessorMockImportPublicKeyBinaryResults struct {
// contains filtered or unexported fields
}
KeyProcessorMockImportPublicKeyBinaryResults contains results of the KeyProcessor.ImportPublicKeyBinary
type KeyProcessorMockImportPublicKeyPEMExpectation ¶
type KeyProcessorMockImportPublicKeyPEMExpectation struct { Counter uint64 // contains filtered or unexported fields }
KeyProcessorMockImportPublicKeyPEMExpectation specifies expectation struct of the KeyProcessor.ImportPublicKeyPEM
func (*KeyProcessorMockImportPublicKeyPEMExpectation) Then ¶
func (e *KeyProcessorMockImportPublicKeyPEMExpectation) Then(p1 crypto.PublicKey, err error) *KeyProcessorMock
Then sets up KeyProcessor.ImportPublicKeyPEM return parameters for the expectation previously defined by the When method
type KeyProcessorMockImportPublicKeyPEMParams ¶
type KeyProcessorMockImportPublicKeyPEMParams struct {
// contains filtered or unexported fields
}
KeyProcessorMockImportPublicKeyPEMParams contains parameters of the KeyProcessor.ImportPublicKeyPEM
type KeyProcessorMockImportPublicKeyPEMResults ¶
type KeyProcessorMockImportPublicKeyPEMResults struct {
// contains filtered or unexported fields
}
KeyProcessorMockImportPublicKeyPEMResults contains results of the KeyProcessor.ImportPublicKeyPEM
type PulseGenerator ¶
type PulseGenerator struct {
// contains filtered or unexported fields
}
func NewPulseGenerator ¶
func NewPulseGenerator(delta uint16, online census.OnlinePopulation, entropyGenerator entropygenerator.EntropyGenerator) *PulseGenerator
func (*PulseGenerator) CountBackPacket ¶
func (g *PulseGenerator) CountBackPacket(count uint) pulsar.PulsePacket
func (*PulseGenerator) Generate ¶
func (g *PulseGenerator) Generate() pulse.Data
func (*PulseGenerator) GetDelta ¶
func (g *PulseGenerator) GetDelta() uint16
func (*PulseGenerator) GetLastBeat ¶
func (g *PulseGenerator) GetLastBeat() beat.Beat
func (*PulseGenerator) GetLastPulseData ¶
func (g *PulseGenerator) GetLastPulseData() pulse.Data
func (*PulseGenerator) GetLastPulsePacket ¶
func (g *PulseGenerator) GetLastPulsePacket() pulsar.PulsePacket
func (*PulseGenerator) GetPrevBeat ¶
func (g *PulseGenerator) GetPrevBeat() beat.Beat