2
0

aws_assume_role_chain.go 1020 B

1234567891011121314151617181920212223242526272829303132
  1. package test
  2. import (
  3. "context"
  4. "errors"
  5. "github.com/porter-dev/porter/internal/models"
  6. "github.com/porter-dev/porter/internal/repository"
  7. )
  8. // AWSAssumeRoleChain uses gorm.DB for querying the database
  9. type AWSAssumeRoleChain struct{}
  10. // NewAWSAssumeRoleChainer creates an AWSAssumeRoleChain connection
  11. func NewAWSAssumeRoleChainer() repository.AWSAssumeRoleChainer {
  12. return &AWSAssumeRoleChain{}
  13. }
  14. // List returns a list of aws assume role chains for a given project, removing any chain links owned by Porter
  15. func (cr AWSAssumeRoleChain) List(ctx context.Context, projectID uint) ([]*models.AWSAssumeRoleChain, error) {
  16. return nil, errors.New("not implemented")
  17. }
  18. // ListByAwsAccountId ...
  19. func (cr AWSAssumeRoleChain) ListByAwsAccountId(ctx context.Context, targetAwsAccountId string) ([]*models.AWSAssumeRoleChain, error) {
  20. return nil, errors.New("not implemented")
  21. }
  22. // Delete ...
  23. func (cr AWSAssumeRoleChain) Delete(ctx context.Context, projectID uint) error {
  24. return errors.New("not implemented")
  25. }