Documentation
¶
Overview ¶
Package remote はリモートサーバーとの接続と操作に関する機能を提供します。
Index ¶
- func LogIntermediateStats(stats *config.ConversionStats, processed, total int)
- type Client
- func (c *Client) Close()
- func (c *Client) DownloadFile(remotePath, localPath string) error
- func (c *Client) ExecuteCommand(command string) (string, error)
- func (c *Client) FindRemoteImages(extensions []string) ([]string, error)
- func (c *Client) ProcessFileBatch(files []string, tempDir string, stats *config.ConversionStats) error
- func (c *Client) ProcessRemoteFile(remoteFile, tempDir string, stats *config.ConversionStats) error
- func (c *Client) UploadConvertedFiles(localPath, remoteFile, baseFileName string, stats *config.ConversionStats) bool
- func (c *Client) UploadFile(localPath, remotePath string) error
- type SFTPClient
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogIntermediateStats ¶
func LogIntermediateStats(stats *config.ConversionStats, processed, total int)
LogIntermediateStats は中間処理結果をログに出力します
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client はリモートサーバーとの接続を管理します
func NewClient ¶
func NewClient(cfg *config.RemoteConfig) (*Client, error)
NewClient は新しいリモートクライアントを作成します
func (*Client) DownloadFile ¶
DownloadFile はリモートサーバーからファイルをダウンロードします
func (*Client) ExecuteCommand ¶
ExecuteCommand はリモートサーバーでコマンドを実行します
func (*Client) FindRemoteImages ¶
FindRemoteImages はリモートサーバー上の画像ファイルを検索します
func (*Client) ProcessFileBatch ¶
func (c *Client) ProcessFileBatch(files []string, tempDir string, stats *config.ConversionStats) error
ProcessFileBatch はファイルのバッチを処理します
func (*Client) ProcessRemoteFile ¶
func (c *Client) ProcessRemoteFile(remoteFile, tempDir string, stats *config.ConversionStats) error
ProcessRemoteFile は単一のリモートファイルを処理します
func (*Client) UploadConvertedFiles ¶
func (c *Client) UploadConvertedFiles(localPath, remoteFile, baseFileName string, stats *config.ConversionStats) bool
UploadConvertedFiles は変換されたファイルをアップロードします
func (*Client) UploadFile ¶
UploadFile はリモートサーバーにファイルをアップロードします
type SFTPClient ¶
type SFTPClient struct {
// contains filtered or unexported fields
}
SFTPClient はSFTPプロトコルによるファイル転送を管理します
Click to show internal directories.
Click to hide internal directories.