gitea源码

helm.go 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package helm
  4. // https://github.com/helm/helm/blob/main/pkg/chart/
  5. const ConfigMediaType = "application/vnd.cncf.helm.config.v1+json"
  6. // Maintainer describes a Chart maintainer.
  7. type Maintainer struct {
  8. // Name is a user name or organization name
  9. Name string `json:"name,omitempty"`
  10. // Email is an optional email address to contact the named maintainer
  11. Email string `json:"email,omitempty"`
  12. // URL is an optional URL to an address for the named maintainer
  13. URL string `json:"url,omitempty"`
  14. }
  15. // Metadata for a Chart file. This models the structure of a Chart.yaml file.
  16. type Metadata struct {
  17. // The name of the chart. Required.
  18. Name string `json:"name,omitempty"`
  19. // The URL to a relevant project page, git repo, or contact person
  20. Home string `json:"home,omitempty"`
  21. // Source is the URL to the source code of this chart
  22. Sources []string `json:"sources,omitempty"`
  23. // A SemVer 2 conformant version string of the chart. Required.
  24. Version string `json:"version,omitempty"`
  25. // A one-sentence description of the chart
  26. Description string `json:"description,omitempty"`
  27. // A list of string keywords
  28. Keywords []string `json:"keywords,omitempty"`
  29. // A list of name and URL/email address combinations for the maintainer(s)
  30. Maintainers []*Maintainer `json:"maintainers,omitempty"`
  31. // The URL to an icon file.
  32. Icon string `json:"icon,omitempty"`
  33. // The API Version of this chart. Required.
  34. APIVersion string `json:"apiVersion,omitempty"`
  35. // The condition to check to enable chart
  36. Condition string `json:"condition,omitempty"`
  37. // The tags to check to enable chart
  38. Tags string `json:"tags,omitempty"`
  39. // The version of the application enclosed inside of this chart.
  40. AppVersion string `json:"appVersion,omitempty"`
  41. // Whether or not this chart is deprecated
  42. Deprecated bool `json:"deprecated,omitempty"`
  43. // Annotations are additional mappings uninterpreted by Helm,
  44. // made available for inspection by other applications.
  45. Annotations map[string]string `json:"annotations,omitempty"`
  46. // KubeVersion is a SemVer constraint specifying the version of Kubernetes required.
  47. KubeVersion string `json:"kubeVersion,omitempty"`
  48. // Specifies the chart type: application or library
  49. Type string `json:"type,omitempty"`
  50. }