github.com/gocrane/crane@v0.11.0/docs/mirror.zh_TW.md (about) 1 # 鏡像資源 2 3 ## 關於鏡像資源 4 5 因為各種網絡問題,導致部分地域難以訪問GitHub 資源,如GitHub Repo, GitHub Release, GitHub Raw Content `raw.githubusercontent.com`。 6 7 為了更好的使用體驗,GoCrane 為您額外提供了多個鏡像倉庫,但具有一定的時延。 8 9 ## Helm Resources 10 11 !!! tips 12 每六小時同步一次上游的最新版本 13 14 | Origin | Mirror | Type | Public | 15 | --------------------------------------------- | --------------------------------------------------------- | ------ | ----- | 16 | https://gocrane.github.io/helm-charts | https://finops-helm.pkg.coding.net/gocrane/gocrane | Helm | [Public](https://finops.coding.net/public-artifacts/gocrane/gocrane/packages) | 17 | https://prometheus-community.github.io/helm-charts | https://finops-helm.pkg.coding.net/gocrane/prometheus-community | Helm | [Public](https://finops.coding.net/public-artifacts/gocrane/prometheus-community/packages) | 18 | https://grafana.github.io/helm-charts | https://finops-helm.pkg.coding.net/gocrane/grafana | Helm | [Public](https://finops.coding.net/public-artifacts/gocrane/grafana/packages) | 19 20 ## Git Resources 21 22 !!! tips 23 每天同步一次上游倉庫 24 25 | Origin | Mirror | Type | Public | 26 | --------------------------------------------- | --------------------------------------------------------- | ------ | ---- | 27 | https://github.com/gocrane/crane.git | https://e.coding.net/finops/gocrane/crane.git | Git | [Public](https://finops.coding.net/public/gocrane/crane/git/files) | 28 | https://github.com/gocrane/helm-charts.git | https://e.coding.net/finops/gocrane/helm-charts.git | Git | [Public](https://finops.coding.net/public/gocrane/helm-charts/git/files) | 29 | https://github.com/gocrane/api.git | https://e.coding.net/finops/gocrane/api.git | Git | [Public](https://finops.coding.net/public/gocrane/api/git/files) | 30 | https://github.com/gocrane/crane-scheduler.git | https://e.coding.net/finops/gocrane/crane-scheduler.git | Git | [Public](https://finops.coding.net/public/gocrane/crane-scheduler/git/files) | 31 | https://github.com/gocrane/fadvisor.git | https://e.coding.net/finops/gocrane/fadvisor.git | Git | [Public](https://finops.coding.net/public/gocrane/fadvisor/git/files) | 32 33 ## 獲取 Coding Git 倉庫源文件內容 34 35 在這裡將為您介紹,如何通過HTTP請求直接獲取 Coding Git 倉庫中的源文件內容。 36 37 ### Coding Git 倉庫的關鍵參數 38 39 與常規的API請求類似,Coding Git倉庫提供了對應的API接口。 40 41 下面為您介紹相關的參數。 42 43 !!! tips Example "Example" 44 以 https://**finops**.coding.net/public/**gocrane**/**helm-charts**/git/files**/main/integration/grafana/override_values.yaml** 作為例子。 [點擊訪問](https://finops.coding.net/public/gocrane/helm-charts/git/files/main/integration/grafana/override_values.yaml) 45 46 | 參數 | 說明 | 例子 | 47 | ---- | ---- | ---- | 48 | `team` | 團隊名稱 | `finops` | 49 | `project` | 項目名稱 | `gocrane` | 50 | `repo` | Git 倉庫名稱 | `helm-charts` | 51 | `branch` | 分支名稱 | `main` | 52 | `file path` | 項目中的文件路徑 | `/integration/grafana/override_values.yaml` | 53 54 ### 構造HTTP請求 55 56 根據上面所提到的屬性,按照下面的URL構造規則依次填入,即可獲得一個可以直接獲取源文件內容的URL。 57 58 ```bash 59 https://<team>.coding.net/p/<project>/d/<repo>/git/raw/<branch>/<file path>?download=false 60 61 https://finops.coding.net/p/gocrane/d/helm-charts/git/raw/main/integration/grafana/override_values.yaml?download=false 62 ``` 63 64 !!! tips 65 嘗試以下的命令 66 67 ```bash 68 curl https://finops.coding.net/p/gocrane/d/helm-charts/git/raw/main/integration/grafana/override_values.yaml?download=false 69 ```