Changed to proper dokumentation and added default return of the instance class
This commit is contained in:
@@ -75,8 +75,18 @@ class instace:
|
|||||||
- stopping
|
- stopping
|
||||||
- restarting
|
- restarting
|
||||||
- list all Clients
|
- 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:
|
def new(name: str) -> bool:
|
||||||
"""
|
"""
|
||||||
Generates a new instance with the subdomain [name].invario.eu
|
Generates a new instance with the subdomain [name].invario.eu
|
||||||
@@ -159,9 +169,20 @@ class instace:
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
class ussage:
|
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:
|
def ram() -> int:
|
||||||
"""
|
"""
|
||||||
Docker ram ussage
|
RAM ussage of the complete system
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
- ram ussage -> interger in GB
|
- ram ussage -> interger in GB
|
||||||
|
|||||||
Reference in New Issue
Block a user