Documentation ¶
Index ¶
- type AddResult
- type BundleResolver
- func (p *BundleResolver) Add(record Record) bool
- func (p *BundleResolver) GetErrors() []error
- func (p *BundleResolver) GetUnresolvedDependencies() []UnresolvedDependency
- func (p *BundleResolver) HasErrors() bool
- func (p *BundleResolver) Hint(recordCount int)
- func (p *BundleResolver) IsEmpty() bool
- func (p *BundleResolver) IsReadyForStage() bool
- func (p *BundleResolver) Reprocess()
- type DependencyResolver
- type DependencyResolverMock
- func (mmFindLineDependency *DependencyResolverMock) FindLineDependency(root reference.Holder, ref reference.LocalHolder) (r1 ResolvedDependency, err error)
- func (mmFindLineDependency *DependencyResolverMock) FindLineDependencyAfterCounter() uint64
- func (mmFindLineDependency *DependencyResolverMock) FindLineDependencyBeforeCounter() uint64
- func (mmFindOtherDependency *DependencyResolverMock) FindOtherDependency(ref reference.Holder) (r1 ResolvedDependency, err error)
- func (mmFindOtherDependency *DependencyResolverMock) FindOtherDependencyAfterCounter() uint64
- func (mmFindOtherDependency *DependencyResolverMock) FindOtherDependencyBeforeCounter() uint64
- func (m *DependencyResolverMock) MinimockFindLineDependencyDone() bool
- func (m *DependencyResolverMock) MinimockFindLineDependencyInspect()
- func (m *DependencyResolverMock) MinimockFindOtherDependencyDone() bool
- func (m *DependencyResolverMock) MinimockFindOtherDependencyInspect()
- func (m *DependencyResolverMock) MinimockFinish()
- func (m *DependencyResolverMock) MinimockWait(timeout mm_time.Duration)
- type DependencyResolverMockFindLineDependencyExpectation
- type DependencyResolverMockFindLineDependencyParams
- type DependencyResolverMockFindLineDependencyResults
- type DependencyResolverMockFindOtherDependencyExpectation
- type DependencyResolverMockFindOtherDependencyParams
- type DependencyResolverMockFindOtherDependencyResults
- type DustMode
- type FilamentSummary
- type LineResolverMock
- func (m *LineResolverMock) MinimockFinish()
- func (m *LineResolverMock) MinimockWait(timeout mm_time.Duration)
- func (m *LineResolverMock) MinimockfindChainedDependencyDone() bool
- func (m *LineResolverMock) MinimockfindChainedDependencyInspect()
- func (m *LineResolverMock) MinimockfindCollisionDone() bool
- func (m *LineResolverMock) MinimockfindCollisionInspect()
- func (m *LineResolverMock) MinimockfindFilamentDone() bool
- func (m *LineResolverMock) MinimockfindFilamentInspect()
- func (m *LineResolverMock) MinimockfindLineDependencyDone() bool
- func (m *LineResolverMock) MinimockfindLineDependencyInspect()
- func (m *LineResolverMock) MinimockfindLocalDependencyDone() bool
- func (m *LineResolverMock) MinimockfindLocalDependencyInspect()
- func (m *LineResolverMock) MinimockfindOtherDependencyDone() bool
- func (m *LineResolverMock) MinimockfindOtherDependencyInspect()
- func (m *LineResolverMock) MinimockgetLineBaseDone() bool
- func (m *LineResolverMock) MinimockgetLineBaseInspect()
- func (m *LineResolverMock) MinimockgetLocalPNDone() bool
- func (m *LineResolverMock) MinimockgetLocalPNInspect()
- func (m *LineResolverMock) MinimockgetNextFilNoDone() bool
- func (m *LineResolverMock) MinimockgetNextFilNoInspect()
- func (m *LineResolverMock) MinimockgetNextRecNoDone() bool
- func (m *LineResolverMock) MinimockgetNextRecNoInspect()
- type LineResolverMockfindChainedDependencyExpectation
- type LineResolverMockfindChainedDependencyParams
- type LineResolverMockfindChainedDependencyResults
- type LineResolverMockfindCollisionExpectation
- type LineResolverMockfindCollisionParams
- type LineResolverMockfindCollisionResults
- type LineResolverMockfindFilamentExpectation
- type LineResolverMockfindFilamentParams
- type LineResolverMockfindFilamentResults
- type LineResolverMockfindLineDependencyExpectation
- type LineResolverMockfindLineDependencyParams
- type LineResolverMockfindLineDependencyResults
- type LineResolverMockfindLocalDependencyExpectation
- type LineResolverMockfindLocalDependencyParams
- type LineResolverMockfindLocalDependencyResults
- type LineResolverMockfindOtherDependencyExpectation
- type LineResolverMockfindOtherDependencyParams
- type LineResolverMockfindOtherDependencyResults
- type LineResolverMockgetLineBaseExpectation
- type LineResolverMockgetLineBaseResults
- type LineResolverMockgetLocalPNExpectation
- type LineResolverMockgetLocalPNResults
- type LineResolverMockgetNextFilNoExpectation
- type LineResolverMockgetNextFilNoResults
- type LineResolverMockgetNextRecNoExpectation
- type LineResolverMockgetNextRecNoResults
- type LineStages
- func (p *LineStages) AddBundle(bundle *BundleResolver, tracker StageTracker) (AddResult, StageTracker, UpdateBundle)
- func (p *LineStages) CreateSummary() LineSummary
- func (p *LineStages) FindRegistrarSignature(ref reference.Holder) (found bool, recordIndex ledger.DirectoryIndex, ...)
- func (p *LineStages) FindWithTracker(ref reference.Holder) (found bool, tracker StageTracker, recordInfo ReadRecord)
- func (p *LineStages) NewBundle() *BundleResolver
- func (p *LineStages) RegisterRead()
- func (p *LineStages) RollbackLastBundle(tracker StageTracker)
- func (p *LineStages) RollbackUncommittedRecords()
- func (p *LineStages) ScanFilamentFrom(from reference.Holder, toPast bool, findFn func(ReadRecord) bool) (found bool, tracker StageTracker)
- func (p *LineStages) TrimCommittedStages()
- func (p *LineStages) VerifyBundle(bundle *BundleResolver) (bool, StageTracker)
- type LineSummary
- type PolicyCheckDetails
- type PolicyFlags
- type PolicyResolverFunc
- type ReadRecord
- type Record
- type RecordExtension
- type RecordPolicy
- func (v RecordPolicy) CanBeRejoined() bool
- func (v RecordPolicy) CheckPrevRef(rootRef, ref reference.Holder, details PolicyCheckDetails, ...) (isFork bool, err error)
- func (v RecordPolicy) CheckReasonRef(ref reference.Holder, resolverFn PolicyResolverFunc) error
- func (v RecordPolicy) CheckRecordRef(lineBase reference.LocalHolder, ref reference.LocalHolder, ...) error
- func (v RecordPolicy) CheckRedirectRef(ref reference.Holder, resolverFn PolicyResolverFunc) error
- func (v RecordPolicy) CheckRejoinRef(ref reference.Holder, details PolicyCheckDetails, prevRecordType RecordType, ...) error
- func (v RecordPolicy) CheckRootRef(ref reference.Holder, details PolicyCheckDetails, ...) error
- func (v RecordPolicy) IsAnyFilamentStart() bool
- func (v RecordPolicy) IsBranched() bool
- func (v RecordPolicy) IsFilamentStart() bool
- func (v RecordPolicy) IsForkAllowed() bool
- func (v RecordPolicy) IsValid() bool
- type RecordPolicyProviderFunc
- type RecordType
- type RecordTypeSet
- type ResolvedDependency
- type StageTracker
- type UnresolvedDependency
- type UpdateBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleResolver ¶
type BundleResolver struct {
// contains filtered or unexported fields
}
func (*BundleResolver) Add ¶
func (p *BundleResolver) Add(record Record) bool
func (*BundleResolver) GetErrors ¶
func (p *BundleResolver) GetErrors() []error
func (*BundleResolver) GetUnresolvedDependencies ¶
func (p *BundleResolver) GetUnresolvedDependencies() []UnresolvedDependency
func (*BundleResolver) HasErrors ¶
func (p *BundleResolver) HasErrors() bool
func (*BundleResolver) Hint ¶
func (p *BundleResolver) Hint(recordCount int)
func (*BundleResolver) IsEmpty ¶
func (p *BundleResolver) IsEmpty() bool
func (*BundleResolver) IsReadyForStage ¶
func (p *BundleResolver) IsReadyForStage() bool
func (*BundleResolver) Reprocess ¶
func (p *BundleResolver) Reprocess()
type DependencyResolver ¶
type DependencyResolver interface { FindOtherDependency(ref reference.Holder) (ResolvedDependency, error) FindLineDependency(root reference.Holder, ref reference.LocalHolder) (ResolvedDependency, error) }
type DependencyResolverMock ¶
type DependencyResolverMock struct { FindLineDependencyMock mDependencyResolverMockFindLineDependency FindOtherDependencyMock mDependencyResolverMockFindOtherDependency // contains filtered or unexported fields }
DependencyResolverMock implements DependencyResolver
func NewDependencyResolverMock ¶
func NewDependencyResolverMock(t minimock.Tester) *DependencyResolverMock
NewDependencyResolverMock returns a mock for DependencyResolver
func (*DependencyResolverMock) FindLineDependency ¶
func (mmFindLineDependency *DependencyResolverMock) FindLineDependency(root reference.Holder, ref reference.LocalHolder) (r1 ResolvedDependency, err error)
FindLineDependency implements DependencyResolver
func (*DependencyResolverMock) FindLineDependencyAfterCounter ¶
func (mmFindLineDependency *DependencyResolverMock) FindLineDependencyAfterCounter() uint64
FindLineDependencyAfterCounter returns a count of finished DependencyResolverMock.FindLineDependency invocations
func (*DependencyResolverMock) FindLineDependencyBeforeCounter ¶
func (mmFindLineDependency *DependencyResolverMock) FindLineDependencyBeforeCounter() uint64
FindLineDependencyBeforeCounter returns a count of DependencyResolverMock.FindLineDependency invocations
func (*DependencyResolverMock) FindOtherDependency ¶
func (mmFindOtherDependency *DependencyResolverMock) FindOtherDependency(ref reference.Holder) (r1 ResolvedDependency, err error)
FindOtherDependency implements DependencyResolver
func (*DependencyResolverMock) FindOtherDependencyAfterCounter ¶
func (mmFindOtherDependency *DependencyResolverMock) FindOtherDependencyAfterCounter() uint64
FindOtherDependencyAfterCounter returns a count of finished DependencyResolverMock.FindOtherDependency invocations
func (*DependencyResolverMock) FindOtherDependencyBeforeCounter ¶
func (mmFindOtherDependency *DependencyResolverMock) FindOtherDependencyBeforeCounter() uint64
FindOtherDependencyBeforeCounter returns a count of DependencyResolverMock.FindOtherDependency invocations
func (*DependencyResolverMock) MinimockFindLineDependencyDone ¶
func (m *DependencyResolverMock) MinimockFindLineDependencyDone() bool
MinimockFindLineDependencyDone returns true if the count of the FindLineDependency invocations corresponds the number of defined expectations
func (*DependencyResolverMock) MinimockFindLineDependencyInspect ¶
func (m *DependencyResolverMock) MinimockFindLineDependencyInspect()
MinimockFindLineDependencyInspect logs each unmet expectation
func (*DependencyResolverMock) MinimockFindOtherDependencyDone ¶
func (m *DependencyResolverMock) MinimockFindOtherDependencyDone() bool
MinimockFindOtherDependencyDone returns true if the count of the FindOtherDependency invocations corresponds the number of defined expectations
func (*DependencyResolverMock) MinimockFindOtherDependencyInspect ¶
func (m *DependencyResolverMock) MinimockFindOtherDependencyInspect()
MinimockFindOtherDependencyInspect logs each unmet expectation
func (*DependencyResolverMock) MinimockFinish ¶
func (m *DependencyResolverMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*DependencyResolverMock) MinimockWait ¶
func (m *DependencyResolverMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type DependencyResolverMockFindLineDependencyExpectation ¶
type DependencyResolverMockFindLineDependencyExpectation struct { Counter uint64 // contains filtered or unexported fields }
DependencyResolverMockFindLineDependencyExpectation specifies expectation struct of the DependencyResolver.FindLineDependency
func (*DependencyResolverMockFindLineDependencyExpectation) Then ¶
func (e *DependencyResolverMockFindLineDependencyExpectation) Then(r1 ResolvedDependency, err error) *DependencyResolverMock
Then sets up DependencyResolver.FindLineDependency return parameters for the expectation previously defined by the When method
type DependencyResolverMockFindLineDependencyParams ¶
type DependencyResolverMockFindLineDependencyParams struct {
// contains filtered or unexported fields
}
DependencyResolverMockFindLineDependencyParams contains parameters of the DependencyResolver.FindLineDependency
type DependencyResolverMockFindLineDependencyResults ¶
type DependencyResolverMockFindLineDependencyResults struct {
// contains filtered or unexported fields
}
DependencyResolverMockFindLineDependencyResults contains results of the DependencyResolver.FindLineDependency
type DependencyResolverMockFindOtherDependencyExpectation ¶
type DependencyResolverMockFindOtherDependencyExpectation struct { Counter uint64 // contains filtered or unexported fields }
DependencyResolverMockFindOtherDependencyExpectation specifies expectation struct of the DependencyResolver.FindOtherDependency
func (*DependencyResolverMockFindOtherDependencyExpectation) Then ¶
func (e *DependencyResolverMockFindOtherDependencyExpectation) Then(r1 ResolvedDependency, err error) *DependencyResolverMock
Then sets up DependencyResolver.FindOtherDependency return parameters for the expectation previously defined by the When method
type DependencyResolverMockFindOtherDependencyParams ¶
type DependencyResolverMockFindOtherDependencyParams struct {
// contains filtered or unexported fields
}
DependencyResolverMockFindOtherDependencyParams contains parameters of the DependencyResolver.FindOtherDependency
type DependencyResolverMockFindOtherDependencyResults ¶
type DependencyResolverMockFindOtherDependencyResults struct {
// contains filtered or unexported fields
}
DependencyResolverMockFindOtherDependencyResults contains results of the DependencyResolver.FindOtherDependency
type FilamentSummary ¶
type FilamentSummary struct { Local reference.Local Recap rms.RLineRecap }
func (FilamentSummary) IsZero ¶
func (v FilamentSummary) IsZero() bool
type LineResolverMock ¶
type LineResolverMock struct {
// contains filtered or unexported fields
}
LineResolverMock implements lineResolver
func NewLineResolverMock ¶
func NewLineResolverMock(t minimock.Tester) *LineResolverMock
NewLineResolverMock returns a mock for lineResolver
func (*LineResolverMock) MinimockFinish ¶
func (m *LineResolverMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*LineResolverMock) MinimockWait ¶
func (m *LineResolverMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*LineResolverMock) MinimockfindChainedDependencyDone ¶
func (m *LineResolverMock) MinimockfindChainedDependencyDone() bool
MinimockfindChainedDependencyDone returns true if the count of the findChainedDependency invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockfindChainedDependencyInspect ¶
func (m *LineResolverMock) MinimockfindChainedDependencyInspect()
MinimockfindChainedDependencyInspect logs each unmet expectation
func (*LineResolverMock) MinimockfindCollisionDone ¶
func (m *LineResolverMock) MinimockfindCollisionDone() bool
MinimockfindCollisionDone returns true if the count of the findCollision invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockfindCollisionInspect ¶
func (m *LineResolverMock) MinimockfindCollisionInspect()
MinimockfindCollisionInspect logs each unmet expectation
func (*LineResolverMock) MinimockfindFilamentDone ¶
func (m *LineResolverMock) MinimockfindFilamentDone() bool
MinimockfindFilamentDone returns true if the count of the findFilament invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockfindFilamentInspect ¶
func (m *LineResolverMock) MinimockfindFilamentInspect()
MinimockfindFilamentInspect logs each unmet expectation
func (*LineResolverMock) MinimockfindLineDependencyDone ¶
func (m *LineResolverMock) MinimockfindLineDependencyDone() bool
MinimockfindLineDependencyDone returns true if the count of the findLineDependency invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockfindLineDependencyInspect ¶
func (m *LineResolverMock) MinimockfindLineDependencyInspect()
MinimockfindLineDependencyInspect logs each unmet expectation
func (*LineResolverMock) MinimockfindLocalDependencyDone ¶
func (m *LineResolverMock) MinimockfindLocalDependencyDone() bool
MinimockfindLocalDependencyDone returns true if the count of the findLocalDependency invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockfindLocalDependencyInspect ¶
func (m *LineResolverMock) MinimockfindLocalDependencyInspect()
MinimockfindLocalDependencyInspect logs each unmet expectation
func (*LineResolverMock) MinimockfindOtherDependencyDone ¶
func (m *LineResolverMock) MinimockfindOtherDependencyDone() bool
MinimockfindOtherDependencyDone returns true if the count of the findOtherDependency invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockfindOtherDependencyInspect ¶
func (m *LineResolverMock) MinimockfindOtherDependencyInspect()
MinimockfindOtherDependencyInspect logs each unmet expectation
func (*LineResolverMock) MinimockgetLineBaseDone ¶
func (m *LineResolverMock) MinimockgetLineBaseDone() bool
MinimockgetLineBaseDone returns true if the count of the getLineBase invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockgetLineBaseInspect ¶
func (m *LineResolverMock) MinimockgetLineBaseInspect()
MinimockgetLineBaseInspect logs each unmet expectation
func (*LineResolverMock) MinimockgetLocalPNDone ¶
func (m *LineResolverMock) MinimockgetLocalPNDone() bool
MinimockgetLocalPNDone returns true if the count of the getLocalPN invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockgetLocalPNInspect ¶
func (m *LineResolverMock) MinimockgetLocalPNInspect()
MinimockgetLocalPNInspect logs each unmet expectation
func (*LineResolverMock) MinimockgetNextFilNoDone ¶
func (m *LineResolverMock) MinimockgetNextFilNoDone() bool
MinimockgetNextFilNoDone returns true if the count of the getNextFilNo invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockgetNextFilNoInspect ¶
func (m *LineResolverMock) MinimockgetNextFilNoInspect()
MinimockgetNextFilNoInspect logs each unmet expectation
func (*LineResolverMock) MinimockgetNextRecNoDone ¶
func (m *LineResolverMock) MinimockgetNextRecNoDone() bool
MinimockgetNextRecNoDone returns true if the count of the getNextRecNo invocations corresponds the number of defined expectations
func (*LineResolverMock) MinimockgetNextRecNoInspect ¶
func (m *LineResolverMock) MinimockgetNextRecNoInspect()
MinimockgetNextRecNoInspect logs each unmet expectation
type LineResolverMockfindChainedDependencyExpectation ¶
type LineResolverMockfindChainedDependencyExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockfindChainedDependencyExpectation specifies expectation struct of the lineResolver.findChainedDependency
func (*LineResolverMockfindChainedDependencyExpectation) Then ¶
func (e *LineResolverMockfindChainedDependencyExpectation) Then(filNo filamentNo, recNo recordNo, dep ResolvedDependency, recap recordNo) *LineResolverMock
Then sets up lineResolver.findChainedDependency return parameters for the expectation previously defined by the When method
type LineResolverMockfindChainedDependencyParams ¶
type LineResolverMockfindChainedDependencyParams struct {
// contains filtered or unexported fields
}
LineResolverMockfindChainedDependencyParams contains parameters of the lineResolver.findChainedDependency
type LineResolverMockfindChainedDependencyResults ¶
type LineResolverMockfindChainedDependencyResults struct {
// contains filtered or unexported fields
}
LineResolverMockfindChainedDependencyResults contains results of the lineResolver.findChainedDependency
type LineResolverMockfindCollisionExpectation ¶
type LineResolverMockfindCollisionExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockfindCollisionExpectation specifies expectation struct of the lineResolver.findCollision
func (*LineResolverMockfindCollisionExpectation) Then ¶
func (e *LineResolverMockfindCollisionExpectation) Then(r1 recordNo, err error) *LineResolverMock
Then sets up lineResolver.findCollision return parameters for the expectation previously defined by the When method
type LineResolverMockfindCollisionParams ¶
type LineResolverMockfindCollisionParams struct {
// contains filtered or unexported fields
}
LineResolverMockfindCollisionParams contains parameters of the lineResolver.findCollision
type LineResolverMockfindCollisionResults ¶
type LineResolverMockfindCollisionResults struct {
// contains filtered or unexported fields
}
LineResolverMockfindCollisionResults contains results of the lineResolver.findCollision
type LineResolverMockfindFilamentExpectation ¶
type LineResolverMockfindFilamentExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockfindFilamentExpectation specifies expectation struct of the lineResolver.findFilament
func (*LineResolverMockfindFilamentExpectation) Then ¶
func (e *LineResolverMockfindFilamentExpectation) Then(f1 filamentNo, r1 ResolvedDependency) *LineResolverMock
Then sets up lineResolver.findFilament return parameters for the expectation previously defined by the When method
type LineResolverMockfindFilamentParams ¶
type LineResolverMockfindFilamentParams struct {
// contains filtered or unexported fields
}
LineResolverMockfindFilamentParams contains parameters of the lineResolver.findFilament
type LineResolverMockfindFilamentResults ¶
type LineResolverMockfindFilamentResults struct {
// contains filtered or unexported fields
}
LineResolverMockfindFilamentResults contains results of the lineResolver.findFilament
type LineResolverMockfindLineDependencyExpectation ¶
type LineResolverMockfindLineDependencyExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockfindLineDependencyExpectation specifies expectation struct of the lineResolver.findLineDependency
func (*LineResolverMockfindLineDependencyExpectation) Then ¶
func (e *LineResolverMockfindLineDependencyExpectation) Then(r1 ResolvedDependency, err error) *LineResolverMock
Then sets up lineResolver.findLineDependency return parameters for the expectation previously defined by the When method
type LineResolverMockfindLineDependencyParams ¶
type LineResolverMockfindLineDependencyParams struct {
// contains filtered or unexported fields
}
LineResolverMockfindLineDependencyParams contains parameters of the lineResolver.findLineDependency
type LineResolverMockfindLineDependencyResults ¶
type LineResolverMockfindLineDependencyResults struct {
// contains filtered or unexported fields
}
LineResolverMockfindLineDependencyResults contains results of the lineResolver.findLineDependency
type LineResolverMockfindLocalDependencyExpectation ¶
type LineResolverMockfindLocalDependencyExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockfindLocalDependencyExpectation specifies expectation struct of the lineResolver.findLocalDependency
func (*LineResolverMockfindLocalDependencyExpectation) Then ¶
func (e *LineResolverMockfindLocalDependencyExpectation) Then(f1 filamentNo, r1 recordNo, r2 ResolvedDependency) *LineResolverMock
Then sets up lineResolver.findLocalDependency return parameters for the expectation previously defined by the When method
type LineResolverMockfindLocalDependencyParams ¶
type LineResolverMockfindLocalDependencyParams struct {
// contains filtered or unexported fields
}
LineResolverMockfindLocalDependencyParams contains parameters of the lineResolver.findLocalDependency
type LineResolverMockfindLocalDependencyResults ¶
type LineResolverMockfindLocalDependencyResults struct {
// contains filtered or unexported fields
}
LineResolverMockfindLocalDependencyResults contains results of the lineResolver.findLocalDependency
type LineResolverMockfindOtherDependencyExpectation ¶
type LineResolverMockfindOtherDependencyExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockfindOtherDependencyExpectation specifies expectation struct of the lineResolver.findOtherDependency
func (*LineResolverMockfindOtherDependencyExpectation) Then ¶
func (e *LineResolverMockfindOtherDependencyExpectation) Then(r1 ResolvedDependency, err error) *LineResolverMock
Then sets up lineResolver.findOtherDependency return parameters for the expectation previously defined by the When method
type LineResolverMockfindOtherDependencyParams ¶
type LineResolverMockfindOtherDependencyParams struct {
// contains filtered or unexported fields
}
LineResolverMockfindOtherDependencyParams contains parameters of the lineResolver.findOtherDependency
type LineResolverMockfindOtherDependencyResults ¶
type LineResolverMockfindOtherDependencyResults struct {
// contains filtered or unexported fields
}
LineResolverMockfindOtherDependencyResults contains results of the lineResolver.findOtherDependency
type LineResolverMockgetLineBaseExpectation ¶
type LineResolverMockgetLineBaseExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockgetLineBaseExpectation specifies expectation struct of the lineResolver.getLineBase
type LineResolverMockgetLineBaseResults ¶
type LineResolverMockgetLineBaseResults struct {
// contains filtered or unexported fields
}
LineResolverMockgetLineBaseResults contains results of the lineResolver.getLineBase
type LineResolverMockgetLocalPNExpectation ¶
type LineResolverMockgetLocalPNExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockgetLocalPNExpectation specifies expectation struct of the lineResolver.getLocalPN
type LineResolverMockgetLocalPNResults ¶
type LineResolverMockgetLocalPNResults struct {
// contains filtered or unexported fields
}
LineResolverMockgetLocalPNResults contains results of the lineResolver.getLocalPN
type LineResolverMockgetNextFilNoExpectation ¶
type LineResolverMockgetNextFilNoExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockgetNextFilNoExpectation specifies expectation struct of the lineResolver.getNextFilNo
type LineResolverMockgetNextFilNoResults ¶
type LineResolverMockgetNextFilNoResults struct {
// contains filtered or unexported fields
}
LineResolverMockgetNextFilNoResults contains results of the lineResolver.getNextFilNo
type LineResolverMockgetNextRecNoExpectation ¶
type LineResolverMockgetNextRecNoExpectation struct { Counter uint64 // contains filtered or unexported fields }
LineResolverMockgetNextRecNoExpectation specifies expectation struct of the lineResolver.getNextRecNo
type LineResolverMockgetNextRecNoResults ¶
type LineResolverMockgetNextRecNoResults struct {
// contains filtered or unexported fields
}
LineResolverMockgetNextRecNoResults contains results of the lineResolver.getNextRecNo
type LineStages ¶
type LineStages struct {
// contains filtered or unexported fields
}
func NewStages ¶
func NewStages(base reference.Local, pn pulse.Number, cache DependencyResolver) *LineStages
func (*LineStages) AddBundle ¶
func (p *LineStages) AddBundle(bundle *BundleResolver, tracker StageTracker) (AddResult, StageTracker, UpdateBundle)
func (*LineStages) CreateSummary ¶
func (p *LineStages) CreateSummary() LineSummary
func (*LineStages) FindRegistrarSignature ¶
func (p *LineStages) FindRegistrarSignature(ref reference.Holder) (found bool, recordIndex ledger.DirectoryIndex, registrarSignature cryptkit.SignedDigest)
func (*LineStages) FindWithTracker ¶
func (p *LineStages) FindWithTracker(ref reference.Holder) (found bool, tracker StageTracker, recordInfo ReadRecord)
func (*LineStages) NewBundle ¶
func (p *LineStages) NewBundle() *BundleResolver
func (*LineStages) RegisterRead ¶
func (p *LineStages) RegisterRead()
func (*LineStages) RollbackLastBundle ¶
func (p *LineStages) RollbackLastBundle(tracker StageTracker)
func (*LineStages) RollbackUncommittedRecords ¶
func (p *LineStages) RollbackUncommittedRecords()
func (*LineStages) ScanFilamentFrom ¶
func (p *LineStages) ScanFilamentFrom(from reference.Holder, toPast bool, findFn func(ReadRecord) bool) (found bool, tracker StageTracker)
func (*LineStages) TrimCommittedStages ¶
func (p *LineStages) TrimCommittedStages()
func (*LineStages) VerifyBundle ¶
func (p *LineStages) VerifyBundle(bundle *BundleResolver) (bool, StageTracker)
type LineSummary ¶
type LineSummary struct { LineRecap FilamentSummary LineReport rms.RStateReport Filaments []FilamentSummary }
func (LineSummary) IsZero ¶
func (v LineSummary) IsZero() bool
type PolicyCheckDetails ¶
type PolicyCheckDetails struct { RecordType LocalPN pulse.Number PolicyProvider RecordPolicyProviderFunc }
type PolicyFlags ¶
type PolicyFlags uint32
const ( LineStart PolicyFlags = 1 << iota FilamentStart FilamentEnd BranchedStart MustBeBranch SideEffect OnlyHash NextPulseOnly BlockNextPulse Recap // can follow up any record (Deactivate?) ReasonRequired PayloadAllowed )
type PolicyResolverFunc ¶
type PolicyResolverFunc = func(reference.Holder) (ResolvedDependency, error)
type ReadRecord ¶
type ReadRecord struct { Record StorageIndex ledger.DirectoryIndex }
*********************************
type Record ¶
type Record struct { Excerpt catalog.Excerpt // TODO these fields can be removed on cleanup as well RecRef reference.Holder RecapRef reference.Holder ProducedBy reference.Holder ProducerSignature rms.Binary RegisteredBy reference.Holder RegistrarSignature cryptkit.SignedDigest // contains filtered or unexported fields }
func NewRecapRecord ¶
func NewRegRecord ¶
func NewRegRecord(excerpt catalog.Excerpt, req *rms.LRegisterRequest) Record
func (Record) EqualForRecordIdempotency ¶
func (Record) GetRecordRef ¶
type RecordExtension ¶
type RecordExtension struct { Body rms.BasicRecord FilHead ledger.DirectoryIndex Flags ledger.DirectoryEntryFlags Dust DustMode }
type RecordPolicy ¶
type RecordPolicy struct { PolicyFlags CanFollow RecordTypeSet RedirectTo RecordTypeSet }
func GetRecordPolicy ¶
func GetRecordPolicy(recordType RecordType) RecordPolicy
func (RecordPolicy) CanBeRejoined ¶
func (v RecordPolicy) CanBeRejoined() bool
func (RecordPolicy) CheckPrevRef ¶
func (v RecordPolicy) CheckPrevRef(rootRef, ref reference.Holder, details PolicyCheckDetails, resolverFn PolicyResolverFunc) (isFork bool, err error)
func (RecordPolicy) CheckReasonRef ¶
func (v RecordPolicy) CheckReasonRef(ref reference.Holder, resolverFn PolicyResolverFunc) error
func (RecordPolicy) CheckRecordRef ¶
func (v RecordPolicy) CheckRecordRef(lineBase reference.LocalHolder, ref reference.LocalHolder, details PolicyCheckDetails) error
func (RecordPolicy) CheckRedirectRef ¶
func (v RecordPolicy) CheckRedirectRef(ref reference.Holder, resolverFn PolicyResolverFunc) error
func (RecordPolicy) CheckRejoinRef ¶
func (v RecordPolicy) CheckRejoinRef(ref reference.Holder, details PolicyCheckDetails, prevRecordType RecordType, resolverFn PolicyResolverFunc) error
func (RecordPolicy) CheckRootRef ¶
func (v RecordPolicy) CheckRootRef(ref reference.Holder, details PolicyCheckDetails, resolverFn PolicyResolverFunc) error
func (RecordPolicy) IsAnyFilamentStart ¶
func (v RecordPolicy) IsAnyFilamentStart() bool
func (RecordPolicy) IsBranched ¶
func (v RecordPolicy) IsBranched() bool
func (RecordPolicy) IsFilamentStart ¶
func (v RecordPolicy) IsFilamentStart() bool
func (RecordPolicy) IsForkAllowed ¶
func (v RecordPolicy) IsForkAllowed() bool
func (RecordPolicy) IsValid ¶
func (v RecordPolicy) IsValid() bool
type RecordPolicyProviderFunc ¶
type RecordPolicyProviderFunc = func(recordType RecordType) RecordPolicy
type RecordType ¶
type RecordType uint32
const ( RecordNotFound RecordType = 0 RecordNotAvailable RecordType = math.MaxUint32 )
type RecordTypeSet ¶
type RecordTypeSet struct {
// contains filtered or unexported fields
}
func (RecordTypeSet) Has ¶
func (v RecordTypeSet) Has(typ RecordType) bool
func (RecordTypeSet) IsZero ¶
func (v RecordTypeSet) IsZero() bool
type ResolvedDependency ¶
type ResolvedDependency struct { RecordType RecordType RootRef reference.Holder RedirectToType RecordType RedirectToRef reference.Holder }
func (ResolvedDependency) IsNotAvailable ¶
func (v ResolvedDependency) IsNotAvailable() bool
func (ResolvedDependency) IsZero ¶
func (v ResolvedDependency) IsZero() bool
type StageTracker ¶
type StageTracker interface {
GetFutureAllocation() (isReady bool, allocations []ledger.DirectoryIndex)
}
type UnresolvedDependency ¶
type UnresolvedDependency struct { // RecordRef is nil for a dependency on filament root, defined by RecapRootRef RecordRef reference.Holder // RecapRootRef is not nil, it denotes a required continuation/recap for the given root of the RecordRef RecapRootRef reference.Holder }
func (UnresolvedDependency) Equal ¶
func (v UnresolvedDependency) Equal(o UnresolvedDependency) bool
func (UnresolvedDependency) Key ¶
func (v UnresolvedDependency) Key() reference.Holder
type UpdateBundle ¶
type UpdateBundle struct {
// contains filtered or unexported fields
}
func NewUpdateBundleForTestOnly ¶
func NewUpdateBundleForTestOnly(records []Record) UpdateBundle
func (UpdateBundle) Count ¶
func (v UpdateBundle) Count() int
func (UpdateBundle) Enum ¶
func (v UpdateBundle) Enum(fn func(Record, RecordExtension) bool) bool
func (UpdateBundle) IsValid ¶
func (v UpdateBundle) IsValid() bool
func (UpdateBundle) IsZero ¶
func (v UpdateBundle) IsZero() bool
Source Files ¶
- dependency_resolver_mock.go
- line_records.go
- line_resolver_mock.go
- line_stage_validator.go
- line_staged.go
- line_staged_resolver.go
- line_summary.go
- policy_resolver.go
- record.go
- record_aliases.go
- record_policies.go
- record_policy.go
- record_typeset.go
- resolver_bundle.go
- resolver_dep.go
- resolver_line.go
- resolver_record.go
- update_bundle.go