veritas.profile

Package Contents

Classes

Profile

This class reads the profile configuration and sets the username, password, ssh_key and ssh_passphrase.

Attributes

__version__

veritas.profile.__version__
class veritas.profile.Profile(profile_config=None, profile_name=None, username=None, password=None, ssh_key=None, ssh_passphrase=None)

Bases: object

This class reads the profile configuration and sets the username, password, ssh_key and ssh_passphrase.

Parameters:
  • profile_config (dict) – the profile configuration

  • profile_name (str) – the profile name that should be used

  • username (str) – the username that should be used

  • psasword (str) – the password that should be used

  • ssh_key (str) – the ssh_key that should be used

  • ssh_passphrase (str) – the ssh_passphrase that should be used

property username: str

return username

Returns:

username – the username

Return type:

str

property password: str

return password

Returns:

password – the password

Return type:

str

property ssh_key: str

return ssh_key

Returns:

ssh_key – the ssh_key

Return type:

str

property ssh_passphrase: str

retrun ssh_passphrase

Returns:

ssh_passphrase – the ssh_passphrase

Return type:

str