conf.go 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. package bin
  2. import (
  3. "fmt"
  4. "io/ioutil"
  5. "strings"
  6. )
  7. // bindata_read reads the given file from disk. It returns an error on failure.
  8. func bindata_read(path, name string) ([]byte, error) {
  9. buf, err := ioutil.ReadFile(path)
  10. if err != nil {
  11. err = fmt.Errorf("Error reading asset %s at %s: %v", name, path, err)
  12. }
  13. return buf, err
  14. }
  15. // conf_app_ini reads file data from disk. It returns an error on failure.
  16. func conf_app_ini() ([]byte, error) {
  17. return bindata_read(
  18. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/app.ini",
  19. "conf/app.ini",
  20. )
  21. }
  22. // conf_content_git_bare_zip reads file data from disk. It returns an error on failure.
  23. func conf_content_git_bare_zip() ([]byte, error) {
  24. return bindata_read(
  25. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/content/git-bare.zip",
  26. "conf/content/git-bare.zip",
  27. )
  28. }
  29. // conf_etc_supervisord_conf reads file data from disk. It returns an error on failure.
  30. func conf_etc_supervisord_conf() ([]byte, error) {
  31. return bindata_read(
  32. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/etc/supervisord.conf",
  33. "conf/etc/supervisord.conf",
  34. )
  35. }
  36. // conf_gitignore_android reads file data from disk. It returns an error on failure.
  37. func conf_gitignore_android() ([]byte, error) {
  38. return bindata_read(
  39. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/Android",
  40. "conf/gitignore/Android",
  41. )
  42. }
  43. // conf_gitignore_c reads file data from disk. It returns an error on failure.
  44. func conf_gitignore_c() ([]byte, error) {
  45. return bindata_read(
  46. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/C",
  47. "conf/gitignore/C",
  48. )
  49. }
  50. // conf_gitignore_c_sharp reads file data from disk. It returns an error on failure.
  51. func conf_gitignore_c_sharp() ([]byte, error) {
  52. return bindata_read(
  53. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/C Sharp",
  54. "conf/gitignore/C Sharp",
  55. )
  56. }
  57. // conf_gitignore_c_ reads file data from disk. It returns an error on failure.
  58. func conf_gitignore_c_() ([]byte, error) {
  59. return bindata_read(
  60. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/C++",
  61. "conf/gitignore/C++",
  62. )
  63. }
  64. // conf_gitignore_google_go reads file data from disk. It returns an error on failure.
  65. func conf_gitignore_google_go() ([]byte, error) {
  66. return bindata_read(
  67. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/Google Go",
  68. "conf/gitignore/Google Go",
  69. )
  70. }
  71. // conf_gitignore_java reads file data from disk. It returns an error on failure.
  72. func conf_gitignore_java() ([]byte, error) {
  73. return bindata_read(
  74. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/Java",
  75. "conf/gitignore/Java",
  76. )
  77. }
  78. // conf_gitignore_objective_c reads file data from disk. It returns an error on failure.
  79. func conf_gitignore_objective_c() ([]byte, error) {
  80. return bindata_read(
  81. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/Objective-C",
  82. "conf/gitignore/Objective-C",
  83. )
  84. }
  85. // conf_gitignore_python reads file data from disk. It returns an error on failure.
  86. func conf_gitignore_python() ([]byte, error) {
  87. return bindata_read(
  88. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/Python",
  89. "conf/gitignore/Python",
  90. )
  91. }
  92. // conf_gitignore_ruby reads file data from disk. It returns an error on failure.
  93. func conf_gitignore_ruby() ([]byte, error) {
  94. return bindata_read(
  95. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/gitignore/Ruby",
  96. "conf/gitignore/Ruby",
  97. )
  98. }
  99. // conf_license_affero_gpl reads file data from disk. It returns an error on failure.
  100. func conf_license_affero_gpl() ([]byte, error) {
  101. return bindata_read(
  102. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/license/Affero GPL",
  103. "conf/license/Affero GPL",
  104. )
  105. }
  106. // conf_license_apache_v2_license reads file data from disk. It returns an error on failure.
  107. func conf_license_apache_v2_license() ([]byte, error) {
  108. return bindata_read(
  109. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/license/Apache v2 License",
  110. "conf/license/Apache v2 License",
  111. )
  112. }
  113. // conf_license_artistic_license_2_0 reads file data from disk. It returns an error on failure.
  114. func conf_license_artistic_license_2_0() ([]byte, error) {
  115. return bindata_read(
  116. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/license/Artistic License 2.0",
  117. "conf/license/Artistic License 2.0",
  118. )
  119. }
  120. // conf_license_bsd_3_clause_license reads file data from disk. It returns an error on failure.
  121. func conf_license_bsd_3_clause_license() ([]byte, error) {
  122. return bindata_read(
  123. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/license/BSD (3-Clause) License",
  124. "conf/license/BSD (3-Clause) License",
  125. )
  126. }
  127. // conf_license_gpl_v2 reads file data from disk. It returns an error on failure.
  128. func conf_license_gpl_v2() ([]byte, error) {
  129. return bindata_read(
  130. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/license/GPL v2",
  131. "conf/license/GPL v2",
  132. )
  133. }
  134. // conf_license_mit_license reads file data from disk. It returns an error on failure.
  135. func conf_license_mit_license() ([]byte, error) {
  136. return bindata_read(
  137. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/license/MIT License",
  138. "conf/license/MIT License",
  139. )
  140. }
  141. // conf_mysql_sql reads file data from disk. It returns an error on failure.
  142. func conf_mysql_sql() ([]byte, error) {
  143. return bindata_read(
  144. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/mysql.sql",
  145. "conf/mysql.sql",
  146. )
  147. }
  148. // conf_supervisor_ini reads file data from disk. It returns an error on failure.
  149. func conf_supervisor_ini() ([]byte, error) {
  150. return bindata_read(
  151. "/Users/jiahuachen/Applications/Go/src/github.com/gogits/gogs/conf/supervisor.ini",
  152. "conf/supervisor.ini",
  153. )
  154. }
  155. // Asset loads and returns the asset for the given name.
  156. // It returns an error if the asset could not be found or
  157. // could not be loaded.
  158. func Asset(name string) ([]byte, error) {
  159. cannonicalName := strings.Replace(name, "\\", "/", -1)
  160. if f, ok := _bindata[cannonicalName]; ok {
  161. return f()
  162. }
  163. return nil, fmt.Errorf("Asset %s not found", name)
  164. }
  165. // AssetNames returns the names of the assets.
  166. func AssetNames() []string {
  167. names := make([]string, 0, len(_bindata))
  168. for name := range _bindata {
  169. names = append(names, name)
  170. }
  171. return names
  172. }
  173. // _bindata is a table, holding each asset generator, mapped to its name.
  174. var _bindata = map[string]func() ([]byte, error){
  175. "conf/app.ini": conf_app_ini,
  176. "conf/content/git-bare.zip": conf_content_git_bare_zip,
  177. "conf/etc/supervisord.conf": conf_etc_supervisord_conf,
  178. "conf/gitignore/Android": conf_gitignore_android,
  179. "conf/gitignore/C": conf_gitignore_c,
  180. "conf/gitignore/C Sharp": conf_gitignore_c_sharp,
  181. "conf/gitignore/C++": conf_gitignore_c_,
  182. "conf/gitignore/Google Go": conf_gitignore_google_go,
  183. "conf/gitignore/Java": conf_gitignore_java,
  184. "conf/gitignore/Objective-C": conf_gitignore_objective_c,
  185. "conf/gitignore/Python": conf_gitignore_python,
  186. "conf/gitignore/Ruby": conf_gitignore_ruby,
  187. "conf/license/Affero GPL": conf_license_affero_gpl,
  188. "conf/license/Apache v2 License": conf_license_apache_v2_license,
  189. "conf/license/Artistic License 2.0": conf_license_artistic_license_2_0,
  190. "conf/license/BSD (3-Clause) License": conf_license_bsd_3_clause_license,
  191. "conf/license/GPL v2": conf_license_gpl_v2,
  192. "conf/license/MIT License": conf_license_mit_license,
  193. "conf/mysql.sql": conf_mysql_sql,
  194. "conf/supervisor.ini": conf_supervisor_ini,
  195. }