atmo.keys¶
The code base to manage public SSH keys to be used with
ATMO clusters
.
atmo.keys.forms¶
atmo.keys.models¶
-
class
atmo.keys.models.
SSHKey
(*args, **kwargs)[source]¶ A Django data model to store public SSH keys for logged-in users to be used in the
on-demand clusters
.Parameters: - id (
AutoField
) – Id - created_at (
DateTimeField
) – Created at - modified_at (
DateTimeField
) – Modified at - created_by_id (ForeignKey to
User
) – User that created the instance. - title (
CharField
) – Name to give to this public key - key (
TextField
) – Should start with one of the following prefixes: ssh-rsa, ssh-dss, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521 - fingerprint (
CharField
) – Fingerprint
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
VALID_PREFIXES
= ['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', 'ecdsa-sha2-nistp521']¶ The list of valid SSH key data prefixes, will be validated on save.
-
prefix
¶ The prefix of the key data, one of the
VALID_PREFIXES
.
-
save
(*args, **kwargs)[source]¶ Saves the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
- id (
-
SSHKey.
VALID_PREFIXES
= ['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', 'ecdsa-sha2-nistp521'] The list of valid SSH key data prefixes, will be validated on save.