1 // Copyright 2022-2025 The sacloud/iaas-api-go Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 15 package defaults
16 17 import "time"
18 19 // for setup package
20 var (
21 // DefaultStatePollingTimeout StatePollWaiterでのデフォルトタイムアウト
22 DefaultStatePollingTimeout = 20 * time.Minute
23 // DefaultStatePollingInterval StatePollWaiterでのデフォルトポーリング間隔
24 DefaultStatePollingInterval = 5 * time.Second
25 26 // DefaultPowerHelperBootRetrySpan helper/powerでの起動リクエストリトライ間隔
27 DefaultPowerHelperBootRetrySpan = 20 * time.Second
28 // DefaultPowerHelperShutdownRetrySpan helper/powerでのシャットダウンリクエストリトライ間隔
29 DefaultPowerHelperShutdownRetrySpan = 20 * time.Second
30 // DefaultPowerHelperInitialRequestTimeout helper/powerでの初回電源リクエスト成功までのタイムアウト
31 DefaultPowerHelperInitialRequestTimeout = 30 * time.Minute
32 // DefaultPowerHelperInitialRequestRetrySpan helper/powerでの初回リクエスト409+still_creating時のリトライ間隔
33 DefaultPowerHelperInitialRequestRetrySpan = 20 * time.Second
34 )
35 36 // for builder package
37 var (
38 // DefaultNICUpdateWaitDuration NIC切断/削除後の待ち時間デフォルト値
39 DefaultNICUpdateWaitDuration = 5 * time.Second
40 )
41 42 // for cleanup package
43 var (
44 // DefaultDBStatusPollingInterval データベースアプライアンスのステータス確認ポーリングの間隔
45 DefaultDBStatusPollingInterval = 30 * time.Second
46 )
47