perf: 批量命令 (#9220)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-12-19 18:04:11 +08:00
committed by GitHub
parent 92a198c00b
commit e82eb8f3d1
4 changed files with 83 additions and 32 deletions

View File

@@ -27,3 +27,25 @@ DEFAULT_PASSWORD_RULES = {
'length': DEFAULT_PASSWORD_LENGTH,
'symbol_set': string_punctuation
}
class Types(models.TextChoices):
adhoc = 'adhoc', _('Adhoc')
playbook = 'playbook', _('Playbook')
class RunasPolicies(models.TextChoices):
privileged_only = 'privileged_only', _('Privileged Only')
privileged_first = 'privileged_first', _('Privileged First')
skip = 'skip', _('Skip')
class Modules(models.TextChoices):
shell = 'shell', _('Shell')
winshell = 'win_shell', _('Powershell')
class JobStatus(models.TextChoices):
running = 'running', _('Running')
success = 'success', _('Success')
failed = 'failed', _('Failed')