release.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package types
  2. import "helm.sh/helm/v3/pkg/release"
  3. // Release is a helm release with a form attached
  4. type Release struct {
  5. *release.Release
  6. *PorterRelease
  7. Form *FormYAML `json:"form,omitempty"`
  8. }
  9. type PorterRelease struct {
  10. ID uint `json:"id"`
  11. WebhookToken string `json:"webhook_token"`
  12. GitActionConfig *GitActionConfig `json:"git_action_config,omitempty"`
  13. }
  14. type GetReleaseResponse Release
  15. type UpdateNotificationConfigRequest struct {
  16. Payload struct {
  17. Enabled bool `json:"enabled"`
  18. Success bool `json:"success"`
  19. Failure bool `json:"failure"`
  20. } `json:"payload"`
  21. }
  22. type CreateReleaseBaseRequest struct {
  23. RepoURL string `schema:"repo_url"`
  24. TemplateName string `json:"template_name" form:"required"`
  25. TemplateVersion string `json:"template_version" form:"required"`
  26. Values map[string]interface{} `json:"values"`
  27. Name string `json:"name" form:"required"`
  28. }
  29. type CreateReleaseRequest struct {
  30. *CreateReleaseBaseRequest
  31. ImageURL string `json:"image_url" form:"required"`
  32. GithubActionConfig *CreateGitActionConfigRequest `json:"github_action_config,omitempty"`
  33. }
  34. type CreateAddonRequest struct {
  35. *CreateReleaseBaseRequest
  36. }