models

package
v0.0.0-...-e59a564 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalObject

func MarshalObject(val Object) graphql.Marshaler

Types

type Blueprint

type Blueprint struct {
	Version string             `yaml:"version" json:"version"`
	Objects map[string]*Object `yaml:",inline" json:"objects"`
}

type BlueprintVariableType

type BlueprintVariableType string
const (
	BlueprintVariableType_STRING BlueprintVariableType = "STRING"
	BlueprintVariableType_INT    BlueprintVariableType = "INT"
)

func ParseBlueprintVariableType

func ParseBlueprintVariableType(value string) (BlueprintVariableType, bool)

type Object

type Object struct {
	Resource  *string   `yaml:"resource,omitempty" json:"resource"`
	Data      *string   `yaml:"data,omitempty" json:"data"`
	Config    yaml.Node `yaml:"config" json:"config"`
	DependsOn []string  `yaml:"depends_on,omitempty" json:"depends_on,omitempty"`
}

func UnmarshalObject

func UnmarshalObject(v interface{}) (Object, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL