harbor/contrib/registryapi
Josh Soref dfe360040b Spelling
* addition
* attribute
* auditing
* availability
* available
* bandwidth
* browser
* business
* cadence
* chartmuseum
* client
* column
* content
* demonstrate
* described
* endpoints
* facilitate
* github
* harbor
* information
* instance
* manual
* meaningful
* operation
* overridden
* password
* possible
* project
* refactor
* replication
* requires
* running
* scanned
* settings
* signup
* those
* unsigned
* vulnerability

--
Also removes trailing space from a filename

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-02-19 11:59:15 +08:00
..
README.md Spelling 2021-02-19 11:59:15 +08:00
cli.py add registry python api and cli tool 2017-01-03 19:34:51 +08:00
registry.py remove v1 flag in getManifestWithConf 2017-01-04 15:11:16 +08:00

README.md

registryapi

api for docker registry by token authorization

  • a simple api class which lies in registryapi.py, which simulates the interactions between docker registry and the vendor authorization platform like harbor.
usage:
from registryapi import RegistryApi
api = RegistryApi('username', 'password', 'http://www.your_registry_url.com/')
repos = api.getRepositoryList()
tags = api.getTagList('public/ubuntu')
manifest = api.getManifest('public/ubuntu', 'latest')
res = api.deleteManifest('public/ubuntu', '23424545**4343')

  • a simple client tool based on api class, which contains basic read and delete operations for repo, tag, manifest
usage:
./cli.py --username username --password password --registry_endpoint http://www.your_registry_url.com/ target action params

target can be: repo, tag, manifest
action can be: list, get, delete
params can be: --repo --ref --tag

more see: ./cli.py -h