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

feat: added summary, candidate, and scanner command under project command. #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mehul-Kumar-27
Copy link

This pull request enhances the project command by introducing new commands for better project management.
@Vad1mo Sir, it would be great if you could review it.

  • summary command helps the user to get the summary of a project using the project name or the project ID.
./harbor project summary testproject1
{
  "project_admin_count": 1,
  "quota": {
    "hard": {
      "storage": -1
    },
    "used": {
      "storage": 0
    }
  },
  "repo_count": 0
}
  • candidate command helps to retrieve the system configured scanner registrations as candidates of setting project level scanner.
./harbor project candidate testproject1
{
  "Link": "",
  "XTotalCount": 1,
  "Payload": [
    {
      "access_credential": "",
      "auth": "",
      "create_time": "2024-05-15T05:00:20.222Z",
      "description": "The Trivy scanner adapter",
      "disabled": false,
      "is_default": true,
      "name": "Trivy",
      "skip_certVerify": false,
      "update_time": "2024-05-15T05:00:20.222Z",
      "url": "http://trivy-adapter:8080",
      "use_internal_addr": true,
      "uuid": "07748217-1278-11ef-98f2-0242c0a8a009"
    }
  ]
}
  • scanner command helps to get the scanner registration of the specified project.
./harbor project scanner testproject1
{
  "access_credential": "",
  "adapter": "Trivy",
  "auth": "",
  "create_time": "2024-05-15T05:00:20.222Z",
  "description": "The Trivy scanner adapter",
  "disabled": false,
  "health": "healthy",
  "is_default": true,
  "name": "Trivy",
  "skip_certVerify": false,
  "update_time": "2024-05-15T05:00:20.222Z",
  "url": "http://trivy-adapter:8080",
  "use_internal_addr": true,
  "uuid": "07748217-1278-11ef-98f2-0242c0a8a009",
  "vendor": "Aqua Security",
  "version": "v0.47.0"
}

Signed-off-by: Mehul-Kumar-27 <mehul2002kumar@gmail.com>
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.

None yet

1 participant