MCPcopy
hub / github.com/shadow1ng/fscan / createAuthFunc

Method createAuthFunc

plugins/services/ftp.go:73–77  ·  view source on GitHub ↗

createAuthFunc 创建FTP认证函数

(info *common.HostInfo, config *common.Config, state *common.State)

Source from the content-addressed store, hash-verified

71
72// createAuthFunc 创建FTP认证函数
73func (p *FTPPlugin) createAuthFunc(info *common.HostInfo, config *common.Config, state *common.State) AuthFunc {
74 return func(ctx context.Context, cred Credential) *AuthResult {
75 return p.doFTPAuth(ctx, info, cred, config, state)
76 }
77}
78
79// doFTPAuth 执行FTP认证
80func (p *FTPPlugin) doFTPAuth(ctx context.Context, info *common.HostInfo, cred Credential, config *common.Config, state *common.State) *AuthResult {

Callers 1

ScanMethod · 0.95

Calls 1

doFTPAuthMethod · 0.95

Tested by

no test coverage detected