stack.go 979 B

12345678910111213141516171819202122232425262728293031
  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. }
  18. type CreateSecretAndOpenGHPRResponse struct {
  19. URL string `json:"url"`
  20. }
  21. type GetStackResponse PorterApp
  22. type PorterAppAnalyticsRequest struct {
  23. Step string `json:"step" form:"required,max=255"`
  24. StackName string `json:"stack_name"`
  25. }