Documentation
¶
Overview ¶
Package receivercontinuation retains transfer dependencies across authenticated protocol generations without extending the lifetime of any session authority.
Index ¶
- Variables
- type Replace
- type Session
- func (s *Session) AcquireDirectory(ctx context.Context, id catalog.DirectoryID) (catalog.DirectorySnapshot, func(), error)
- func (s *Session) BindDownloadMetrics(metrics *downloadmetrics.Metrics)
- func (s *Session) Close()
- func (s *Session) Current() revisionwait.GenerationToken
- func (s *Session) NewTransferJob(intent transfer.ReceiveIntent, id transfer.TransferJobID, ...) (*transfer.TransferJob, error)
- func (s *Session) ObserveRemainingWork(snapshot func() transferlanes.RemainingWork) func()
- func (s *Session) OpenDirectoryPages(ctx context.Context, id catalog.DirectoryID) (catalog.DirectoryPageCursor, error)
- func (s *Session) OpenRevision(ctx context.Context, file catalog.FileID) (transfer.OpenedRevision, error)
- func (s *Session) ProtocolSessionID() protocolsession.ProtocolSessionID
- func (s *Session) ReadRange(ctx context.Context, lease transfer.RevisionHandle, ...) error
- func (s *Session) RecordOutput(bytes uint64)
- func (s *Session) ReleaseRevision(ctx context.Context, lease transfer.RevisionHandle) error
- func (s *Session) ResolveOrdinaryOutputShape(ctx context.Context, selection transfer.SelectionSpec, ...) (ordinaryoutput.ShapeDecision, error)
- func (s *Session) Runtime() *receiversession.Runtime
- func (s *Session) WaitForChange(ctx context.Context, expected revisionwait.GenerationToken) (revisionwait.GenerationChange, error)
Constants ¶
This section is empty.
Variables ¶
var ErrReplacement = errors.New("receiver replacement violates authenticated session continuity")
Functions ¶
This section is empty.
Types ¶
type Replace ¶
type Replace func(context.Context, *receiversession.Runtime) (*receiversession.Runtime, error)
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session owns the one replacement flight shared by discovery, revision, range, and quota-wait consumers. Output transactions belong to the unchanged job.
func (*Session) AcquireDirectory ¶
func (s *Session) AcquireDirectory(ctx context.Context, id catalog.DirectoryID) (catalog.DirectorySnapshot, func(), error)
func (*Session) BindDownloadMetrics ¶
func (s *Session) BindDownloadMetrics(metrics *downloadmetrics.Metrics)
func (*Session) Current ¶
func (s *Session) Current() revisionwait.GenerationToken
func (*Session) NewTransferJob ¶
func (s *Session) NewTransferJob(intent transfer.ReceiveIntent, id transfer.TransferJobID, materializer transfer.DirectTreeMaterializer, tracer transfer.TransferLifecycleTracer) (*transfer.TransferJob, error)
func (*Session) ObserveRemainingWork ¶
func (s *Session) ObserveRemainingWork(snapshot func() transferlanes.RemainingWork) func()
A transfer and its output survive protocol replacement. Keep its demand on the active generation, otherwise a bounded read window hides the rest of the job.
func (*Session) OpenDirectoryPages ¶
func (s *Session) OpenDirectoryPages(ctx context.Context, id catalog.DirectoryID) (catalog.DirectoryPageCursor, error)
func (*Session) OpenRevision ¶
func (*Session) ProtocolSessionID ¶
func (s *Session) ProtocolSessionID() protocolsession.ProtocolSessionID
func (*Session) RecordOutput ¶
func (*Session) ReleaseRevision ¶
func (*Session) ResolveOrdinaryOutputShape ¶
func (s *Session) ResolveOrdinaryOutputShape(ctx context.Context, selection transfer.SelectionSpec, budget ordinaryoutput.ShapeProbeBudget, tracer ordinaryoutput.ShapeTracer) (ordinaryoutput.ShapeDecision, error)
func (*Session) Runtime ¶
func (s *Session) Runtime() *receiversession.Runtime
func (*Session) WaitForChange ¶
func (s *Session) WaitForChange(ctx context.Context, expected revisionwait.GenerationToken) (revisionwait.GenerationChange, error)