Changed to proper dokumentation and added default return of the instance class

This commit is contained in:
2026-04-22 14:42:37 +02:00
parent ef3aac2797
commit 7cc745037e
+22 -1
View File
@@ -75,8 +75,18 @@ class instace:
- stopping
- restarting
- list all Clients
modules:
- new(name:str)
- remove(name:str)
- status(name:str)
- restart(name:str)
- list()
"""
def __init__():
return list()
def new(name: str) -> bool:
"""
Generates a new instance with the subdomain [name].invario.eu
@@ -159,9 +169,20 @@ class instace:
return result
class ussage:
"""
This will give informations about anything like:
- RAM Ussage of the server
- CPU Ussage of the server
- Strorage that is in use
modules:
- ram()
- cpu()
- storage()
"""
def ram() -> int:
"""
Docker ram ussage
RAM ussage of the complete system
Output:
- ram ussage -> interger in GB