diff options
author | John Estabrook <jestabro@vyos.io> | 2022-10-23 11:06:03 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-10-25 09:03:06 -0500 |
commit | 7038b761302be2ec90338981830b8cd7cf887381 (patch) | |
tree | 1eb7c93dba0694b8c6dbce1ec522a2a61b06a439 /src/services/api/graphql/generate/config_session_function.py | |
parent | 093ac258c11894b07afd9e85a61778d23e356718 (diff) | |
download | vyos-1x-7038b761302be2ec90338981830b8cd7cf887381.tar.gz vyos-1x-7038b761302be2ec90338981830b8cd7cf887381.zip |
graphql: T4574: reorganize directory structure for clarity
Diffstat (limited to 'src/services/api/graphql/generate/config_session_function.py')
-rw-r--r-- | src/services/api/graphql/generate/config_session_function.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/services/api/graphql/generate/config_session_function.py b/src/services/api/graphql/generate/config_session_function.py new file mode 100644 index 000000000..fc0dd7a87 --- /dev/null +++ b/src/services/api/graphql/generate/config_session_function.py @@ -0,0 +1,28 @@ +# typing information for native configsession functions; used to generate +# schema definition files +import typing + +def show_config(path: list[str], configFormat: typing.Optional[str]): + pass + +def show(path: list[str]): + pass + +queries = {'show_config': show_config, + 'show': show} + +def save_config_file(fileName: typing.Optional[str]): + pass +def load_config_file(fileName: str): + pass +def add_system_image(location: str): + pass +def delete_system_image(name: str): + pass + +mutations = {'save_config_file': save_config_file, + 'load_config_file': load_config_file, + 'add_system_image': add_system_image, + 'delete_system_image': delete_system_image} + + |