eos

package
v0.0.0-...-5044e41 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 14 Imported by: 33

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(name string, opts ...option.Option) (File, error)

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