mayadata-io / quay-logs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quay-logs

Step 1/

#  This will create the binary named main
go build cmd/main.go

Step 2/

# Invoke the binary with quay auth token & repository
#
# - NOTE: Quay auth token need to be provided
# - NOTE: Namespace that hosts the images should be provided
#
# Following activities are handled by this binary:
#
# - Downloads latest quay images with popularity ranks

./main --quay-auth-token=<auth token> --quay-namespace=openebs

Note: quay-auth-token should have scope of Administer Repositories.

Folder details

  • logs/ has actions on each image categorized by dates

Few quay.io APIs w.r.t openebs

Source code details

  • Refer to cmd/main.go for various arguments that can be provided to this binary
  • list.go has the logic to download current popularity/ranking logs of quay namespace
  • logs.go has the logic to download quay image logs based on a date range
  • types.go has quay API schema coded as go structure

About


Languages

Language:Go 100.0%