remote

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	// contains filtered or unexported fields
}

func New

func New(pool *sshpool.Pool, connect string) *Host

func (*Host) Chmod

func (host *Host) Chmod(fpath string, perms os.FileMode) error

func (*Host) Chown

func (host *Host) Chown(fpath string, uid uint32, gid uint32) error

func (*Host) Cleanup added in v0.0.16

func (host *Host) Cleanup() error

func (*Host) Create

func (host *Host) Create(path string) (io.WriteCloser, error)

func (*Host) CreateGroup

func (host *Host) CreateGroup(group *rio.Group) error

func (*Host) CreateUser

func (host *Host) CreateUser(user *rio.User) error

func (*Host) DeleteGroup

func (host *Host) DeleteGroup(name string) error

func (*Host) DeleteUser

func (host *Host) DeleteUser(name string) error

func (*Host) Exec

func (host *Host) Exec(cmd *rio.Cmd) error

func (*Host) Group

func (host *Host) Group(name string) (*rio.Group, error)

func (*Host) Info

func (host *Host) Info() (*rio.Info, error)

func (*Host) Open

func (host *Host) Open(path string) (io.ReadCloser, error)

func (*Host) Password added in v0.0.16

func (host *Host) Password(name string) (*rio.Password, error)

func (*Host) ReadFile

func (host *Host) ReadFile(fpath string) ([]byte, error)

func (*Host) Remove

func (host *Host) Remove(fpath string) error

func (*Host) Rename added in v0.0.16

func (host *Host) Rename(oldpath, newpath string) error

func (*Host) Stat

func (host *Host) Stat(path string) (os.FileInfo, error)

func (*Host) String

func (host *Host) String() string

func (*Host) TmpDir added in v0.0.16

func (host *Host) TmpDir() (string, error)

func (*Host) TmpFile added in v0.0.16

func (host *Host) TmpFile() (string, error)

func (*Host) UpdateGroup

func (host *Host) UpdateGroup(group *rio.Group) error

func (*Host) UpdatePassword added in v0.0.16

func (host *Host) UpdatePassword(password *rio.Password) error

func (*Host) UpdateUser

func (host *Host) UpdateUser(user *rio.User) error

func (*Host) User

func (host *Host) User(name string) (*rio.User, error)

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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