2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

refactor: 重构io包

This commit is contained in:
耗子
2024-06-23 00:59:07 +08:00
parent 6bd07251fc
commit 85c38e5bc5
35 changed files with 368 additions and 668 deletions

View File

@@ -5,7 +5,7 @@ import (
"golang.org/x/crypto/ssh"
"github.com/TheTNB/panel/pkg/tools"
"github.com/TheTNB/panel/pkg/io"
)
type AuthMethod int8
@@ -68,7 +68,7 @@ func NewSSHClient(conf *ClientConfig) (*ssh.Client, error) {
}
func getKey(keyPath string) (ssh.Signer, error) {
key, err := tools.Read(keyPath)
key, err := io.Read(keyPath)
if err != nil {
return nil, err
}