Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { UsernamePassword []UsernamePassword SshPrivateKey []SshPrivateKey // Unspecified are credentials that do not match one of the types above Unspecified []*targets.SessionCredential }
func ParseCredentials ¶
func ParseCredentials(creds []*targets.SessionCredential) (Credentials, error)
func (Credentials) UnconsumedSessionCredentials ¶
func (c Credentials) UnconsumedSessionCredentials() []*targets.SessionCredential
type SshPrivateKey ¶
type SshPrivateKey struct { Username string `mapstructure:"username"` PrivateKey string `mapstructure:"private_key"` Passphrase string `mapstructure:"private_key_passphrase"` Raw *targets.SessionCredential // Consumed can be set by the caller to indicate that the credential has // been used, e.g. displayed to the user Consumed bool }
SshPrivateKey contains the username and private key with optional passphrase for the key
type UsernamePassword ¶
type UsernamePassword struct { Username string `mapstructure:"username"` Password string `mapstructure:"password"` Raw *targets.SessionCredential // Consumed can be set by the caller to indicate that the credential has // been used, e.g. displayed to the user Consumed bool }
UsernamePassword contains username and password credentials
Click to show internal directories.
Click to hide internal directories.