event.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package test
  2. import (
  3. "github.com/porter-dev/porter/api/types"
  4. "github.com/porter-dev/porter/internal/models"
  5. "github.com/porter-dev/porter/internal/repository"
  6. )
  7. type BuildEventRepository struct{}
  8. func NewBuildEventRepository(canQuery bool) repository.BuildEventRepository {
  9. return &BuildEventRepository{}
  10. }
  11. func (n *BuildEventRepository) CreateEventContainer(am *models.EventContainer) (*models.EventContainer, error) {
  12. panic("not implemented") // TODO: Implement
  13. }
  14. func (n *BuildEventRepository) CreateSubEvent(am *models.SubEvent) (*models.SubEvent, error) {
  15. panic("not implemented") // TODO: Implement
  16. }
  17. func (n *BuildEventRepository) ReadEventsByContainerID(id uint) ([]*models.SubEvent, error) {
  18. panic("not implemented") // TODO: Implement
  19. }
  20. func (n *BuildEventRepository) ReadEventContainer(id uint) (*models.EventContainer, error) {
  21. panic("not implemented") // TODO: Implement
  22. }
  23. func (n *BuildEventRepository) ReadSubEvent(id uint) (*models.SubEvent, error) {
  24. panic("not implemented") // TODO: Implement
  25. }
  26. func (n *BuildEventRepository) AppendEvent(container *models.EventContainer, event *models.SubEvent) error {
  27. panic("not implemented") // TODO: Implement
  28. }
  29. type KubeEventRepository struct{}
  30. func NewKubeEventRepository(canQuery bool) repository.KubeEventRepository {
  31. return &KubeEventRepository{}
  32. }
  33. func (n *KubeEventRepository) CreateEvent(event *models.KubeEvent) (*models.KubeEvent, error) {
  34. panic("not implemented") // TODO: Implement
  35. }
  36. func (n *KubeEventRepository) ReadEvent(id uint, projID uint, clusterID uint) (*models.KubeEvent, error) {
  37. panic("not implemented") // TODO: Implement
  38. }
  39. func (n *KubeEventRepository) ReadEventByGroup(
  40. projID uint,
  41. clusterID uint,
  42. opts *types.GroupOptions,
  43. ) (*models.KubeEvent, error) {
  44. panic("not implemented") // TODO: Implement
  45. }
  46. func (n *KubeEventRepository) ListEventsByProjectID(
  47. projectID uint,
  48. clusterID uint,
  49. opts *types.ListKubeEventRequest,
  50. ) ([]*models.KubeEvent, int64, error) {
  51. panic("not implemented") // TODO: Implement
  52. }
  53. func (n *KubeEventRepository) AppendSubEvent(event *models.KubeEvent, subEvent *models.KubeSubEvent) error {
  54. panic("not implemented") // TODO: Implement
  55. }
  56. func (n *KubeEventRepository) DeleteEvent(id uint) error {
  57. panic("not implemented") // TODO: Implement
  58. }