Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyClient = errors.New("no client connect")
)
ErrEmptyClient ...
View Source
var (
ErrEmptyCredential = errors.New("no password nor private key provided")
)
ErrEmptyCredential ...
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential struct {
Username, Pwd string
PEMPrivateKey []byte
PrivateKeyPwd []byte
// contains filtered or unexported fields
}
Credential use pwd or private key
func NewCredentialWithKeyData ¶
func NewCredentialWithKeyData(user string, data []byte, pwd string) (*Credential, error)
NewCredentialWithKeyData ...
func NewCredentialWithKeyfile ¶
func NewCredentialWithKeyfile(user, filename, pwd string) (*Credential, error)
NewCredentialWithKeyfile ...
func NewCredentialWithPwd ¶
func NewCredentialWithPwd(user, pwd string) (*Credential, error)
NewCredentialWithPwd ...
Click to show internal directories.
Click to hide internal directories.