jx: github.com/jenkins-x/jx/pkg/spring Index | Files

package spring

import "github.com/jenkins-x/jx/pkg/spring"

Index

Package Files

model.go

Constants

const (
    OptionGroupId        = "group"
    OptionArtifactId     = "artifact"
    OptionLanguage       = "language"
    OptionJavaVersion    = "java-version"
    OptionBootVersion    = "boot-version"
    OptionPackaging      = "packaging"
    OptionDependency     = "dep"
    OptionDependencyKind = "kind"
    OptionType           = "type"
)

Variables

var (
    DefaultDependencyKinds = []string{"Core", "Web", "Template Engines", "SQL", "I/O", "Ops", "Spring Cloud GCP", "Azure", "Cloud Contract", "Cloud AWS", "Cloud Messaging", "Cloud Tracing"}
)

func AddFormValue Uses

func AddFormValue(form *url.Values, key string, v string)

func AddFormValues Uses

func AddFormValues(form *url.Values, key string, values []string)

func CreateSpringTreeSelect Uses

func CreateSpringTreeSelect(message string, name string, tree *SpringTreeSelect, data *SpringBootForm) *survey.Question

func CreateValueInput Uses

func CreateValueInput(message string, name string, value *SpringValue, data *SpringBootForm) *survey.Question

func CreateValueSelect Uses

func CreateValueSelect(message string, name string, options *SpringOptions, data *SpringBootForm) *survey.Question

type SpringBootForm Uses

type SpringBootForm struct {
    Packaging       string
    Language        string
    JavaVersion     string
    BootVersion     string
    GroupId         string
    ArtifactId      string
    Version         string
    Name            string
    PackageName     string
    Dependencies    []string
    DependencyKinds []string
    Type            string
}

func (*SpringBootForm) AddFormValues Uses

func (data *SpringBootForm) AddFormValues(form *url.Values)

func (*SpringBootForm) CreateProject Uses

func (data *SpringBootForm) CreateProject(workDir string) (string, error)

type SpringBootModel Uses

type SpringBootModel struct {
    Packaging    SpringOptions
    Language     SpringOptions
    JavaVersion  SpringOptions
    BootVersion  SpringOptions
    Type         SpringOptions
    GroupId      SpringValue
    ArtifactId   SpringValue
    Version      SpringValue
    Name         SpringValue
    Description  SpringValue
    PackageName  SpringValue
    Dependencies SpringTreeSelect
}

func LoadSpringBoot Uses

func LoadSpringBoot(cacheDir string) (*SpringBootModel, error)

func (*SpringBootModel) CreateSurvey Uses

func (model *SpringBootModel) CreateSurvey(data *SpringBootForm, advanced bool, batchMode bool) error

func (*SpringBootModel) ValidateInput Uses

func (model *SpringBootModel) ValidateInput(name string, options *SpringOptions, value string) error

func (*SpringBootModel) ValidateTreeInput Uses

func (model *SpringBootModel) ValidateTreeInput(name string, options *SpringTreeSelect, values []string) error

type SpringOption Uses

type SpringOption struct {
    ID           string
    Name         string
    Description  string
    VersionRange string
}

type SpringOptions Uses

type SpringOptions struct {
    Type    string
    Default string
    Values  []SpringOption
}

func (*SpringOptions) StringArray Uses

func (options *SpringOptions) StringArray() []string

type SpringTreeGroup Uses

type SpringTreeGroup struct {
    Name   string
    Values []SpringOption
}

type SpringTreeSelect Uses

type SpringTreeSelect struct {
    Type   string
    Values []SpringTreeGroup
}

func (*SpringTreeSelect) StringArray Uses

func (options *SpringTreeSelect) StringArray() []string

type SpringValue Uses

type SpringValue struct {
    Type    string
    Default string
}

Package spring imports 14 packages (graph) and is imported by 1 packages. Updated 2019-07-18. Refresh now. Tools for package owners.