2
0

stack.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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) UpdateStack(stack *models.Stack) (*models.Stack, error) {
  30. panic("unimplemented")
  31. }
  32. func (repo *StackRepository) UpdateStackRevision(revision *models.StackRevision) (*models.StackRevision, error) {
  33. panic("unimplemented")
  34. }
  35. func (repo *StackRepository) ReadStackRevision(stackRevisionID uint) (*models.StackRevision, error) {
  36. panic("unimplemented")
  37. }
  38. func (repo *StackRepository) ReadStackRevisionByNumber(stackID uint, revisionNumber uint) (*models.StackRevision, error) {
  39. panic("unimplemented")
  40. }
  41. func (repo *StackRepository) AppendNewRevision(revision *models.StackRevision) (*models.StackRevision, error) {
  42. panic("unimplemented")
  43. }
  44. func (repo *StackRepository) ReadStackResource(resourceID uint) (*models.StackResource, error) {
  45. panic("unimplemented")
  46. }
  47. func (repo *StackRepository) UpdateStackResource(resource *models.StackResource) (*models.StackResource, error) {
  48. panic("unimplemented")
  49. }
  50. func (repo *StackRepository) ReadStackEnvGroupFirstMatch(projectID, clusterID uint, namespace, name string) (*models.StackEnvGroup, error) {
  51. panic("unimplemented")
  52. }