Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/config structure update #44

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

heedaeshin
Copy link
Contributor

2024-09-06

Refactoring

  • 변경 사유

    • 기존 API, CLI 크레덴셜 직접 입력받는 형태로 존재
      • 프로필 전환
    • 파편화된 구조체 관리 필요
    • 각 데이터 관리 작업 추상화 필요
  • 변경내역

    • Task Struct
      • 모든 데이터 관리는 해당 Sturuct에서 진행됨
      • Credentail은 profileName과 Provider만 호출
      • Task별 고유한 operationId를 가지게 됨
        • API 동작시 Required parameter
        • CLI 동작시 자동 생성 예정
      • ServiceType ( Provider Service), TaskType ( create, delete, migration, ...etc )
    • Profile Struct
      • Credential 정보관리
      • ProfileName 아래 관련 Provider 크레덴셜이 저장됨
    • Add 디렉토리
      • data : 프로필 및 task 관리
      • model : 전체 struct 관리
    • refactor 디렉토리
      • cmd :전체
      • config : 기존 config -> provider(ex.config), config, profile
      • internal : 전체
      • websrc/controllers

Update

  • 변경내역
    • pkg
      • rdbms
        • mysql.go
        • 트랜잭션 추가
        • DB, TABLE Create단계에서 필터링 적용
        • 각 버전별 해당하는 주석 추가
        • 범용 utf8mb4 [ charset, collate] 적용
    • internal
      • auth
        • os.go
        • ncp os S3 명령어 공유하는 과정에서 Provider AWS 호출 , NCP로 변경, 버킷 자동생성

To Do

  • 스케줄러 작성
  • BackUp, Restore Task 작성
  • /backup, /restore
  • /task API를 추가하여 모든 Task 작업
    • 등록, 조회, 업데이트, 삭제, 실행

…on, and abstracted data management. Update: Added transactions and utf8mb4 support in MySQL, improved NCP OS S3 command handling.
@heedaeshin heedaeshin merged commit 35c2f8e into main Sep 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant