Documentation ¶
Index ¶
- func If[T any](cond bool, a, b T) T
- type App
- func (app *App) DoSCP(cfg *ScpConfig)
- func (app *App) DoSSH(cfg *SshConfig)
- func (app *App) DoTag(idStr string, tagName string)
- func (app *App) Init()
- func (app *App) ShowLastLoggedInDevices(n int)
- func (app *App) UploadDirectory(localFile, remoteFile string)
- func (app *App) UploadFile(localFile, remoteFile string)
- type ScpConfig
- type SshConfig
- type SshInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) ShowLastLoggedInDevices ¶
func (*App) UploadDirectory ¶
func (*App) UploadFile ¶
type SshConfig ¶
type SshConfig struct { Port int // contains filtered or unexported fields }
SshConfig
- ssh -p 22 anhk@10.226.133.9
type SshInfo ¶
type SshInfo struct { Id int64 UserName string `xorm:"varchar(64) not null comment('用户名')"` Password string `xorm:"varchar(256) null comment('密码')"` Address string `xorm:"varchar(256) not null comment('服务器地址')"` Port int `xorm:"int default 22 comment('端口')"` Tag string `xorm:"varchar(64) null comment('标签')'"` CreatedAt time.Time `xorm:"created"` UpdatedAt time.Time `xorm:"updated"` }
Click to show internal directories.
Click to hide internal directories.