Documentation
¶
Index ¶
- type FS
- func (m *FS) Abs(p path.Relative) path.Absolute
- func (m *FS) Delete(p path.Relative, recursive bool) error
- func (m *FS) Exists(p path.Relative) bool
- func (f *FS) GetMeta(rel path.Relative) (map[string][]byte, error)
- func (f *FS) HostName() string
- func (m *FS) ModTime(p path.Relative) (t time.Time, err error)
- func (f *FS) Password() string
- func (f *FS) Port() int
- func (m *FS) Reader(p path.Relative) (io.ReadCloser, error)
- func (f *FS) Scheme() string
- func (f *FS) SetMeta(p path.Relative, meta map[string][]byte) error
- func (d *FS) Size(name path.Relative) int64
- func (f *FS) UserName() string
- func (m *FS) Write(p path.Relative, rd io.ReadCloser, recursive bool) (err error)
- func (m *FS) WriteWithMeta(p path.Relative, rd io.ReadCloser, meta map[string][]byte, recursive bool) error
- type TestHandler
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 }
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)
Click to show internal directories.
Click to hide internal directories.