| 
									
										
										
										
											2021-04-08 16:11:11 +08:00
										 |  |  | package grafana | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"embed" | 
					
						
							|  |  |  | 	"io/fs" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-25 18:55:04 +08:00
										 |  |  | // CoreSchema embeds all core CUE files, which live in packages/grafana-schema/src
 | 
					
						
							| 
									
										
										
										
											2021-04-08 16:11:11 +08:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2021-08-25 18:55:04 +08:00
										 |  |  | //go:embed cue.mod cue packages/grafana-schema/src/schema/*.cue packages/grafana-schema/src/scuemata/*/*.cue
 | 
					
						
							| 
									
										
										
										
											2021-04-08 16:11:11 +08:00
										 |  |  | var CoreSchema embed.FS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //go:embed public/app/plugins/*/*/*.cue public/app/plugins/*/*/plugin.json
 | 
					
						
							|  |  |  | var base embed.FS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // PluginSchema embeds all CUE files within the public/ subdirectory.
 | 
					
						
							|  |  |  | var PluginSchema, _ = fs.Sub(base, "public/app/plugins") |