migrations

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL