mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
533 B
21 lines
533 B
2 years ago
|
from django.db.models import TextChoices
|
||
|
from django.utils.translation import ugettext_lazy as _
|
||
|
|
||
|
|
||
|
class SecretType(TextChoices):
|
||
2 years ago
|
PASSWORD = 'password', _('Password')
|
||
|
SSH_KEY = 'ssh_key', _('SSH key')
|
||
|
ACCESS_KEY = 'access_key', _('Access key')
|
||
|
TOKEN = 'token', _('Token')
|
||
2 years ago
|
|
||
|
|
||
|
class AliasAccount(TextChoices):
|
||
|
ALL = '@ALL', _('All')
|
||
|
INPUT = '@INPUT', _('Manual input')
|
||
|
USER = '@USER', _('Dynamic user')
|
||
|
|
||
|
|
||
|
class Source(TextChoices):
|
||
|
LOCAL = 'local', _('Local')
|
||
|
COLLECTED = 'collected', _('Collected')
|