cli/pkg/io/sftp/sftp.go

20 lines
429 B
Go
Raw Normal View History

package sftp
import (
"github.com/pkg/sftp"
)
2025-10-25 09:24:50 +01:00
// Medium implements the io.Medium interface for the SFTP protocol.
type Medium struct {
client *sftp.Client
}
// ConnectionConfig holds the necessary details to connect to an SFTP server.
type ConnectionConfig struct {
Host string
Port string
User string
Password string // For password-based auth
KeyFile string // Path to a private key for key-based auth
}