Documentation
¶
Index ¶
- Constants
- type ConfigOption
- type ConfigValue
- type DependenciesConfig
- type DependencyDetail
- type DependencyGroup
- type DependencyGuide
- type DependencyReference
- type IdNamePair
- type Link
- type ProjectInitializr
- type ProjectMetadata
- type SimpleConfigOption
- type SimpleConfigValue
- type SpringInitializrResponse
- func (r *SpringInitializrResponse) FindDependencyByID(id string) *DependencyDetail
- func (r *SpringInitializrResponse) GetAllDependencies() []DependencyDetail
- func (r *SpringInitializrResponse) GetBootVersions() []string
- func (r *SpringInitializrResponse) GetBuildTypes() []string
- func (r *SpringInitializrResponse) GetConfigurationFileFormat() []string
- func (r *SpringInitializrResponse) GetDependenciesByGroup() map[string][]DependencyDetail
- func (r *SpringInitializrResponse) GetDependencyIDs() []string
- func (r *SpringInitializrResponse) GetJavaVersions() []string
- func (r *SpringInitializrResponse) GetLanguages() []string
- func (r *SpringInitializrResponse) GetPackagingTypes() []string
- func (r *SpringInitializrResponse) GetProjectTypes() []string
- type TextConfig
Constants ¶
View Source
const (
SpringInitializrMetadataURL = "https://start.spring.io/metadata/client"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOption ¶
type ConfigOption struct {
Type string `json:"type"`
Default string `json:"default"`
Values []ConfigValue `json:"values"`
}
ConfigOption represents a configuration option with multiple values
type ConfigValue ¶
type ConfigValue struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Action string `json:"action,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
}
ConfigValue represents a single configuration value
type DependenciesConfig ¶
type DependenciesConfig struct {
Type string `json:"type"`
Values []DependencyGroup `json:"values"`
}
DependenciesConfig represents the dependencies configuration
type DependencyDetail ¶
type DependencyDetail struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
VersionRange *string `json:"versionRange,omitempty"`
Links *map[string]any `json:"_links,omitempty"`
Tag string `json:"-"`
Selected bool `json:"-"`
}
DependencyDetail represents detailed information about a dependency
type DependencyGroup ¶
type DependencyGroup struct {
Name string `json:"name"`
Values []DependencyDetail `json:"values"`
}
DependencyGroup represents a group of related dependencies
type DependencyGuide ¶
type DependencyReference ¶
type IdNamePair ¶
type Link ¶
type Link struct {
Href *string `json:"href,omitempty"`
Title *string `json:"title,omitempty"`
Templated *bool `json:"templated,omitempty"`
}
Link represents a single hypermedia link
type ProjectInitializr ¶
type ProjectInitializr struct {
Project string
Language string
SpringBootVersion string
ProjectMetadata ProjectMetadata
Dependencies []string
}
func (ProjectInitializr) Generate ¶
func (pi ProjectInitializr) Generate() error
func (ProjectInitializr) URL ¶
func (pi ProjectInitializr) URL() string
type ProjectMetadata ¶
type SimpleConfigOption ¶
type SimpleConfigOption struct {
Type string `json:"type"`
Default string `json:"default"`
Values []SimpleConfigValue `json:"values"`
}
SimpleConfigOption represents a simple configuration option
type SimpleConfigValue ¶
SimpleConfigValue represents a simple configuration value
type SpringInitializrResponse ¶
type SpringInitializrResponse struct {
Links map[string]Link `json:"_links"`
Dependencies DependenciesConfig `json:"dependencies"`
Type SimpleConfigOption `json:"type"`
Packaging SimpleConfigOption `json:"packaging"`
JavaVersion SimpleConfigOption `json:"javaVersion"`
Language SimpleConfigOption `json:"language"`
BootVersion SimpleConfigOption `json:"bootVersion"`
GroupID TextConfig `json:"groupId"`
ArtifactID TextConfig `json:"artifactId"`
Version TextConfig `json:"version"`
Name TextConfig `json:"name"`
Description TextConfig `json:"description"`
PackageName TextConfig `json:"packageName"`
ConfigurationFileFormat SimpleConfigOption `json:"configurationFileFormat"`
}
func Run ¶
func Run() (SpringInitializrResponse, error)
func (*SpringInitializrResponse) FindDependencyByID ¶
func (r *SpringInitializrResponse) FindDependencyByID(id string) *DependencyDetail
func (*SpringInitializrResponse) GetAllDependencies ¶
func (r *SpringInitializrResponse) GetAllDependencies() []DependencyDetail
func (*SpringInitializrResponse) GetBootVersions ¶
func (r *SpringInitializrResponse) GetBootVersions() []string
func (*SpringInitializrResponse) GetBuildTypes ¶
func (r *SpringInitializrResponse) GetBuildTypes() []string
func (*SpringInitializrResponse) GetConfigurationFileFormat ¶
func (r *SpringInitializrResponse) GetConfigurationFileFormat() []string
func (*SpringInitializrResponse) GetDependenciesByGroup ¶
func (r *SpringInitializrResponse) GetDependenciesByGroup() map[string][]DependencyDetail
func (*SpringInitializrResponse) GetDependencyIDs ¶
func (r *SpringInitializrResponse) GetDependencyIDs() []string
func (*SpringInitializrResponse) GetJavaVersions ¶
func (r *SpringInitializrResponse) GetJavaVersions() []string
func (*SpringInitializrResponse) GetLanguages ¶
func (r *SpringInitializrResponse) GetLanguages() []string
func (*SpringInitializrResponse) GetPackagingTypes ¶
func (r *SpringInitializrResponse) GetPackagingTypes() []string
func (*SpringInitializrResponse) GetProjectTypes ¶
func (r *SpringInitializrResponse) GetProjectTypes() []string
type TextConfig ¶
type TextConfig struct {
Type string `json:"type"`
Default string `json:"default"`
Values *[]IdNamePair `json:"values,omitempty"`
}
TextConfig represents a text input configuration
Click to show internal directories.
Click to hide internal directories.