2
0

stack.go 809 B

123456789101112131415161718192021222324
  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. }