remote

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package remote はリモートサーバーとの接続と操作に関する機能を提供します。

Index

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) Close

func (c *Client) Close()

Close は接続を閉じます

func (*Client) DownloadFile

func (c *Client) DownloadFile(remotePath, localPath string) error

DownloadFile はリモートサーバーからファイルをダウンロードします

func (*Client) ExecuteCommand

func (c *Client) ExecuteCommand(command string) (string, error)

ExecuteCommand はリモートサーバーでコマンドを実行します

func (*Client) FindRemoteImages

func (c *Client) FindRemoteImages(extensions []string) ([]string, error)

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

func (c *Client) UploadFile(localPath, remotePath string) error

UploadFile はリモートサーバーにファイルをアップロードします

type SFTPClient

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

SFTPClient はSFTPプロトコルによるファイル転送を管理します

type Service

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

Service はリモート変換サービスを表します

func NewService

func NewService() *Service

NewService は新しいリモート変換サービスを作成します

func (*Service) Execute

func (s *Service) Execute() error

Execute はリモート変換を実行します

Jump to

Keyboard shortcuts

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