/
harbor_model_project_metadata.go
26 lines (25 loc) · 1.47 KB
/
harbor_model_project_metadata.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Harbor API
*
* These APIs provide services for manipulating Harbor project.
*
* API version: 2.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
type HarborProjectMetadata struct {
// The public status of the project. The valid values are \"true\", \"false\".
Public string `json:"public,omitempty"`
// Whether content trust is enabled or not. If it is enabled, user can't pull unsigned images from this project. The valid values are \"true\", \"false\".
EnableContentTrust string `json:"enable_content_trust,omitempty"`
// Whether prevent the vulnerable images from running. The valid values are \"true\", \"false\".
PreventVul string `json:"prevent_vul,omitempty"`
// If the vulnerability is high than severity defined here, the images can't be pulled. The valid values are \"none\", \"low\", \"medium\", \"high\", \"critical\".
Severity string `json:"severity,omitempty"`
// Whether scan images automatically when pushing. The valid values are \"true\", \"false\".
AutoScan string `json:"auto_scan,omitempty"`
// Whether this project reuse the system level CVE allowlist as the allowlist of its own. The valid values are \"true\", \"false\". If it is set to \"true\" the actual allowlist associate with this project, if any, will be ignored.
ReuseSysCveAllowlist string `json:"reuse_sys_cve_allowlist,omitempty"`
// The ID of the tag retention policy for the project
RetentionId string `json:"retention_id,omitempty"`
}