schema

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGoCode

func GenerateGoCode(input codespec.Resource) string

Types

type BoolAttrGenerator

type BoolAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*BoolAttrGenerator) AttributeCode

func (s *BoolAttrGenerator) AttributeCode() CodeStatement

type CodeStatement

type CodeStatement struct {
	Code    string
	Imports []string
}

func ElementTypeProperty

func ElementTypeProperty(elementType codespec.ElemType) CodeStatement

func GenerateSchemaAttributes

func GenerateSchemaAttributes(attrs codespec.Attributes) CodeStatement

func GenerateTypedModels

func GenerateTypedModels(attributes codespec.Attributes) CodeStatement

func GroupCodeStatements

func GroupCodeStatements(stmts []CodeStatement, grouping func([]string) string) CodeStatement

type Float64AttrGenerator

type Float64AttrGenerator struct {
	// contains filtered or unexported fields
}

func (*Float64AttrGenerator) AttributeCode

func (f *Float64AttrGenerator) AttributeCode() CodeStatement

type Int64AttrGenerator

type Int64AttrGenerator struct {
	// contains filtered or unexported fields
}

func (*Int64AttrGenerator) AttributeCode

func (i *Int64AttrGenerator) AttributeCode() CodeStatement

type ListAttrGenerator

type ListAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*ListAttrGenerator) AttributeCode

func (l *ListAttrGenerator) AttributeCode() CodeStatement

type ListNestedAttrGenerator

type ListNestedAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*ListNestedAttrGenerator) AttributeCode

func (l *ListNestedAttrGenerator) AttributeCode() CodeStatement

type MapAttrGenerator

type MapAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*MapAttrGenerator) AttributeCode

func (m *MapAttrGenerator) AttributeCode() CodeStatement

type MapNestedAttrGenerator

type MapNestedAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*MapNestedAttrGenerator) AttributeCode

func (m *MapNestedAttrGenerator) AttributeCode() CodeStatement

type NumberAttrGenerator

type NumberAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*NumberAttrGenerator) AttributeCode

func (s *NumberAttrGenerator) AttributeCode() CodeStatement

type SetAttrGenerator

type SetAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*SetAttrGenerator) AttributeCode

func (s *SetAttrGenerator) AttributeCode() CodeStatement

type SetNestedGenerator

type SetNestedGenerator struct {
	// contains filtered or unexported fields
}

func (*SetNestedGenerator) AttributeCode

func (l *SetNestedGenerator) AttributeCode() CodeStatement

type SingleNestedAttrGenerator

type SingleNestedAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*SingleNestedAttrGenerator) AttributeCode

func (l *SingleNestedAttrGenerator) AttributeCode() CodeStatement

type StringAttrGenerator

type StringAttrGenerator struct {
	// contains filtered or unexported fields
}

func (*StringAttrGenerator) AttributeCode

func (s *StringAttrGenerator) AttributeCode() CodeStatement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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