mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 10:07:43 +01:00
19f3ebd353
This patch provides a command-line tool for managing Harbor resources like users, projects, images, etc.
14 lines
573 B
Python
14 lines
573 B
Python
import pbr.version
|
|
|
|
from harborclient import api_versions
|
|
|
|
__version__ = pbr.version.VersionInfo('python-harborclient').version_string()
|
|
|
|
API_MIN_VERSION = api_versions.APIVersion("2.0")
|
|
# The max version should be the latest version that is supported in the client,
|
|
# not necessarily the latest that the server can provide. This is only bumped
|
|
# when client supported the max version, and bumped sequentially, otherwise
|
|
# the client may break due to server side new version may include some
|
|
# backward incompatible change.
|
|
API_MAX_VERSION = api_versions.APIVersion("2.0")
|