Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Driver string `name:"Driver" question:"What's the driver?" allow:"{mysql}"` Version string `name:"Version" question:"What's the version?" allow:"{5.6, 5.7}"` Storage int `name:"Storage in GB" question:"What's the storage in GB?"` OriginHost string `name:"Origin Host" question:"What's the host of the origin database?"` OriginName string `name:"Origin Name" question:"What's the name of the origin database?"` OriginUsername string `name:"Origin Username" question:"What's the username of the origin database?"` OriginPassword string `name:"Origin Password" question:"What's the password of the origin database?"` }
type Framework ¶
type Framework interface { DetectConfig(path string) []Database GetName() FrameworkName GetProgrammingLanguage() ProgrammingLanguage }
type FrameworkName ¶
type FrameworkName string
type Misc ¶
type Misc struct { ResourceGroupName string `question:"What's the Azure resource group name for this Kunlun deployment?" default:"kl-test"` Location string `question:"What's the Azure location for this Kunlun deployment?" default:"eastus"` AdminName string `question:"What's the admin name for the jumpbox?" default:"kluser"` ConcurrentUserNumber int `question:"What's your expected number of concurrent users?" default:"1000"` }
type NonInfra ¶
type NonInfra struct { ProjectSourceCodePath string ProgrammingLanguage ProgrammingLanguage Databases []Database }
type PackageManager ¶
type PackageManager interface { Identify(path string) bool DetectFramework(path string) []FrameworkName GetName() PackageManagerName }
type PackageManagerName ¶
type PackageManagerName string
type ProgrammingLanguage ¶
type ProgrammingLanguage string
const ( UnknownProgrammingLanguage ProgrammingLanguage = "unknown" PHP ProgrammingLanguage = "php" )
func ParseProgrammingLanguage ¶
func ParseProgrammingLanguage(pl string) (ProgrammingLanguage, error)
Click to show internal directories.
Click to hide internal directories.