Changed to proper dokumentation and added default return of the instance class
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user