github.com/sacloud/iaas-api-go@v1.12.0/types/nfs_plan.go (about) 1 // Copyright 2022-2023 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 types 16 17 // NFSPlans NFSプラン 18 // 19 // Note: NFS作成時のPlanIDはこの値+サイズでNFSプランを検索、そのIDを指定すること 20 // NFSプランの検索はutils/nfsのfunc FindPlan(plan types.ID, size int64)を利用する 21 var NFSPlans = struct { 22 // HDD hddプラン 23 HDD ID 24 // SSD ssdプラン 25 SSD ID 26 }{ 27 HDD: ID(1), 28 SSD: ID(2), 29 } 30 31 // NFSPlanStrings NFSプランを表す文字列 32 var NFSPlanStrings = []string{"hdd", "ssd"} 33 34 // NFSPlanIDMap 文字列とNFSプランIDのマップ 35 var NFSPlanIDMap = map[string]ID{ 36 "hdd": NFSPlans.HDD, 37 "ssd": NFSPlans.SSD, 38 } 39 40 // NFSPlanNameMap NFSプランIDと名前のマップ 41 var NFSPlanNameMap = map[ID]string{ 42 NFSPlans.HDD: "hdd", 43 NFSPlans.SSD: "ssd", 44 }