본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

파일 형식 변환

원문 보기 위키 갱신

파일 형식 변환 (deck file format)

이 문서는 deck file format 명령어에 대해 설명해요. 이 명령어는 decK 형식과 Kong의 DB-less 모드 선언형 설정 형식 간에 파일을 변환해 줘요. 두 형식에서 Consumer Group 관련 엔티티가 어떻게 표현되는지 차이를 보여주고, 명령어 사용법과 예시를 알려줘요.

출처: 문서

본문

두 형식은 Consumer Group 관련 엔티티가 표현되는 방식에서 차이가 있어요.

decK

설명: |

  • Consumer Group 플러그인은 consumer_groups[*].plugins 아래에 중첩돼요.
  • Consumer Group 멤버십은 consumers[*].groups 아래에 중첩돼요.
  • 플러그인 부분 링크는 plugins[*].partials 아래에 중첩돼요.

내장 DB-less

설명: |

  • Consumer Group 플러그인은 최상위 consumer_group_plugins 배열에 저장돼요.
  • 멤버십은 최상위 consumer_group_consumers 배열에 저장돼요.
  • 플러그인 부분 링크는 최상위 plugins_partials에 저장돼요.

명령어 사용법

Usage:
  deck file format [flags] deck|dbless filename

Examples:
# Convert a DBless file to decK format
deck file format deck dbless.yaml

# Convert a decK file to DBless format
deck file format dbless deck.yaml

Flags:
      --format string        Output file format: yaml or json. (default "yaml")
  -h, --help                 help for format
  -o, --output-file string   Output file to write to. Use - to write to stdout. (default "-")

관련 리소스

더 알아보기 (Learn more)