Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerMigrationRequest ¶
type CustomerMigrationRequest struct { Bucket string `json:"bucket"` BucketFolder string `json:"bucket_folder"` Apply bool `json:"apply"` }
CustomerMigrationRequest the data transfer object to create a new folder under the migrations S3 buc`ket and AWS account
func NewCustomerMigrationRequestFromReader ¶
func NewCustomerMigrationRequestFromReader(reader io.Reader) (*CustomerMigrationRequest, error)
NewCustomerMigrationRequestFromReader decodes the request and returns after validation and setting the defaults.
func (*CustomerMigrationRequest) Validate ¶
func (r *CustomerMigrationRequest) Validate() error
Validate validates the values of a customer migration request
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger log.FieldLogger) *Service
NewService creates a service to make terraform
func (*Service) CreateMigrationInfra ¶
func (s *Service) CreateMigrationInfra(dto *CustomerMigrationRequest) error
CreateMigrationInfra creates the necessary AWS IAM, bucket folder so the migration resources are ready to be used.
func (*Service) DeleteMigrationInfra ¶
func (s *Service) DeleteMigrationInfra(dto *CustomerMigrationRequest) error
DeleteMigrationInfra creates the necessary AWS IAM, bucket folder so the migration resources are total removed from our infrastructure.
Click to show internal directories.
Click to hide internal directories.