vfs_sftp

package
v0.3.34 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(opts any) (response vfscommons.IVfs, err error)

Types

type VfsSftp

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

func NewVfsSftp

func NewVfsSftp(options *vfsoptions.VfsOptions) (instance *VfsSftp, err error)

func (*VfsSftp) Cd

func (instance *VfsSftp) Cd(path string) (bool, error)

func (*VfsSftp) Close

func (instance *VfsSftp) Close()

func (*VfsSftp) Download

func (instance *VfsSftp) Download(source, target string) ([]byte, error)

func (*VfsSftp) Exists

func (instance *VfsSftp) Exists(path string) (bool, error)

func (*VfsSftp) IsConnected

func (instance *VfsSftp) IsConnected() bool

func (*VfsSftp) ListAll

func (instance *VfsSftp) ListAll(dir string) ([]*gg_vfs.VfsFile, error)

func (*VfsSftp) MkDir

func (instance *VfsSftp) MkDir(path string) error

func (*VfsSftp) Options

func (instance *VfsSftp) Options() (response map[string]interface{})

func (*VfsSftp) Path

func (instance *VfsSftp) Path() string

func (*VfsSftp) Read

func (instance *VfsSftp) Read(path string) ([]byte, error)

func (*VfsSftp) Remove

func (instance *VfsSftp) Remove(path string) error

func (*VfsSftp) Schema

func (instance *VfsSftp) Schema() string

func (*VfsSftp) Stat

func (instance *VfsSftp) Stat(path string) (*gg_vfs.VfsFile, error)

func (*VfsSftp) String

func (instance *VfsSftp) String() string

func (*VfsSftp) Write

func (instance *VfsSftp) Write(data []byte, target string) (int, error)

type VfsSftpConnection

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

func NewVfsSftpConnection

func NewVfsSftpConnection(user, password string, key []byte, host string, port int) *VfsSftpConnection

func (*VfsSftpConnection) Close

func (instance *VfsSftpConnection) Close()

func (*VfsSftpConnection) Open

func (instance *VfsSftpConnection) Open() (*sftp.Client, error)

Jump to

Keyboard shortcuts

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