httpfs

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	TestHandler http.Handler
	Timeout     time.Duration
	// contains filtered or unexported fields
}

func New

func New(rem *path.Remote) (*FS, error)

func (*FS) Abs

func (m *FS) Abs(p path.Relative) path.Absolute

func (*FS) Delete

func (m *FS) Delete(p path.Relative, recursive bool) error

func (*FS) Exists

func (m *FS) Exists(p path.Relative) bool

func (*FS) GetMeta

func (f *FS) GetMeta(rel path.Relative) (map[string][]byte, error)

func (*FS) HostName

func (f *FS) HostName() string

func (*FS) ModTime

func (m *FS) ModTime(p path.Relative) (t time.Time, err error)

func (*FS) Password

func (f *FS) Password() string

func (*FS) Port

func (f *FS) Port() int

func (*FS) Reader

func (m *FS) Reader(p path.Relative) (io.ReadCloser, error)

func (*FS) Scheme

func (f *FS) Scheme() string

func (*FS) SetMeta

func (f *FS) SetMeta(p path.Relative, meta map[string][]byte) error

func (*FS) Size

func (d *FS) Size(name path.Relative) int64

func (*FS) UserName

func (f *FS) UserName() string

func (*FS) Write

func (m *FS) Write(p path.Relative, rd io.ReadCloser, recursive bool) (err error)

func (*FS) WriteWithMeta

func (m *FS) WriteWithMeta(p path.Relative, rd io.ReadCloser, meta map[string][]byte, recursive bool) error

type TestHandler

type TestHandler struct {
	Error error
	// contains filtered or unexported fields
}

func NewTestHandler

func NewTestHandler(rem *path.Remote) (*TestHandler, error)

func (*TestHandler) ServeHTTP

func (serv *TestHandler) ServeHTTP(wr http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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