infra.go 441 B

12345678910111213
  1. package repository
  2. import (
  3. "github.com/porter-dev/porter/internal/models"
  4. )
  5. // AWSInfraRepository represents the set of queries on the AWSInfra model
  6. type AWSInfraRepository interface {
  7. CreateAWSInfra(repo *models.AWSInfra) (*models.AWSInfra, error)
  8. ReadAWSInfra(id uint) (*models.AWSInfra, error)
  9. ListAWSInfrasByProjectID(projectID uint) ([]*models.AWSInfra, error)
  10. UpdateAWSInfra(repo *models.AWSInfra) (*models.AWSInfra, error)
  11. }