Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added namespace column to list repositories which are not owned by the authenticated user #25

Conversation

hebestreit
Copy link
Contributor

@hebestreit hebestreit commented Sep 3, 2024

Fixes #24

Example query results

Results
# dockerhub_repository

> select
    namespace,
    name,
    pull_count,
    star_count,
    is_private,
    last_updated
from
    dockerhub_repository
where namespace = 'turbot';
+-----------+------------------+------------+------------+------------+---------------------------+
| namespace | name             | pull_count | star_count | is_private | last_updated              |
+-----------+------------------+------------+------------+------------+---------------------------+
| turbot    | turbot/steampipe | 102984     | 6          | false      | 2024-03-15T11:24:26+01:00 |
+-----------+------------------+------------+------------+------------+---------------------------+

> select
    namespace,
    name,
    pull_count,
    star_count,
    is_private,
    last_updated
from 
    dockerhub_repository;
+----------------+---------------------+------------+------------+------------+---------------------------+
| namespace      | name                | pull_count | star_count | is_private | last_updated              |
+----------------+---------------------+------------+------------+------------+---------------------------+
| hebestreit     | hebestreit/nginx    | <null>     | <null>     | true       | 2024-09-04T09:33:10+02:00 |
+----------------+---------------------+------------+------------+------------+---------------------------+

# dockerhub_tag

> select
    namespace,
    name,
    status,
    last_updater_user_name,
    last_pushed,
    last_pulled,
    full_size
from
    dockerhub_tag
where
    namespace = 'turbot'
  and name like 'turbot/steampipe:0.21%';
+-----------+-------------------------+----------+------------------------+---------------------------+---------------------------+-----------+
| namespace | name                    | status   | last_updater_user_name | last_pushed               | last_pulled               | full_size |
+-----------+-------------------------+----------+------------------------+---------------------------+---------------------------+-----------+
| turbot    | turbot/steampipe:0.21.5 | inactive | kaidaguerre            | 2024-02-05T18:57:41+01:00 | 2024-06-25T20:23:15+02:00 | 103245158 |
| turbot    | turbot/steampipe:0.21.7 | active   | kaidaguerre            | 2024-02-09T18:01:01+01:00 | 2024-09-04T03:45:16+02:00 | 103073197 |
| turbot    | turbot/steampipe:0.21.3 | inactive | kaidaguerre            | 2024-01-05T16:24:00+01:00 | 2024-06-03T11:57:34+02:00 | 103435655 |
| turbot    | turbot/steampipe:0.21.1 | inactive | kaidaguerre            | 2023-10-03T17:11:26+02:00 | 2024-07-30T06:16:38+02:00 | 117339696 |
| turbot    | turbot/steampipe:0.21.4 | active   | kaidaguerre            | 2024-01-23T13:28:51+01:00 | 2024-09-04T00:07:09+02:00 | 103435639 |
| turbot    | turbot/steampipe:0.21.2 | inactive | kaidaguerre            | 2023-12-12T16:31:11+01:00 | 2024-07-30T06:09:34+02:00 | 103223967 |
| turbot    | turbot/steampipe:0.21.0 | active   | kaidaguerre            | 2023-10-02T13:41:30+02:00 | 2024-09-03T09:20:42+02:00 | 117338375 |
| turbot    | turbot/steampipe:0.21.6 | active   | kaidaguerre            | 2024-02-06T13:33:56+01:00 | 2024-08-25T02:00:05+02:00 | 103245103 |
| turbot    | turbot/steampipe:0.21.8 | inactive | kaidaguerre            | 2024-02-23T15:36:00+01:00 | 2024-07-30T06:16:17+02:00 | 103282153 |
+-----------+-------------------------+----------+------------------------+---------------------------+---------------------------+-----------+

> select
    namespace,
    name,
    status,
    last_updater_user_name,
    last_pushed,
    last_pulled,
    full_size
from
    dockerhub_tag;
+----------------+--------------------------+--------+------------------------+---------------------------+-------------+-----------+
| namespace      | name                     | status | last_updater_user_name | last_pushed               | last_pulled | full_size |
+----------------+--------------------------+--------+------------------------+---------------------------+-------------+-----------+
| hebestreit     | hebestreit/nginx:1.27    | active | hebestreit             | 2024-09-04T09:33:09+02:00 | <null>      | 67670094  |
+----------------+--------------------------+--------+------------------------+---------------------------+-------------+-----------+

@ParthaI ParthaI changed the base branch from main to add-column-namespace September 4, 2024 12:18
@ParthaI ParthaI merged commit e963a41 into turbot:add-column-namespace Sep 4, 2024
misraved added a commit that referenced this pull request Sep 16, 2024
…d by the authenticated user (#25) (#26)


Co-authored-by: Daniel Hebestreit <[email protected]>
Co-authored-by: Ved misra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List public DockerHub repositories and tags by namespace
2 participants