stack.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package types
  2. type CreateStackReleaseRequest struct {
  3. StackName string `json:"stack_name" form:"required,dns1123"`
  4. PorterYAMLBase64 string `json:"porter_yaml" form:"required"`
  5. ImageInfo ImageInfo `json:"image_info" form:"omitempty"`
  6. }
  7. type ImageInfo struct {
  8. Repository string `json:"repository"`
  9. Tag string `json:"tag"`
  10. }
  11. type CreateSecretAndOpenGHPRRequest struct {
  12. GithubAppInstallationID int64 `json:"github_app_installation_id" form:"required"`
  13. GithubRepoOwner string `json:"github_repo_owner" form:"required"`
  14. GithubRepoName string `json:"github_repo_name" form:"required"`
  15. OpenPr bool `json:"open_pr"`
  16. Branch string `json:"branch"`
  17. PorterYamlPath string `json:"porter_yaml_path"`
  18. DeleteWorkflowFilename string `json:"delete_workflow_filename"`
  19. PreviewsWorkflowFilename string `json:"previews_workflow_filename"`
  20. }
  21. type CreateSecretAndOpenGHPRResponse struct {
  22. URL string `json:"url"`
  23. }
  24. type GetStackResponse PorterApp
  25. type PorterAppAnalyticsRequest struct {
  26. Step string `json:"step" form:"required,max=255"`
  27. StackName string `json:"stack_name"`
  28. ErrorMessage string `json:"error_message"`
  29. ErrorStackTrace string `json:"error_stack_trace"`
  30. DeleteWorkflowFile bool `json:"delete_workflow_file"`
  31. }