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

パッケージ構造とリソースの論理階層を一致させる #8

Merged
merged 2 commits into from
Mar 24, 2022

Conversation

yamamoto-febc
Copy link
Member

@yamamoto-febc yamamoto-febc commented Mar 24, 2022

パッケージ構造をリソースの親子構造を反映したものにする。
これによりパッケージ構造は以下のようになる。

.
├── account
│   └── accesskey
├── bucket
├── permission
│   └── accesskey(未実装)
└── site
    └── status

従来のサービス(iaas-service-go)ではパッケージ階層はフラットにしていた。
これはUsacloudなどでのコード生成の都合によるものだったが、今後のサービスではメタデータ(カタログ)を提供することによりパッケージ階層は比較的自由となる。
このためより元のリソースに近い論理階層をそのままパッケージ構造とした方が利用者側も覚えやすく使いやすいと判断した。

@yamamoto-febc yamamoto-febc changed the title パッケージ構造の整理: accountkey -> account/accesskey パッケージ構造とリソースの論理階層を一致させる Mar 24, 2022
@yamamoto-febc yamamoto-febc merged commit 84f1cc5 into sacloud:main Mar 24, 2022
yamamoto-febc added a commit to yamamoto-febc/object-storage-service-go that referenced this pull request Mar 7, 2024
da19115 v0.0.8
20008ba golangci-lint v1.56.2 (sacloud#12)
0bab2ce golangci-lint v1.55.2 (sacloud#11)
bd171b2 golangci-lint v1.51.2 (sacloud#10)
b09c34a golangci-lint v1.50.1 (sacloud#9)
8d0e6bb copyright: 2023 (sacloud#8)

git-subtree-dir: includes
git-subtree-split: da19115f0259f5b8f3b96fbfbca1fca6ecc86011
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