github.com/sacloud/libsacloud/v2@v2.32.3/helper/defaults/defaults.go (about)

     1  // Copyright 2016-2022 The Libsacloud 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  	// DefaultMaxRetryCount デフォルトリトライ最大数
    22  	DefaultMaxRetryCount = 3
    23  	// DefaultProvisioningRetryCount リソースごとのプロビジョニングAPI呼び出しのリトライ最大数
    24  	DefaultProvisioningRetryCount = 10
    25  
    26  	// DefaultProvisioningWaitInterval リソースごとのプロビジョニングAPI呼び出しのリトライ間隔
    27  	DefaultProvisioningWaitInterval = 5 * time.Second
    28  
    29  	// DefaultDeleteRetryCount リソースごとの削除API呼び出しのリトライ最大数
    30  	DefaultDeleteRetryCount = 10
    31  
    32  	// DefaultDeleteWaitInterval リソースごとの削除API呼び出しのリトライ間隔
    33  	DefaultDeleteWaitInterval = 10 * time.Second
    34  
    35  	// DefaultPollingInterval ポーリング処理の間隔
    36  	DefaultPollingInterval = 5 * time.Second
    37  
    38  	// DefaultPowerHelperBootRetrySpan helper/powerでの起動リクエストリトライ間隔
    39  	DefaultPowerHelperBootRetrySpan = 20 * time.Second
    40  	// DefaultPowerHelperShutdownRetrySpan helper/powerでのシャットダウンリクエストリトライ間隔
    41  	DefaultPowerHelperShutdownRetrySpan = 20 * time.Second
    42  	// DefaultPowerHelperInitialRequestTimeout helper/powerでの初回電源リクエスト成功までのタイムアウト
    43  	DefaultPowerHelperInitialRequestTimeout = 30 * time.Minute
    44  	// DefaultPowerHelperInitialRequestRetrySpan helper/powerでの初回リクエスト409+still_creating時のリトライ間隔
    45  	DefaultPowerHelperInitialRequestRetrySpan = 20 * time.Second
    46  )
    47  
    48  // for builder package
    49  var (
    50  	// DefaultNICUpdateWaitDuration NIC切断/削除後の待ち時間デフォルト値
    51  	DefaultNICUpdateWaitDuration = 5 * time.Second
    52  )