github.com/sacloud/iaas-api-go@v1.12.0/ostype/archiveostype_string.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 // Code generated by "stringer -type=ArchiveOSType"; DO NOT EDIT. 16 17 package ostype 18 19 import "strconv" 20 21 func _() { 22 // An "invalid array index" compiler error signifies that the constant values have changed. 23 // Re-run the stringer command to generate them again. 24 var x [1]struct{} 25 _ = x[Custom-0] 26 _ = x[CentOS-1] 27 _ = x[CentOS7-2] 28 _ = x[AlmaLinux-3] 29 _ = x[AlmaLinux9-4] 30 _ = x[AlmaLinux8-5] 31 _ = x[RockyLinux-6] 32 _ = x[RockyLinux9-7] 33 _ = x[RockyLinux8-8] 34 _ = x[MiracleLinux-9] 35 _ = x[MiracleLinux8-10] 36 _ = x[MiracleLinux9-11] 37 _ = x[Ubuntu-12] 38 _ = x[Ubuntu2204-13] 39 _ = x[Ubuntu2004-14] 40 _ = x[Ubuntu1804-15] 41 _ = x[Debian-16] 42 _ = x[Debian10-17] 43 _ = x[Debian11-18] 44 _ = x[Kusanagi-19] 45 } 46 47 const _ArchiveOSType_name = "CustomCentOSCentOS7AlmaLinuxAlmaLinux9AlmaLinux8RockyLinuxRockyLinux9RockyLinux8MiracleLinuxMiracleLinux8MiracleLinux9UbuntuUbuntu2204Ubuntu2004Ubuntu1804DebianDebian10Debian11Kusanagi" 48 49 var _ArchiveOSType_index = [...]uint8{0, 6, 12, 19, 28, 38, 48, 58, 69, 80, 92, 105, 118, 124, 134, 144, 154, 160, 168, 176, 184} 50 51 func (i ArchiveOSType) String() string { 52 if i < 0 || i >= ArchiveOSType(len(_ArchiveOSType_index)-1) { 53 return "ArchiveOSType(" + strconv.FormatInt(int64(i), 10) + ")" 54 } 55 return _ArchiveOSType_name[_ArchiveOSType_index[i]:_ArchiveOSType_index[i+1]] 56 }