eclipse-ankaios / eclipse-ankaios/ank-sdk-python
Retrieval of Reflective Information
- 主要言語
- Python
- スター
- 8
- フォーク
- 4
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 1
説明
## Description
It would be nice to have a feature, to find out the name, read write access, i.e. reflective information on the workload that the python sdk is called from.
As requested by https://github.com/FelixMoelders/ankaios-dashboard/issues/36 it is necessary to find out whether the calling sdk has write access.
Currently I retrieve the information with an anti-pattern:
def get_write_access(self):
write_access = {"writeAccess": True}
try:
workload = Workload.builder().workload_name("access_test").agent_name("access_test_agent").runtime("podman").runtime_config("").restart_policy("NEVER").build()
self.ankaios.apply_workload(workload)
self.ankaios.delete_workload("access_test")
except AnkaiosException as e:
print("Ankaios exception: ", e)
if "Access denied" in str(e):
write_access = {"writeAccess": False}
return write_access
コントリビューションガイド
調査の方向性
現在のアクセスプローブを理解するために、issue の get_write_access の例と、Workload.builder()、apply_workload()、delete_workload() の呼び出しから始めてください。リンクされている Ankaios ダッシュボードのリクエストを確認して必要なリフレクティブ情報を把握し、SDK が公開すべき名前、権限、完了動作を定義してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api, authorization
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100