Skip to content

Commit 83fadab

Browse files
haresh-sureshDavide Schiera
authored andcommitted
Removing digest based scan result call (#109)
1 parent 1c34b32 commit 83fadab

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

sdcclient/_scanning.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -371,25 +371,6 @@ def get_image_scan_result_by_id(self, image_id, full_tag_name):
371371

372372
return [True, res.json()]
373373

374-
def get_image_info_by_id(self, image_id_sha):
375-
'''**Description**
376-
Get the anchore image info for an image id sha.
377-
378-
**Arguments**
379-
- image_id: Image id sha of the image.
380-
381-
**Success Return Value**
382-
A JSON object containing metadata about the image.
383-
'''
384-
url = "{base_url}/api/scanning/v1/anchore/images/{image_id_sha}".format(
385-
base_url=self.url,
386-
image_id_sha=image_id_sha)
387-
res = requests.get(url, headers=self.hdrs, verify=self.ssl_verify)
388-
if not self._checkResponse(res):
389-
return [False, self.lasterr]
390-
391-
return [True, res.json()]
392-
393374
def add_registry(self, registry, registry_user, registry_pass, insecure=False, registry_type="docker_v2", validate=True):
394375
'''**Description**
395376
Add image registry

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

33
setup(name='sdcclient',
4-
version='0.10.0-dev',
4+
version='0.10.1-dev',
55
description='Python client for Sysdig Cloud',
66
url='http://github.com/draios/python-sdc-client',
77
author='sysdig Inc.',

0 commit comments

Comments
 (0)