eos

package
v0.0.0-...-1452ce7 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 15 Imported by: 18 modules, 62 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 eos stands for 'enhanced os', it mostly supplies 'eos.Open', which supports the 'itchfs://' scheme to access remote files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeregisterHandler

func DeregisterHandler(h Handler)

func Redact

func Redact(name string) string

func RegisterHandler

func RegisterHandler(h Handler) error

Types

type CheckingFile

type CheckingFile struct {
	Reference File
	Trainee   File
}

func (*CheckingFile) Close

func (cf *CheckingFile) Close() error

func (*CheckingFile) Read

func (cf *CheckingFile) Read(tBuf []byte) (int, error)

func (*CheckingFile) ReadAt

func (cf *CheckingFile) ReadAt(tBuf []byte, offset int64) (int, error)

func (*CheckingFile) Seek

func (cf *CheckingFile) Seek(offset int64, whence int) (int64, error)

func (*CheckingFile) Stat

func (cf *CheckingFile) Stat() (os.FileInfo, error)

type File

type File interface {
	io.Reader
	io.Closer
	io.ReaderAt
	io.Seeker

	Stat() (os.FileInfo, error)
}

func Open

func Open(ctx context.Context, name string, opts ...option.Option) (File, error)

Open returns a File for a local path or a remote URL. For a remote file ctx governs its whole life, not just the open: reads in progress, URL renewals and retry sleeps all end once it is done.

type Handler

type Handler interface {
	Scheme() string
	MakeResource(u *url.URL) (htfs.GetURLFunc, htfs.NeedsRenewalFunc, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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