Documentation
¶
Index ¶
- type Handler
- type OpenError
- type ParseError
- type Permission
- type ProtocolError
- type Uri
- type UriFtp
- type UriLocal
- func (u *UriLocal) Abs() string
- func (u *UriLocal) Create(IsDir bool, m os.FileMode) (err error)
- func (u *UriLocal) Exist() bool
- func (u *UriLocal) Host() string
- func (u *UriLocal) IsAbs() bool
- func (u *UriLocal) IsDir() bool
- func (u *UriLocal) ModTime() time.Time
- func (u *UriLocal) Mode() os.FileMode
- func (u *UriLocal) OpenRead() (io.ReadCloser, error)
- func (u *UriLocal) OpenWrite() (io.WriteCloser, error)
- func (u *UriLocal) Parent() (Uri, error)
- func (u *UriLocal) Path() string
- func (u *UriLocal) Remove() error
- func (u *UriLocal) Scheme() string
- func (u *UriLocal) Uri() string
- func (u *UriLocal) Walk(dh, fh Handler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseError ¶
func (ParseError) Error ¶
func (e ParseError) Error() string
type Permission ¶
type Permission interface { }
type ProtocolError ¶
func (ProtocolError) Error ¶
func (e ProtocolError) Error() string
type Uri ¶
type Uri interface { Scheme() string Host() string Path() string Uri() string Abs() string Parent() (Uri, error) Create(bool, os.FileMode) error OpenRead() (io.ReadCloser, error) OpenWrite() (io.WriteCloser, error) Remove() error Walk(dh, fh Handler) error //dh is the handler to handle a directory,and fh is the handler to handle a file. IsDir() bool Exist() bool IsAbs() bool Mode() os.FileMode ModTime() time.Time // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.