mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-10 12:40:19 +01:00
09371b48e8
* lint: add goimports Signed-off-by: Loong Dai <loong.dai@intel.com>
40 lines
1.1 KiB
Go
40 lines
1.1 KiB
Go
package chart
|
|
|
|
import (
|
|
"time"
|
|
|
|
helm_chart "helm.sh/helm/v3/pkg/chart"
|
|
)
|
|
|
|
// VersionDetails keeps the detailed data info of the chart version
|
|
type VersionDetails struct {
|
|
Dependencies []*helm_chart.Dependency `json:"dependencies"`
|
|
Values map[string]interface{} `json:"values"`
|
|
Files map[string]string `json:"files"`
|
|
Security *SecurityReport `json:"security"`
|
|
}
|
|
|
|
// SecurityReport keeps the info related with security
|
|
// e.g.: digital signature, vulnerability scanning etc.
|
|
type SecurityReport struct {
|
|
Signature *DigitalSignature `json:"signature"`
|
|
}
|
|
|
|
// DigitalSignature used to indicate if the chart has been signed
|
|
type DigitalSignature struct {
|
|
Signed bool `json:"signed"`
|
|
Provenance string `json:"prov_file"`
|
|
}
|
|
|
|
// Info keeps the information of the chart
|
|
type Info struct {
|
|
Name string `json:"name"`
|
|
TotalVersions uint32 `json:"total_versions"`
|
|
LatestVersion string `json:"latest_version"`
|
|
Created time.Time `json:"created"`
|
|
Updated time.Time `json:"updated"`
|
|
Icon string `json:"icon"`
|
|
Home string `json:"home"`
|
|
Deprecated bool `json:"deprecated"`
|
|
}
|