Documentation ¶
Index ¶
- type Backend
- type Session
- func (s *Session) Chmod(path string, mode int) (server.CmdErr, error)
- func (s *Session) Chown(path, u, g string) (server.CmdErr, error)
- func (s *Session) Close()
- func (s *Session) GetFileInfo(file string) (server.FileOwner, os.FileInfo, server.CmdErr, error)
- func (s *Session) MkDir(path string) (server.CmdErr, error)
- func (s *Session) ReadFile(name string) (os.FileInfo, []byte, server.CmdErr, error)
- func (s *Session) Run(cmd string, env map[string]string) (server.HostCommandResponse, error)
- func (s *Session) WriteFile(name string, perms os.FileMode, content []byte) (server.CmdErr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend for localhost
func (Backend) NewSession ¶
NewSession returns a session wrapping host
type Session ¶
Session has a pointer to host
func (*Session) GetFileInfo ¶
GetFileInfo retrieves file info from a host
Click to show internal directories.
Click to hide internal directories.