types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Name          string
	IsDisjunction bool
	Nodes         []Node
	Nested        bool
}

func (*Model) Generate

func (s *Model) Generate() string

type Node

type Node struct {
	Name             string
	Kind             cue.Kind
	SubKind          cue.Kind // For list only, kind of its elements
	IsMap            bool
	IsDisjunction    bool
	Optional         bool
	Default          string
	Doc              string
	Children         []Node
	Parent           *Node
	DisjunctionKinds []cue.Kind
}

func (*Node) IsGenerated

func (n *Node) IsGenerated() bool

func (*Node) JSONModelField

func (n *Node) JSONModelField() string

func (*Node) SubTerraformType

func (n *Node) SubTerraformType() string

func (*Node) TerraformModelField

func (n *Node) TerraformModelField(structName string) string

func (*Node) TerraformType

func (n *Node) TerraformType() string

Jump to

Keyboard shortcuts

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