-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from cisagov/first-commits
First commits
- Loading branch information
Showing
14 changed files
with
1,415 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""A dataclass container for Guacamole connection parameters.""" | ||
|
||
|
||
# Standard Python Libraries | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class ConnectionParameters: | ||
"""A dataclass container for Guacamole connection parameters.""" | ||
|
||
"""The slots for this dataclass.""" | ||
__slots__ = ( | ||
"private_ssh_key", | ||
"rdp_password", | ||
"rdp_username", | ||
"vnc_password", | ||
"vnc_username", | ||
) | ||
|
||
"""The private SSH key to use when transferring data via VNC.""" | ||
private_ssh_key: str | ||
|
||
"""The password to use when Guacamole establishes an RDP connection.""" | ||
rdp_password: str | ||
|
||
"""The user name to use when Guacamole establishes an RDP connection.""" | ||
rdp_username: str | ||
|
||
"""The password to use when Guacamole establishes a VNC connection.""" | ||
vnc_password: str | ||
|
||
"""The user name to use when Guacamole establishes a VNC connection.""" | ||
vnc_username: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"""The guacscanner library.""" | ||
# We disable a Flake8 check for "Module imported but unused (F401)" | ||
# here because, although this import is not directly used, it | ||
# populates the value package_name.__version__, which is used to get | ||
# version information about this Python package. | ||
from ._version import __version__ # noqa: F401 | ||
from .guacscanner import ( | ||
ConnectionParameters, | ||
add_instance_connection, | ||
add_user, | ||
check_for_ghost_instances, | ||
entity_exists, | ||
get_connection_name, | ||
get_entity_id, | ||
instance_connection_exists, | ||
main, | ||
process_instance, | ||
remove_connection, | ||
remove_instance_connections, | ||
) | ||
|
||
__all__ = [ | ||
"ConnectionParameters", | ||
"add_instance_connection", | ||
"add_user", | ||
"check_for_ghost_instances", | ||
"entity_exists", | ||
"get_connection_name", | ||
"get_entity_id", | ||
"instance_connection_exists", | ||
"main", | ||
"process_instance", | ||
"remove_connection", | ||
"remove_instance_connections", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""Code to run if this package is used as a Python module.""" | ||
|
||
from .example import main | ||
from .guacscanner import main | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
"""This file defines the version of this module.""" | ||
__version__ = "0.0.1" | ||
__version__ = "1.0.0" |
Oops, something went wrong.