forked from p15670423/monkey
Common: Use strings for NetworkService Enum values
This commit is contained in:
parent
f6ed8a997c
commit
eb3daf84f1
|
@ -1,7 +1,7 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from enum import Enum, auto
|
from enum import Enum
|
||||||
from ipaddress import IPv4Address
|
from ipaddress import IPv4Address
|
||||||
from typing import Dict, List, Optional, Union
|
from typing import Dict, List, Optional, Union
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
@ -29,7 +29,14 @@ JSONSerializable = Union[ # type: ignore[misc]
|
||||||
|
|
||||||
|
|
||||||
class NetworkService(Enum):
|
class NetworkService(Enum):
|
||||||
UNKNOWN = auto()
|
"""
|
||||||
|
An Enum representing network services
|
||||||
|
|
||||||
|
This Enum represents all network services that Infection Monkey supports. The value of each
|
||||||
|
member is the member's name in all lower-case characters.
|
||||||
|
"""
|
||||||
|
|
||||||
|
UNKNOWN = "unknown"
|
||||||
|
|
||||||
|
|
||||||
class NetworkPort(ConstrainedInt):
|
class NetworkPort(ConstrainedInt):
|
||||||
|
|
Loading…
Reference in New Issue