stack.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package test
  2. import (
  3. "github.com/porter-dev/porter/internal/models"
  4. "github.com/porter-dev/porter/internal/repository"
  5. )
  6. type StackRepository struct{}
  7. func NewStackRepository() repository.StackRepository {
  8. return &StackRepository{}
  9. }
  10. // CreateStack creates a new stack
  11. func (repo *StackRepository) CreateStack(stack *models.Stack) (*models.Stack, error) {
  12. panic("unimplemented")
  13. }
  14. // ReadStack gets a stack specified by its string id
  15. func (repo *StackRepository) ListStacks(projectID, clusterID uint, namespace string) ([]*models.Stack, error) {
  16. panic("unimplemented")
  17. }
  18. func (repo *StackRepository) ReadStackByID(projectID, stackID uint) (*models.Stack, error) {
  19. panic("unimplemented")
  20. }
  21. // ReadStack gets a stack specified by its string id
  22. func (repo *StackRepository) ReadStackByStringID(projectID uint, stackID string) (*models.Stack, error) {
  23. panic("unimplemented")
  24. }
  25. // DeleteStack creates a new stack
  26. func (repo *StackRepository) DeleteStack(stack *models.Stack) (*models.Stack, error) {
  27. panic("unimplemented")
  28. }
  29. func (repo *StackRepository) UpdateStackRevision(revision *models.StackRevision) (*models.StackRevision, error) {
  30. panic("unimplemented")
  31. }
  32. func (repo *StackRepository) ReadStackRevision(stackRevisionID uint) (*models.StackRevision, error) {
  33. panic("unimplemented")
  34. }
  35. func (repo *StackRepository) ReadStackRevisionByNumber(stackID uint, revisionNumber uint) (*models.StackRevision, error) {
  36. panic("unimplemented")
  37. }
  38. func (repo *StackRepository) AppendNewRevision(revision *models.StackRevision) (*models.StackRevision, error) {
  39. panic("unimplemented")
  40. }
  41. func (repo *StackRepository) ReadStackResource(resourceID uint) (*models.StackResource, error) {
  42. panic("unimplemented")
  43. }
  44. func (repo *StackRepository) UpdateStackResource(resource *models.StackResource) (*models.StackResource, error) {
  45. panic("unimplemented")
  46. }
  47. func (repo *StackRepository) ReadStackEnvGroupFirstMatch(projectID, clusterID uint, namespace, name string) (*models.StackEnvGroup, error) {
  48. panic("unimplemented")
  49. }