mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 18:48:02 +01:00
19f3ebd353
This patch provides a command-line tool for managing Harbor resources like users, projects, images, etc.
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")
|