Documentation ¶
Rendered for windows/amd64
Index ¶
- func NewSftpHandler(ctx context.Context, driveLetter string, snapshot *snapshots.WinVSSSnapshot) (*sftp.Handlers, error)
- func Serve(ctx context.Context, errChan chan string, sftpConfig *SFTPConfig, ...)
- type CustomFileInfo
- type FileLister
- type NewAgentResp
- type SFTPConfig
- type SftpHandler
- func (h *SftpHandler) FileLister(dirPath string) (*FileLister, error)
- func (h *SftpHandler) FileStat(filename string) (*FileLister, error)
- func (h *SftpHandler) Filecmd(r *sftp.Request) error
- func (h *SftpHandler) Filelist(r *sftp.Request) (sftp.ListerAt, error)
- func (h *SftpHandler) Fileread(r *sftp.Request) (io.ReaderAt, error)
- func (h *SftpHandler) Filewrite(r *sftp.Request) (io.WriterAt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSftpHandler ¶
Types ¶
type CustomFileInfo ¶ added in v0.3.0
func (*CustomFileInfo) Size ¶ added in v0.3.0
func (f *CustomFileInfo) Size() int64
type FileLister ¶
type FileLister struct {
// contains filtered or unexported fields
}
type NewAgentResp ¶
type NewAgentResp struct {
PublicKey string `json:"public_key"`
}
type SFTPConfig ¶
type SFTPConfig struct { ServerConfig *ssh.ServerConfig PrivateKey []byte `json:"private_key"` PublicKey []byte `json:"public_key"` ServerKey []byte `json:"server_key"` Server string `json:"server"` BasePath string `json:"base_path"` }
func InitializeSFTPConfig ¶
func InitializeSFTPConfig(svc service.Service, driveLetter string) (*SFTPConfig, error)
func (*SFTPConfig) GetRegistryKey ¶
func (s *SFTPConfig) GetRegistryKey() string
func (*SFTPConfig) PopulateKeys ¶
func (config *SFTPConfig) PopulateKeys() error
type SftpHandler ¶
type SftpHandler struct { DriveLetter string Snapshot *snapshots.WinVSSSnapshot // contains filtered or unexported fields }
func (*SftpHandler) FileLister ¶
func (h *SftpHandler) FileLister(dirPath string) (*FileLister, error)
func (*SftpHandler) FileStat ¶
func (h *SftpHandler) FileStat(filename string) (*FileLister, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.