1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1x 1x 1x 1x 2x 1x | import authorization from './authorization'; module.exports = function({ request, }) { return function listTags(repository, projectId, token) { return request({ url: listTagsUrl(projectId, repository), headers: { ...authorization(token), }, }) .then(JSON.parse) .then(({tags}) => tags); } } function listTagsUrl(projectId, repository) { return `https://gcr.io/v2/${projectId}/${repository}/tags/list`; } module.exports.listTagsUrl = listTagsUrl; |