2022-10-19 09:05:21 +00:00
|
|
|
from django.db.models import TextChoices
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
|
|
|
|
class Connectivity(TextChoices):
|
2022-11-08 09:54:51 +00:00
|
|
|
UNKNOWN = 'unknown', _('Unknown')
|
|
|
|
OK = 'ok', _('Ok')
|
|
|
|
FAILED = 'failed', _('Failed')
|
2022-10-19 09:05:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SecretType(TextChoices):
|
2022-11-08 09:54:51 +00:00
|
|
|
PASSWORD = 'password', _('Password')
|
|
|
|
SSH_KEY = 'ssh_key', _('SSH key')
|
|
|
|
ACCESS_KEY = 'access_key', _('Access key')
|
|
|
|
TOKEN = 'token', _('Token')
|