airflow.providers.fab.www.views

FabIndexView

一個繼承自 FAB 索引檢視的簡單檢視。

函式

show_traceback(error)

顯示給定錯誤的 Traceback。

not_found(error)

當 Webserver 中發生任何錯誤時,在螢幕上顯示 Not Found。

get_safe_url(url)

給定使用者提供的 URL,確保它指向我們的 Web 伺服器。

method_not_allowed(error)

當 Webserver 中發生任何錯誤時,在螢幕上顯示 Method Not Allowed。

模組內容

class airflow.providers.fab.www.views.FabIndexView[source]

基類: flask_appbuilder.IndexView

一個繼承自 FAB 索引檢視的簡單檢視。

此檢視的唯一目標是在使用者透過身份驗證後將其重定向到 Airflow 3 UI 的索引頁。在將使用者重定向到此頁之前,無法直接將其重定向到 Airflow 3 UI 的索引頁,因為 FAB 本身定義了重定向邏輯,並且不允許外部重定向。

index()[source]
airflow.providers.fab.www.views.show_traceback(error)[source]

顯示給定錯誤的 Traceback。

airflow.providers.fab.www.views.not_found(error)[source]

當 Webserver 中發生任何錯誤時,在螢幕上顯示 Not Found。

airflow.providers.fab.www.views.get_safe_url(url)[source]

給定使用者提供的 URL,確保它指向我們的 Web 伺服器。

airflow.providers.fab.www.views.method_not_allowed(error)[source]

當 Webserver 中發生任何錯誤時,在螢幕上顯示 Method Not Allowed。

此條目有幫助嗎?