model

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataType

type DataType struct {
	// Name is the Go struct identifier name
	Name string
	// FQDTN is the Fully Qualified DataType Name in TOSCA
	FQDTN string
	// DerivedFrom is the parent Go struct identifier name
	DerivedFrom string
	// Description is the data type description field
	Description string
	// Fields are DataType fields (aka properties in TOSCA)
	Fields []Field
}

DataType is the representation of a TOSCA datatype

type Field

type Field struct {
	// Name is the Go struct field name
	Name string
	// OriginalName is the field name as it appear in the TOSCA definition
	OriginalName string
	// Type is the Go struct field type
	Type string
	// Description is the property description field
	Description string
}

Field is the representation of a TOSCA datatype property

type File

type File struct {
	// Package is the short package name as it should appear in source file
	Package string
	// Imports is a list of additional imports to add to the source file
	Imports []string
	// DataTypes are TOSCA DataTypes to be included in this source file
	DataTypes []DataType
}

File is the representation of a Go source file to be generated

Jump to

Keyboard shortcuts

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