scaffold

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModuleNamesFor

func GetModuleNamesFor(modules []Module) []string

func GetSpringBootVersions

func GetSpringBootVersions(boms map[string]Bom) []string

Types

type Bom

type Bom struct {
	Community string `yaml:"community" json:"community"`
	Snowdrop  string `yaml:"snowdrop"  json:"snowdrop"`
	Supported string `yaml:"supported"  json:"supported"`
	Default   bool   `yaml:"default"  json:"default"`
}

type Config

type Config struct {
	Templates []Template `yaml:"templates"    json:"templates"`
	Boms      []Bom      `yaml:"bomversions"  json:"bomversions"`
	Modules   []Module   `yaml:"modules"      json:"modules"`
}

func (*Config) GetBOMMap

func (c *Config) GetBOMMap() (map[string]Bom, string)

func (*Config) GetModuleNames

func (c *Config) GetModuleNames() []string

func (*Config) GetSpringBootVersions

func (c *Config) GetSpringBootVersions() []string

func (*Config) GetSupportedVersionFor

func (c *Config) GetSupportedVersionFor(springBootVersion string) string

func (*Config) GetTemplateNames

func (c *Config) GetTemplateNames() []string

func (*Config) GetTemplatesMap

func (c *Config) GetTemplatesMap() map[string]Template

type Dependency

type Dependency struct {
	GroupId    string `yaml:"groupid"           json:"groupid"`
	ArtifactId string `yaml:"artifactid"        json:"artifactid"`
	Scope      string `yaml:"scope"             json:"scope"`
	Version    string `yaml:"version,omitempty" json:"version,omitempty"`
}

type Module

type Module struct {
	Name         string       `yaml:"name"             json:"name"`
	Description  string       `yaml:"description"      json:"description"`
	Guide        string       `yaml:"guide_ref"        json:"guide_ref"`
	Dependencies []Dependency `yaml:"dependencies"     json:"dependencies"`
	// contains filtered or unexported fields
}

type Template

type Template struct {
	Name        string `yaml:"name"                     json:"name"`
	Description string `yaml:"description"              json:"description"`
}

Jump to

Keyboard shortcuts

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