This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lokicfg | |
import "github.com/grafana/thema" | |
// - MIGHT be helpful for them if there could be an init command that tries to start from Go structs | |
// - Probably need to generate YAML struct tags | |
thema.#Lineage | |
name: "lokicfg" | |
seqs: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Schema of our B type | |
#B: { | |
type: string | |
aFieldInB: string | |
} | |
// Schema of our A type | |
#A: { | |
// someB should ultimately be resolvable to a single instance of B, | |
// but instances of A are allowed to accept a B literal, constraint, or id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package grafanaplugin | |
import "github.com/grafana/thema" | |
// Note - all fields in here SHOULD be well-commented. | |
Query: thema.#Lineage & { | |
name: "prometheus" | |
seqs: [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dsschema | |
import "github.com/grafana/thema" | |
Query: thema.#Lineage & { | |
name: "prometheus" | |
seqs: [ | |
{ | |
schemas: [ | |
{// 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pluginmeta | |
import "github.com/grafana/thema" | |
thema.#Lineage | |
name: "pluginmeta" | |
seqs: [ | |
{ | |
schemas: [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package something | |
import ( | |
"github.com/grafana/thema/kernel" | |
"github.com/grafana/grafana/pkg/framework/coremodel" | |
) | |
func JSONKernelFrom(cm coremodel.Interface) kernel.InputKernel { | |
k, _ := kernel.NewInputKernel(kernel.InputKernelConfig{ | |
Typ: cm.GoType(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo | |
import "github.com/grafana/thema" | |
thema.#Lineage | |
name: "foo" | |
seqs: [ | |
{ | |
schemas: [ | |
{// 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo | |
import "github.com/grafana/thema" | |
thema.#Lineage | |
name: "foo" | |
seqs: [ | |
{ | |
schemas: [ | |
{// 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo | |
import "github.com/grafana/thema" | |
thema.#Lineage | |
name: "foo" | |
seqs: [ | |
{ | |
schemas: [ | |
{// 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo | |
import "github.com/grafana/thema" | |
thema.#Lineage | |
name: "foo" | |
seqs: [ | |
{ | |
schemas: [ | |
{// 0.0 |