specification

package
v0.0.0-...-20afa7c Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapitalizeFirst

func CapitalizeFirst(s string) string

Types

type App

type App struct {
	AppName  string    `yaml:"name"`
	AppType  AppType   `yaml:"type"`
	Features []Feature `yaml:"features"`
}

func (App) AppNameToFolderName

func (a App) AppNameToFolderName() string

func (App) Validate

func (a App) Validate() error

type AppType

type AppType string

type Feature

type Feature struct {
	FeatureName         string  `yaml:"name"`
	Fields              []Field `yaml:"fields"`
	CountOfRandomValues int
}

func (Feature) TemplateIterator

func (f Feature) TemplateIterator() []int

func (Feature) ToDirName

func (f Feature) ToDirName() string

func (Feature) Validate

func (f Feature) Validate() error

type Field

type Field struct {
	Name string `yaml:"name"`
	Type string `yaml:"type"`
}

func (Field) DBType

func (f Field) DBType() string

func (Field) RandomValue

func (f Field) RandomValue() string

func (Field) Validate

func (f Field) Validate() error

type Product

type Product struct {
	ForgeVersion string    `yaml:"forge_version"`
	ProductName  string    `yaml:"product_name"`
	Apps         []App     `yaml:"apps"`
	Features     []Feature `yaml:"features"`
}

func UnmarshalYaml

func UnmarshalYaml(data []byte) (fs Product, err error)

func (Product) Validate

func (fs Product) Validate() error

Jump to

Keyboard shortcuts

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