mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-27 11:07:46 +01:00
16 lines
439 B
Python
16 lines
439 B
Python
|
from harborclient import base
|
||
|
|
||
|
|
||
|
class SystemInfoManager(base.Manager):
|
||
|
def get(self):
|
||
|
"""Get general system info."""
|
||
|
return self._get("/systeminfo")
|
||
|
|
||
|
def get_volumes(self):
|
||
|
"""Get system volume info (total/free size)."""
|
||
|
return self._get("/systeminfo/volumes")
|
||
|
|
||
|
def get_cert(self):
|
||
|
"""Get default root certificate under OVA deployment."""
|
||
|
return self._get("/systeminfo/getcert")
|