go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/gce/cmd/agent/assets.gen.go (about) 1 // Copyright 2024 The LUCI 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 // AUTOGENERATED. DO NOT EDIT. 16 17 // Package main is generated by go.chromium.org/luci/tools/cmd/assets. 18 // 19 // It contains all [*.css *.html *.js *.tmpl] files found in the package as byte arrays. 20 package main 21 22 // GetAsset returns an asset by its name. Returns nil if no such asset exists. 23 func GetAsset(name string) []byte { 24 return []byte(files[name]) 25 } 26 27 // GetAssetString is version of GetAsset that returns string instead of byte 28 // slice. Returns empty string if no such asset exists. 29 func GetAssetString(name string) string { 30 return files[name] 31 } 32 33 // GetAssetSHA256 returns the asset checksum. Returns nil if no such asset 34 // exists. 35 func GetAssetSHA256(name string) []byte { 36 data := fileSha256s[name] 37 if data == nil { 38 return nil 39 } 40 return append([]byte(nil), data...) 41 } 42 43 // Assets returns a map of all assets. 44 func Assets() map[string]string { 45 cpy := make(map[string]string, len(files)) 46 for k, v := range files { 47 cpy[k] = v 48 } 49 return cpy 50 } 51 52 var files = map[string]string{ 53 "swarming-start-bot.bat.tmpl": string([]byte{58, 58, 54 32, 115, 119, 97, 114, 109, 105, 110, 103, 45, 115, 116, 97, 114, 55 116, 45, 98, 111, 116, 32, 45, 32, 115, 119, 97, 114, 109, 105, 56 110, 103, 32, 98, 111, 116, 32, 115, 116, 97, 114, 116, 117, 112, 57 10, 10, 58, 58, 32, 85, 115, 101, 100, 32, 102, 111, 114, 32, 58 115, 116, 97, 114, 116, 105, 110, 103, 32, 97, 32, 83, 119, 97, 59 114, 109, 105, 110, 103, 32, 98, 111, 116, 32, 112, 114, 111, 99, 60 101, 115, 115, 46, 10, 10, 58, 58, 32, 80, 114, 101, 118, 101, 61 110, 116, 32, 83, 119, 97, 114, 109, 105, 110, 103, 32, 102, 114, 62 111, 109, 32, 99, 111, 110, 102, 105, 103, 117, 114, 105, 110, 103, 63 32, 105, 116, 115, 32, 111, 119, 110, 32, 97, 117, 116, 111, 115, 64 116, 97, 114, 116, 46, 10, 83, 69, 84, 32, 83, 87, 65, 82, 65 77, 73, 78, 71, 95, 69, 88, 84, 69, 82, 78, 65, 76, 95, 66 66, 79, 84, 95, 83, 69, 84, 85, 80, 61, 49, 10, 64, 123, 67 123, 46, 80, 121, 116, 104, 111, 110, 125, 125, 32, 123, 123, 46, 68 66, 111, 116, 67, 111, 100, 101, 125, 125, 32, 115, 116, 97, 114, 69 116, 95, 98, 111, 116, 10}), 70 "swarming-start-bot.conf.tmpl": string([]byte{35, 32, 71 115, 119, 97, 114, 109, 105, 110, 103, 45, 115, 116, 97, 114, 116, 72 45, 98, 111, 116, 32, 45, 32, 115, 119, 97, 114, 109, 105, 110, 73 103, 32, 98, 111, 116, 32, 115, 116, 97, 114, 116, 117, 112, 10, 74 10, 35, 32, 85, 115, 101, 100, 32, 116, 111, 32, 115, 116, 97, 75 114, 116, 32, 116, 104, 101, 32, 83, 119, 97, 114, 109, 105, 110, 76 103, 32, 98, 111, 116, 32, 112, 114, 111, 99, 101, 115, 115, 32, 77 118, 105, 97, 32, 117, 112, 115, 116, 97, 114, 116, 46, 10, 10, 78 100, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 32, 34, 115, 79 119, 97, 114, 109, 105, 110, 103, 32, 98, 111, 116, 32, 115, 116, 80 97, 114, 116, 117, 112, 34, 10, 10, 115, 116, 97, 114, 116, 32, 81 111, 110, 32, 40, 102, 105, 108, 101, 115, 121, 115, 116, 101, 109, 82 32, 97, 110, 100, 32, 110, 101, 116, 45, 100, 101, 118, 105, 99, 83 101, 45, 117, 112, 32, 73, 70, 65, 67, 69, 33, 61, 108, 111, 84 41, 10, 115, 116, 111, 112, 32, 111, 110, 32, 115, 104, 117, 116, 85 100, 111, 119, 110, 10, 108, 105, 109, 105, 116, 32, 110, 111, 102, 86 105, 108, 101, 32, 53, 48, 48, 48, 48, 32, 53, 48, 48, 48, 87 48, 10, 10, 115, 99, 114, 105, 112, 116, 10, 32, 32, 47, 117, 88 115, 114, 47, 98, 105, 110, 47, 115, 117, 100, 111, 32, 45, 72, 89 32, 45, 117, 32, 123, 123, 46, 85, 115, 101, 114, 125, 125, 32, 90 83, 87, 65, 82, 77, 73, 78, 71, 95, 69, 88, 84, 69, 82, 91 78, 65, 76, 95, 66, 79, 84, 95, 83, 69, 84, 85, 80, 61, 92 49, 32, 123, 123, 46, 80, 121, 116, 104, 111, 110, 125, 125, 32, 93 123, 123, 46, 66, 111, 116, 67, 111, 100, 101, 125, 125, 32, 115, 94 116, 97, 114, 116, 95, 98, 111, 116, 10, 101, 110, 100, 32, 115, 95 99, 114, 105, 112, 116, 10}), 96 "swarming-start-bot.service.tmpl": string([]byte{35, 32, 97 115, 119, 97, 114, 109, 105, 110, 103, 45, 115, 116, 97, 114, 116, 98 45, 98, 111, 116, 32, 45, 32, 115, 119, 97, 114, 109, 105, 110, 99 103, 32, 98, 111, 116, 32, 115, 116, 97, 114, 116, 117, 112, 10, 100 10, 35, 32, 85, 115, 101, 100, 32, 116, 111, 32, 115, 116, 97, 101 114, 116, 32, 116, 104, 101, 32, 83, 119, 97, 114, 109, 105, 110, 102 103, 32, 98, 111, 116, 32, 112, 114, 111, 99, 101, 115, 115, 32, 103 118, 105, 97, 32, 115, 121, 115, 116, 101, 109, 100, 46, 10, 10, 104 91, 85, 110, 105, 116, 93, 10, 68, 101, 115, 99, 114, 105, 112, 105 116, 105, 111, 110, 61, 83, 119, 97, 114, 109, 105, 110, 103, 32, 106 98, 111, 116, 32, 115, 116, 97, 114, 116, 117, 112, 10, 65, 102, 107 116, 101, 114, 61, 99, 108, 111, 117, 100, 45, 102, 105, 110, 97, 108 108, 46, 115, 101, 114, 118, 105, 99, 101, 10, 10, 91, 83, 101, 109 114, 118, 105, 99, 101, 93, 10, 84, 121, 112, 101, 61, 115, 105, 110 109, 112, 108, 101, 10, 85, 115, 101, 114, 61, 123, 123, 46, 85, 111 115, 101, 114, 125, 125, 10, 76, 105, 109, 105, 116, 78, 79, 70, 112 73, 76, 69, 61, 53, 48, 48, 48, 48, 10, 69, 110, 118, 105, 113 114, 111, 110, 109, 101, 110, 116, 61, 83, 87, 65, 82, 77, 73, 114 78, 71, 95, 69, 88, 84, 69, 82, 78, 65, 76, 95, 66, 79, 115 84, 95, 83, 69, 84, 85, 80, 61, 49, 10, 69, 110, 118, 105, 116 114, 111, 110, 109, 101, 110, 116, 70, 105, 108, 101, 61, 45, 47, 117 101, 116, 99, 47, 115, 119, 97, 114, 109, 105, 110, 103, 47, 101, 118 110, 118, 10, 69, 120, 101, 99, 83, 116, 97, 114, 116, 61, 32, 119 123, 123, 46, 80, 121, 116, 104, 111, 110, 125, 125, 32, 123, 123, 120 46, 66, 111, 116, 67, 111, 100, 101, 125, 125, 32, 115, 116, 97, 121 114, 116, 95, 98, 111, 116, 10, 10, 91, 73, 110, 115, 116, 97, 122 108, 108, 93, 10, 87, 97, 110, 116, 101, 100, 66, 121, 61, 99, 123 108, 111, 117, 100, 45, 105, 110, 105, 116, 46, 116, 97, 114, 103, 124 101, 116, 10}), 125 } 126 127 var fileSha256s = map[string][]byte{ 128 "swarming-start-bot.bat.tmpl": {97, 242, 129 249, 54, 149, 149, 252, 239, 195, 30, 188, 240, 226, 10, 241, 196, 130 126, 132, 154, 238, 7, 215, 57, 254, 188, 192, 32, 166, 251, 138, 131 209, 71}, 132 "swarming-start-bot.conf.tmpl": {202, 12, 133 204, 118, 197, 162, 36, 87, 35, 208, 228, 38, 160, 145, 163, 184, 134 192, 199, 27, 18, 46, 2, 138, 35, 209, 226, 221, 173, 120, 67, 135 80, 147}, 136 "swarming-start-bot.service.tmpl": {125, 47, 137 142, 43, 233, 193, 222, 104, 119, 107, 158, 216, 5, 195, 180, 165, 138 242, 105, 137, 146, 198, 251, 12, 37, 251, 177, 108, 150, 208, 151, 139 213, 205}, 140 }