reader

package
v0.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	*http.Response
	// contains filtered or unexported fields
}

Error describes an error that occurred during a remote operation.

type Reader

type Reader interface {
	// PreadRemote is like pread but to a remote file.
	PreadRemote(buf []byte, offset int64) (int, error)

	// FstatRemote stats a remote file.
	FstatRemote() (int64, error)

	// Log returns the logger with context for this reader.
	Log() *zerolog.Logger
}

Reader provides a read-only interface to a remote file.

func NewReader

func NewReader(c pcontext.Context, router routing.Router, resolveRetries int, resolveTimeout time.Duration, metricsRecorder metrics.Metrics) Reader

NewReader creates a new remote reader.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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