revisionaccess

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0, AGPL-3.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package revisionaccess keeps a receiver's immutable file identity independent of the expiring wire capabilities used to read it.

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("revision reader closed")

Functions

This section is empty.

Types

type Lease

type Lease struct {
	LeaseID    content.LeaseID
	Descriptor content.FileRevisionDescriptor
}

func NewLease

func NewLease(id content.LeaseID, descriptor content.FileRevisionDescriptor) (Lease, error)

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, source Source) *Reader

func (*Reader) OpenRevision

func (r *Reader) OpenRevision(ctx context.Context, file catalog.FileID) (transfer.OpenedRevision, error)

func (*Reader) ReadRange

func (r *Reader) ReadRange(ctx context.Context, handle transfer.RevisionHandle, descriptor content.FileRevisionDescriptor, requested content.Range, sink transfer.RangeSink) error

func (*Reader) ReleaseRevision

func (r *Reader) ReleaseRevision(ctx context.Context, handle transfer.RevisionHandle) error

func (*Reader) Stop

func (r *Reader) Stop()

type Source

Source owns wire operations and their authenticated error classification.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL