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

design: init #1

Merged
merged 1 commit into from
Feb 26, 2022
Merged

design: init #1

merged 1 commit into from
Feb 26, 2022

Conversation

yamamoto-febc
Copy link
Member

さくらのクラウドではいくつかの性質の異なるAPIが提供されている。

  • IaaS API
  • 請求関連 API
  • ウェブアクセラレータ API
  • オブジェクトストレージ API
  • 専用サーバPHY API

従来はIaas API(sacloud/libsacloud)としてこれらの一部のAPI向けのAPIライブラリを提供していた。

さくらのクラウドのサービス拡大と共に専用サーバPHYやオブジェクトストレージのAPIなどが公開されたが、
これらのAPIはOpenAPIによるAPI定義が提供されていたりHTTP レスポンスステータスコードの扱いが異なったりと
Iaas APIとはライブラリで処理すべき内容が異なっている。

このままIaaS API側で実装すると(違いを吸収するための)共通部分の実装の肥大化が予想されるため、APIライブラリを以下のように分ける。

各ライブラリは単体でも利用可能とするが、Usacloudに対するlibsacloudのhelper/serviceパッケージのように、各APIに対し統一的にCRUD+L操作が行えるようにしたい。

そこで、高レベルAPIライブラリとしてsacloud/sacloud-goを作成し、
libsacloudのhelper/serviceパッケージの移植やその他高レベル操作の実装/集約などを行いたい。

@yamamoto-febc yamamoto-febc marked this pull request as draft February 26, 2022 01:48
@yamamoto-febc yamamoto-febc marked this pull request as ready for review February 26, 2022 01:49
@yamamoto-febc yamamoto-febc merged commit 2193060 into sacloud:main Feb 26, 2022
@yamamoto-febc yamamoto-febc deleted the design/init branch February 26, 2022 02:00
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.

None yet

1 participant