Repository: quay/clair
Branch: main
Commit: bab68a8c624c
Files: 334
Total size: 1.3 MB
Directory structure:
gitextract_yglcs5c1/
├── .chglog/
│ ├── CHANGELOG.tpl.md
│ └── config.yml
├── .clang-format
├── .dockerignore
├── .gitattributes
├── .github/
│ ├── CONTRIBUTING.md
│ ├── ISSUE_TEMPLATE.md
│ ├── actions/
│ │ ├── documentation/
│ │ │ └── action.yml
│ │ ├── go-cache/
│ │ │ └── action.yml
│ │ ├── go-tidy/
│ │ │ └── action.yml
│ │ └── set-image-expiration/
│ │ └── action.yml
│ ├── dependabot.yml
│ ├── issue-close-app.yml
│ ├── script/
│ │ └── nightly-module.sh
│ └── workflows/
│ ├── .gitignore
│ ├── .yamllint
│ ├── Makefile
│ ├── check-fast-forward.yml
│ ├── config-ci.yml
│ ├── cut-release.yml
│ ├── documentation.yml
│ ├── fast-forward.yml
│ ├── main.yml
│ ├── nightly-ci.yml
│ ├── nightly.yml
│ ├── prepare-release.yml
│ ├── tests.yml
│ └── v2-issues.yml
├── .gitignore
├── CHANGELOG.md
├── CODEOWNERS
├── DCO
├── Dockerfile
├── Documentation/
│ ├── SUMMARY.md
│ ├── concepts/
│ │ ├── api_internal.md
│ │ ├── authentication.md
│ │ ├── indexing.md
│ │ ├── matching.md
│ │ ├── notifications.md
│ │ ├── operation.md
│ │ └── updatersandairgap.md
│ ├── concepts.md
│ ├── contribution/
│ │ ├── building.md
│ │ ├── commit_style.md
│ │ ├── openapi.md
│ │ └── releases.md
│ ├── contribution.md
│ ├── howto/
│ │ ├── api.md
│ │ ├── deployment.md
│ │ ├── getting_started.md
│ │ └── testing.md
│ ├── howto.md
│ ├── listing_test.go
│ ├── reference/
│ │ ├── api.md
│ │ ├── clairctl.md
│ │ ├── config.md
│ │ ├── indexer.md
│ │ ├── matcher.md
│ │ ├── metrics.md
│ │ └── notifier.md
│ ├── reference.md
│ ├── reference_test.go
│ └── whatis.md
├── LICENSE
├── Makefile
├── NOTICE
├── README.md
├── ROADMAP.md
├── book.toml
├── clair-error/
│ ├── errors.go
│ └── notifications.go
├── cmd/
│ ├── build.go
│ ├── clair/
│ │ ├── main.go
│ │ ├── os_other.go
│ │ └── os_unix.go
│ ├── config.go
│ ├── config_test.go
│ └── testdata/
│ ├── ComplexJSON/
│ │ ├── config.json
│ │ ├── config.json.d/
│ │ │ └── dropin.json
│ │ └── want.json
│ ├── ComplexYAML/
│ │ ├── config.yaml
│ │ ├── config.yaml.d/
│ │ │ ├── dropin.yaml
│ │ │ ├── empty.yaml
│ │ │ ├── ignored.json-patch
│ │ │ ├── later.yaml
│ │ │ └── updater.yaml-patch
│ │ └── want.json
│ ├── Error/
│ │ ├── BadKind.toml
│ │ ├── BadPatch.json
│ │ ├── BadPatch.json.d/
│ │ │ ├── decode.json-patch
│ │ │ └── invalid.json-patch
│ │ ├── Indents.yaml
│ │ ├── NotAnArray.json
│ │ ├── NotAnArray.json.d/
│ │ │ └── badpatch.json-patch
│ │ ├── NotAnObject.json
│ │ ├── NotYAML.yaml
│ │ └── TooShort.json
│ ├── SimpleJSON/
│ │ ├── config.json
│ │ └── want.json
│ └── SimpleYAML/
│ ├── config.yaml
│ └── want.json
├── code-of-conduct.md
├── config/
│ ├── auth.go
│ ├── auth_test.go
│ ├── config.go
│ ├── config_test.go
│ ├── database.go
│ ├── defaults.go
│ ├── doc.go
│ ├── enums.go
│ ├── enums_string.go
│ ├── enums_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── indexer.go
│ ├── introspection.go
│ ├── lint.go
│ ├── lint_test.go
│ ├── matcher.go
│ ├── matchers.go
│ ├── notifier.go
│ ├── otlp.go
│ ├── otlpcompressor_string.go
│ ├── reflect.go
│ ├── tags_test.go
│ ├── tls.go
│ ├── updaters.go
│ └── validate.go
├── config.yaml.sample
├── contrib/
│ ├── cmd/
│ │ └── quaybackstop/
│ │ ├── Dockerfile
│ │ ├── clair.go
│ │ ├── main.go
│ │ ├── main_old.go
│ │ ├── quay.go
│ │ ├── sig_linux.go
│ │ └── sig_other.go
│ └── openshift/
│ ├── build_and_deploy.sh
│ ├── grafana/
│ │ ├── dashboard-clair.configmap.yaml.tpl
│ │ └── dashboards/
│ │ └── dashboard-clair.configmap.yaml
│ ├── manifests/
│ │ ├── backstop.yaml
│ │ ├── db-job.yaml
│ │ └── manifests.yaml
│ └── pr_check.sh
├── docker-compose.yaml
├── etc/
│ ├── .gitignore
│ ├── config.mk
│ ├── container.mk
│ ├── dev.mk
│ ├── dist.mk
│ └── doc.mk
├── go.mod
├── go.sum
├── health/
│ ├── readinesshandler.go
│ └── readinesshandler_test.go
├── httptransport/
│ ├── api/
│ │ ├── .gitattributes
│ │ ├── lib/
│ │ │ └── oapi.jq
│ │ ├── openapi.zsh
│ │ └── v1/
│ │ ├── examples/
│ │ │ ├── affected_manifests.json
│ │ │ ├── bulk_delete.json
│ │ │ ├── cpe.json
│ │ │ ├── digest.json
│ │ │ ├── distribution.json
│ │ │ ├── environment.json
│ │ │ ├── manifest.json
│ │ │ ├── notification_page.json
│ │ │ ├── package.json
│ │ │ ├── vulnerability.json
│ │ │ └── vulnerability_summary.json
│ │ ├── openapi.etag
│ │ ├── openapi.jq
│ │ ├── openapi.json
│ │ └── openapi.yaml
│ ├── auth.go
│ ├── auth_test.go
│ ├── client/
│ │ ├── httpclient.go
│ │ ├── indexer.go
│ │ ├── matcher.go
│ │ └── matcher_test.go
│ ├── common.go
│ ├── concurrentlimit.go
│ ├── concurrentlimit_test.go
│ ├── discoveryhandler.go
│ ├── discoveryhandler_test.go
│ ├── error.go
│ ├── error_test.go
│ ├── gone.go
│ ├── indexer_v1.go
│ ├── indexer_v1_test.go
│ ├── instrumentation.go
│ ├── instrumentation_test.go
│ ├── matcher_v1.go
│ ├── matcher_v1_test.go
│ ├── notification_v1.go
│ ├── notification_v1_test.go
│ ├── robotshandler.go
│ ├── robotshandler_test.go
│ ├── server.go
│ ├── server_test.go
│ └── types/
│ └── v1/
│ ├── affected_manifests.schema.json
│ ├── bulk_delete.schema.json
│ ├── cpe.schema.json
│ ├── digest.schema.json
│ ├── distribution.schema.json
│ ├── environment.schema.json
│ ├── error.schema.json
│ ├── index_report.schema.json
│ ├── index_state.schema.json
│ ├── layer.schema.json
│ ├── manifest.schema.json
│ ├── normalized_severity.schema.json
│ ├── notification.schema.json
│ ├── notification_page.schema.json
│ ├── notification_webhook.schema.json
│ ├── package.schema.json
│ ├── range.schema.json
│ ├── repository.schema.json
│ ├── types.go
│ ├── update_diff.schema.json
│ ├── update_operation.schema.json
│ ├── update_operations.schema.json
│ ├── vulnerability.schema.json
│ ├── vulnerability_core.schema.json
│ ├── vulnerability_report.schema.json
│ ├── vulnerability_summaries.schema.json
│ └── vulnerability_summary.schema.json
├── indexer/
│ ├── mock.go
│ └── service.go
├── initialize/
│ ├── auto/
│ │ ├── auto.go
│ │ ├── auto_test.go
│ │ ├── cpu.go
│ │ ├── cpu_linux.go
│ │ ├── cpu_linux_test.go
│ │ ├── memory.go
│ │ ├── memory_linux.go
│ │ ├── memory_linux_test.go
│ │ └── profiling.go
│ ├── logging.go
│ └── services.go
├── internal/
│ ├── codec/
│ │ ├── codec.go
│ │ ├── codec_test.go
│ │ └── reader.go
│ ├── httputil/
│ │ ├── client.go
│ │ ├── client_test.go
│ │ ├── ratelimiter.go
│ │ ├── ratelimiter_test.go
│ │ ├── responserecorder.go
│ │ ├── responserecorder_test.go
│ │ └── signer.go
│ └── logging/
│ └── logging.go
├── introspection/
│ ├── otlp.go
│ └── server.go
├── local-dev/
│ ├── clair/
│ │ ├── .gitignore
│ │ ├── config.yaml
│ │ ├── config.yaml.d/
│ │ │ └── .gitignore
│ │ ├── init.sql
│ │ └── quay.yaml.d/
│ │ └── .gitignore
│ ├── grafana/
│ │ └── provisioning/
│ │ ├── dashboards/
│ │ │ ├── clair.json
│ │ │ ├── dashboard.yml
│ │ │ └── database.json
│ │ └── datasources/
│ │ └── datasource.yml
│ ├── pgadmin/
│ │ ├── passfile.txt
│ │ └── servers.json
│ ├── prometheus/
│ │ └── prometheus.yml
│ ├── pyroscope/
│ │ └── server.yml
│ ├── quay/
│ │ └── config.yaml
│ └── traefik/
│ ├── config/
│ │ ├── clair.yaml
│ │ ├── dashboard.yaml
│ │ ├── grafana.yaml
│ │ ├── jaeger.yaml
│ │ ├── pgadmin.yaml
│ │ ├── postgresql.yaml
│ │ ├── prom.yaml
│ │ ├── pyroscope.yaml
│ │ ├── quay.yaml
│ │ └── rabbitmq.yaml
│ └── traefik.yaml
├── matcher/
│ ├── mock.go
│ └── service.go
├── middleware/
│ ├── auth/
│ │ ├── handler.go
│ │ ├── httpauth_psk.go
│ │ └── httpauth_psk_test.go
│ └── compress/
│ ├── handler.go
│ └── handler_test.go
└── notifier/
├── amqp/
│ ├── deliverer.go
│ ├── deliverer_integration_test.go
│ ├── directdeliverer.go
│ ├── directdeliverer_integration_test.go
│ ├── doc.go
│ └── failover.go
├── callback.go
├── callback_test.go
├── deliverer.go
├── delivery.go
├── locker.go
├── migrations/
│ ├── 01-init.sql
│ ├── 02-constraints.sql
│ ├── 03-constraints.sql
│ ├── 04-drop-key.sql
│ └── migrations.go
├── mockstore.go
├── notification.go
├── notificationhandle.go
├── pager.go
├── poller.go
├── postgres/
│ ├── e2e_test.go
│ ├── get_status.go
│ ├── notifications.go
│ ├── notifications_test.go
│ ├── pagination_test.go
│ ├── postgres_test.go
│ ├── receipt.go
│ ├── set_status.go
│ ├── store.go
│ ├── store_test.go
│ └── testdata/
│ └── .gitignore
├── processor.go
├── processor_create_test.go
├── processor_safe_test.go
├── receipt.go
├── service/
│ ├── mock.go
│ ├── notifier.go
│ └── testmode.go
├── service.go
├── stomp/
│ ├── deliverer.go
│ ├── directdeliverer.go
│ ├── doc.go
│ ├── failover.go
│ └── integration_test.go
├── store.go
├── summary_test.go
├── vulnsummary.go
└── webhook/
├── cmd/
│ └── webhookd/
│ └── main.go
├── deliverer.go
└── deliverer_test.go
================================================
FILE CONTENTS
================================================
================================================
FILE: .chglog/CHANGELOG.tpl.md
================================================
{{ if .Versions -}}
## [Unreleased]
{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- [{{.Hash.Short}}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Long }}): {{ .Subject }}
{{ if .Refs -}}{{ range .Refs }} -{{if .Action}}{{ .Action }} {{ end }} [#{{ .Ref }}]({{ $.Info.RepositoryURL }}/issues/{{ .Ref }}){{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ range .Versions }}
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- [{{.Hash.Short}}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Long }}): {{ .Subject }}
{{ if .Refs -}}{{ range .Refs }} - {{if .Action}}{{ .Action }}{{ end }} [#{{ .Ref }}]({{ $.Info.RepositoryURL }}/issues/{{ .Ref }}){{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{- if .RevertCommits -}}
### Reverts
{{ range .RevertCommits -}}
- {{ .Revert.Header }}
{{ end }}
{{ end -}}
{{- if .MergeCommits -}}
### Pull Requests
{{ range .MergeCommits -}}
- {{ .Header }}
{{ end }}
{{ end -}}
{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}
{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
================================================
FILE: .chglog/config.yml
================================================
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/quay/clair
options:
tag_filter_pattern: '^v'
sort: semver
commits:
sort_by: Scope
commit_groups:
group_by: Scope
header:
pattern: '^(.*?):\s*(.*)$'
pattern_maps:
- Scope
- Subject
issues:
prefix:
- "#"
refs:
actions:
- Closes
- Fixes
- PullRequest
notes:
keywords:
- BREAKING CHANGE
- NOTE
================================================
FILE: .clang-format
================================================
---
Language: Proto
BasedOnStyle: Google
...
================================================
FILE: .dockerignore
================================================
# Files
DCO
.dockerignore
LICENSE
*.md
NOTICE
*.oci
*.tar*
/clairctl-*
!testdata/**
# Directories
/book
/contrib
!/contrib/cmd
/Documenatation
/etc
/local-dev
/.github
# Allow `.git` to get sent for build vcs stamping.
================================================
FILE: .gitattributes
================================================
cmd/build.go export-subst
*.go diff=golang
Documentation/reference/api.md linguist-generated
================================================
FILE: .github/CONTRIBUTING.md
================================================
# How to Contribute
Clair is [Apache 2.0 licensed](LICENSE) and accepts contributions via GitHub pull requests.
This document outlines some of the conventions on development workflow, commit message formatting, contact points and other resources to make it easier to get your contribution accepted.
# Certificate of Origin
By contributing to this project you agree to the Developer Certificate of Origin [DCO](../DCO).
This document was created by the Linux Kernel community and is a simple statement that you, as a contributor, have the legal right to make the contribution.
See the [DCO](../DCO) file for details.
# Email and Chat
The project currently uses a mailing list and IRC channel:
- Email: [clair-dev@googlegroups.com](https://groups.google.com/forum/#!forum/clair-dev)
- IRC: #[clair](irc://irc.freenode.org:6667/#clair) IRC channel on freenode.org
Please avoid emailing maintainers directly.
They are very busy and read the mailing lists.
## Getting Started
- Fork the repository on GitHub
- Read the [README](../README.md) for build and test instructions
- Play with the project, submit bugs, submit patches!
## Contribution Flow
This is a rough outline of what a contributor's workflow looks like:
- Create a topic branch from where you want to base your work (usually main).
- Make commits of logical units.
- Make sure your commit messages are in the proper format (see below).
- Push your changes to a topic branch in your fork of the repository.
- Make sure the tests pass, and add any new tests as appropriate.
- Submit a pull request to the original repository.
Thanks for your contributions!
### Format of the Commit Message
We follow a rough convention for commit messages that is designed to answer two questions: what changed and why.
The subject line should feature the what and the body of the commit should describe the why.
```
scripts: add the test-cluster command
this uses tmux to setup a test cluster that you can easily kill and
start for debugging.
Fixes #38
```
The format can be described more formally as follows:
```
: