specification

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Product
	AppName             string    `yaml:"name"`
	AppType             AppType   `yaml:"type"`
	Backend             string    `yaml:"backend"`
	Features            []Feature `yaml:"features"`
	AppPort             int       `yaml:"port"`
	CountOfRandomValues int       `yaml:""`
	Defaults            defaults.Defaults
}

func (App) AppNameCamelCase

func (a App) AppNameCamelCase() string

func (App) AppNameDir added in v0.0.2

func (a App) AppNameDir() string

func (App) FeaturesArray added in v0.0.3

func (a App) FeaturesArray() []string

func (App) Validate

func (a App) Validate() error

type AppType

type AppType string

type Feature

type Feature struct {
	App
	FeatureName    string         `yaml:"name"`
	Fields         []models.Field `yaml:"fields"`
	DefinedRecords []string       `yaml:"records"`
}

func (Feature) FeatureHumanReadableName added in v0.0.2

func (f Feature) FeatureHumanReadableName() string

func (Feature) FeatureNameCamelCase added in v0.0.2

func (f Feature) FeatureNameCamelCase() string

func (Feature) FeatureNameCamelCaseUpper added in v0.0.2

func (f Feature) FeatureNameCamelCaseUpper() string

func (Feature) FeatureNameDir added in v0.0.2

func (f Feature) FeatureNameDir() string

func (Feature) Validate

func (f Feature) Validate() error

type Product

type Product struct {
	ForgeVersion  string    `yaml:"forge_version"`
	Name          string    `yaml:"product_name"`
	Email         string    `yaml:"email"`
	Apps          []App     `yaml:"apps"`
	Features      []Feature `yaml:"features"`
	ExcludeDagger bool      `yaml:"exclude_dagger"`
}

func UnmarshalYaml

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

func (Product) ProductNameCamelCase added in v0.0.3

func (p Product) ProductNameCamelCase() string

func (Product) Validate

func (fs Product) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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